Commits
Marek Vsechovsky committed 7f923d28c35
Session 85, Step 17: Fix non-programmer root-folder dialog, renewal override placement and Back/Forward rehydration - AIM-1411 Guard non-programmer users from dashboard tabs — client and server - AIM-3474 Configure and persist variable feature renewal overrides - AIM-3501 Make the stored Recently-viewed history accessible through the toolbar Back and Forward buttons Outcome: All three reported defects are fixed and verified in both the development sources and the built bundles. - **AIM-1411** — `promptForProjectRoot()` in `dashboard-project.js` now returns immediately when `Dash._nonProgRestricted` is set, so the "Project root folder access required" dialog is never shown to non-programmer users; the "Root folder" and "Folder access" fields in `renderProjectDetail()` are tagged with the new `aim-nonprog-hide` class and hidden by the `body.aim-nonprog-mode` rule added to `dashboard.scss` (rebuilt into `dashboard.css`/`dashboard.min.css`). - **AIM-3474** — in `buildRenewalSectionHtml()` (`orgs.js`) the `.aim-renewal-values` override block now renders directly after the "Renew with the following values" radio and before the "Do not renew the subscription" radio, inside the radio-group div; the show/hide toggle and change handlers keep working unchanged (verified in `orgs.min.js`). - **AIM-3501** — `mruSeedHistory()` (`dashboard.js`) now returns early (after refreshing the button states) when no item is selected yet, so the stored "Recently viewed ..." history is only split once a real current selection exists; the current item is looked up with `parseInt(currentId, 10)`. The first Back click therefore moves to the second-last viewed item and no duplicate is ever pushed into the Forward stack (verified in `dashboard.min.js`).