Commits
Marek Vsechovsky committed 1e360f84a00
Session 167, Step 3: Integration prompt ownership limited to Public, Organization and User (no Project) - AIM-3176 Integration prompt ownership limited to Public, Organization and User (no Project) - AIM-3178 "Create integration story" button in Platform integrations tab creates story from selected document - AIM-3420 Protect the main project-memory README and preserve mandatory file routing - AIM-3511 Coding conventions improvements - AIM-3513 Filter and content-search modes for the Coding conventions document browser - AIM-3514 "Coding convention group" document type (253) for conventions folders - AIM-3512 Integration prompts improvements - AIM-3515 Create new documents and folders in the selected document's folder - AIM-3516 Filter and full-text-search box for the Integration prompts document browser - AIM-3517 Keep folders of matched documents visible while filtering - AIM-3518 Auto-expand folders containing filter-matched documents - AIM-3519 Rework the #piEditBtn definition popup: folders, edit style, description - AIM-3520 Edit mode with formatting toolbar in the Integration prompts detail area - AIM-3521 Multi-stage ownership filter button in the Integration prompts toolbar - AIM-3522 Folders before documents in alphabetic tree sorting - AIM-3523 Separate and constrain the #piDescription area with a character counter - AIM-3524 Hide the Create integration story button when a folder is selected - AIM-3525 Full document path with bold name in #piPathDisplay Outcome: Implemented all 18 issues of this step: the three pending test-note issues (AIM-3176, AIM-3178, AIM-3420) and the 15 new issues decomposed from the free-text requirements. **Coding conventions** - issue -4170: `#conventionsFilter` filters as you type with name highlighting and the six search modes (name only, content only, name and content, exact phrase, all words, any words); the Ctrl+Enter / Ctrl+Shift+Enter / Alt+Enter combos search the local file contents with content highlighting in the detail preview. Issue -4171: new DocumentType 253 "Coding convention group" (script `163_AddCodingConventionGroupType.sql`, also creating the `Document` full-text index) enforced as a folder-only type - no nested folders, no documents of that type, only 253 groups in the conventions browser and none of them in the Integration prompts browser. **Integration prompts** - issue -4173: new documents and folders are created in the selected document's folder. Issue -4174: `#piFilter` with the same search modes, the content modes backed by the new native database FTS endpoint `GET /api/documents/fts` (CONTAINSTABLE / FREETEXTTABLE over `Document.DocContent`). Issue -4175: folders stay visible while any match remains anywhere downstream. Issue -4176: auto-expand toggle with manual-expansion memory. Issues -4177 and AIM-3176: `#piEditBtn` opens the reformatted Document/Folder settings dialog (ownership radios with Organization option, Description with character counter, edit dialog style) for documents and folders; `#piOwnershipBtn` and the "Edit integration prompt" dialog removed. Issue -4178: inline Edit/Preview mode with the markdown formatting toolbar, Save/Cancel, last-edited-file memory and a Compare view. Issue -4179: multi-stage ownership filter button (off / me / organization / public) and per-row ownership icons in primary color. Issue -4180: folders before documents on every tree level. Issue -4181: `#piDescription` separated from the list, limited to one third of the panel with scrolling and a character counter using the database max length. Issues -4182 and AIM-3178: the Create integration story button hides for folders and switches to Wf S2 right after creating a story. Issue -4183: `#piPathDisplay` shows the full path with the bold name and a Document/Folder label. **Project memory** - AIM-3420: missing compulsory File index rows are re-added at the top of the table in the template order. Verified: `node --check` on every bundle source and the rebuilt `dashboard.min.js`, `npm run build:css`, `dotnet build Aisman.csproj` with 0 errors, and all node test suites pass (the new `tests/settings-documents.test.cjs` 8/8 plus the existing 4/4 and 10/10).