Commits
Marek Vsechovsky committed 94dd48a32c7
Session 158, Step 7: Implement save dialog with target selection - AIM-2986 Implement save dialog with target selection - AIM-2992 Show real session numbers in Processed outputs and enable click-to-navigate - AIM-2999 Redesign conventions pane: remove #conventionsDocSelect and #conventionsInsertPrinciples, keep Save/Cancel/Preview/Edit - AIM-3000 Document browser header: Create new, Remove selected, gear + document-create confirm2 dialog - AIM-3002 Available documents tab: ownership icons, CopyOfDocId semantics, visibility and edit permissions - AIM-3007 Content-save ownership question: update shared file vs Save As new document Outcome: ### Step 7 Summary All 6 input issues addressed: - **AIM-2986:** Changed Save button from split button (with arrow) to simple button. Removed `#conventionsSaveSplit` button from HTML. - **AIM-2992:** Rewrote `_navigateToSessionStep` in dashboard-project.js to use `S.step.pendingNum` pattern (same as Issues tab), ensuring session detail is fully loaded before step selection. - **AIM-2999:** Moved `#conventionsFileRow` inside `#conventionsEditorArea` → `#conventionsEditorCol` so it top-aligns with the Document browser and shares horizontal space. - **AIM-3000/3002:** Fixed document selectability — root cause was string vs number type mismatch in click handler. `copyKey` was converted with `String()` but all comparisons used strict equality (`===`) against numeric `copyId` from `_convCopyIdOf()`. Fixed by using `parseInt()` instead. Also removed green checkmark (`fa-circle-check`) from Current project tab. - **AIM-3007:** Created SQL migration 129 (`DocumentUpdatedVersionAvailable BIT NOT NULL DEFAULT 0`), added EF model property, added flag logic in `UpdateDocument` (flags stale copies in other projects when `overwriteCopies` is true, clears flag when updating a single copy). Included field in both GET endpoints. Files: dashboard-settings.js, dashboard-project.js, Index.cshtml, Document.cs, DocumentsController.cs, 129_AddDocumentUpdatedVersionAvailable.sql (+70/-41).