summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
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.