Commits
Marek Vsechovsky committed 06d833c9ff0
Session 85, Step 14: Split the "Recently viewed ..." history lists by the "Show [...] of others" toggle - AIM-3499 Split the "Recently viewed ..." history lists by the "Show [...] of others" toggle - AIM-3500 Keep already-processed stories hidden before, during and after expanding epics - AIM-1411 Guard non-programmer users from dashboard tabs — client and server - AIM-1415 Org management seat checking and notification on role changes - AIM-3468 Fix Viewer membership role updates and explain rejected role changes - AIM-3474 Configure and persist variable feature renewal overrides - AIM-3475 Unify AI cost tables and support global organization and project model grouping - AIM-3479 Explain programmer role capacity rejection in a danger confirmation dialog Outcome: Implemented both free-text requests and all six tracked issues. - **Issue -4157** - the "Recently viewed ..." groups of the Issues, "AI sessions" and Wf S2 lists now keep two separate per-user history lists: a "current user only" list (items viewed AND owned/created by the current user) and an "all users view" list (everything the user viewed). Saving a selection always writes the all-list and writes the own-list only for items owned by the current user. The "Latest processed ..." groups follow the "Show [...] of others" toolbar toggle (current user OFF, all users ON) through new `?allUsers=` list endpoints and per-scope caches. - **Issue -4158** - expanding epics in "AI sessions" while `#storyShowExecuted` is OFF keeps already-processed stories hidden before, during and after the expansion animation; only toggle-visible children animate. - **AIM-1411** - the remaining non-programmer dashboard restrictions are enforced: add/rearrange/edit controls, the Settings tab, the outputs and processed detail tabs, and the workflow mini-steps stay hidden via persistent `body.aim-nonprog-mode` CSS; the "Show ... of others" toggles are forced ON and disabled; detail notes/titles render read-only; the Wf S2 pane shows the "Not linked to any session" information bar for non-programmers. - **AIM-1415** and **AIM-3479** - the programmer-seat capacity dialog now lists the options as plain text items of a numbered list under a separate "You can:" paragraph; the "Upgrade your subscription" part of option 1 links to `/pricing` opened in a separate tab and the option items wrap within the dialog width. - **AIM-3468** - the self-downgrade confirm2 dialog now reliably appears: the Organizations init payload returns `currentUserId`, so the role-change flow detects when admins change their own role to non-admin and shows the exact warning text with the "Continue. Remove my admin role" confirm caption. - **AIM-3474** - the `.aim-renewal-values` block renders right after the `#aimRenewalMode_<subscrId>` radio group with the options order unchanged; every `.aim-plus-minus-input` starts from the currently subscribed-to value; and universal `.aim-plus-minus` +/- handlers in `custom.js` adjust the contained number by the control's step amount (default 1) with min/max clamping. - **AIM-3475** - "Avg. retries" is hidden in the Organizations model table and placed after "Steps rated" in the Dashboard model table, and the selected model row renders all four selection borders on both pages. --- Session 85, Step 15: Split the "Recently viewed ..." history lists by the "Show [...] of others" toggle - AIM-3499 Split the "Recently viewed ..." history lists by the "Show [...] of others" toggle - AIM-3501 Make the stored Recently-viewed history accessible through the toolbar Back and Forward buttons Outcome: Corrected the history storage approach and added the Back/Forward history re-hydration. - **Issue -4157** — the two "Recently viewed ..." history lists are implemented in the existing localStorage MRU store (own-only list + all-viewed list per entity), and the database-side changes (SQL script 162, `MRUListKind` EF column, dual-list `MruController`) were removed; the `MostRecentlyUsed` table keeps its original single-list backup contract. - **Issue -4159** — the stored "Recently viewed ..." history now re-hydrates the Issues, "AI sessions" and Wf S2 navigation stacks so the toolbar Back and Forward buttons reach items viewed before the reload. --- Session 85, Step 16: Keep the localStorage Recently-viewed history bounded and evict stale project lists when storage is full - AIM-3502 Keep the localStorage Recently-viewed history bounded and evict stale project lists when storage is full Outcome: Bounded the localStorage "Recently viewed ..." history as requested. - **Issue -4160** — the per-list cap of the 15 most recent viewed items is confirmed and kept (`MRU_LIMIT` enforced on every write and merge), and the store now evicts whole project history buckets that have not been touched for the longest time when the serialized history exceeds the 128KB budget or the browser localStorage rejects the write — never dropping the current project's bucket.