summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAnders Betts <anders.betts@gmail.com>2026-09-23 09:34:16 +0200
committerAnders Betts <anders.betts@gmail.com>2026-09-23 09:34:16 +0200
commit79b27457125dc2e259783359085021eea1d26e3a (patch)
treee5b733b642437d34d46ee34514b093daee52fcef /docs
parent6159042d0cb3870e6a7c6f8d9a97e175d59e6f80 (diff)
downloadbokf-79b27457125dc2e259783359085021eea1d26e3a.tar.gz
bokf-79b27457125dc2e259783359085021eea1d26e3a.zip
tui: "Byt bolag" in the main menu
Reopens the org picker (cursor on the current org) and switches the running session: the org's name, role, current fiscal year and series are reloaded and the remembered list selections cleared. The context reload now clears the previous org's values first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/PROTOCOL.md1
-rw-r--r--docs/STATE.md5
-rw-r--r--docs/TUI-GUIDELINES.md8
3 files changed, 12 insertions, 2 deletions
diff --git a/docs/PROTOCOL.md b/docs/PROTOCOL.md
index 2bd889f..ae1098f 100644
--- a/docs/PROTOCOL.md
+++ b/docs/PROTOCOL.md
@@ -935,6 +935,7 @@ Args: `name:type(values)[!][=default]`, `!` = required.
commands. Implemented screens (0.1.0-dev):
- **Inloggning** — server, user, password; org picker when several exist.
+ **Byt bolag** in the main menu reopens the picker during the session.
- **Dashboard** — status line with org, fiscal year, role and user.
- **Verifikat** — list and detail view (rows with column headers, an
underlag section separated by a rule, hash, link to corrected voucher); `c`
diff --git a/docs/STATE.md b/docs/STATE.md
index 9d954cd..31d6b14 100644
--- a/docs/STATE.md
+++ b/docs/STATE.md
@@ -14,6 +14,11 @@ unit tests and the docs consistency check.
## Resume here (2026-09-22)
+- **Byt bolag (2026-09-23, branch `eff/switch-org`)**: a main-menu item
+ reopens the org picker and switches org in the running session (context
+ reloaded, list selections cleared). `app_refresh_context` now clears the
+ previous org's name/role/fiscal year first, so an org without a readable
+ year no longer shows the old one.
- **Goto search (2026-09-23, branch `eff/goto-search`)**: `g` followed by a
letter searches the row texts of any list or menu (case-insensitive, åäö
too; up/down = next/previous match); a digit still jumps to a row number.
diff --git a/docs/TUI-GUIDELINES.md b/docs/TUI-GUIDELINES.md
index c2aff3d..68316e3 100644
--- a/docs/TUI-GUIDELINES.md
+++ b/docs/TUI-GUIDELINES.md
@@ -125,8 +125,12 @@ struct tui_action {
## Session start
After login the org picker ("Välj organisation att representera") is always
-shown; the selected org is fixed for the session (`--org ID` bypasses it for
-scripts). The fiscal year is chosen from the dashboard and is changeable
+shown (`--org ID` bypasses it for scripts). "Byt bolag" in the main menu
+opens the same picker, with the cursor on the current org, and switches the
+session to the chosen one: `session.use_org`, then the org's name, role,
+current fiscal year and series are reloaded and the remembered list
+selections are cleared; `Esc` keeps the current org. `Ctrl+R` keeps the
+switched org. The fiscal year is chosen from the dashboard and is changeable
during the session; the `Räkenskapsår` screen also closes and reopens years
there.