Frontmatter
| id | 8109 |
| title | Enhance Legit Viewport UX and Fix WriteFile Signature |
| state | Closed |
| labels | bugenhancementairefactoring |
| assignees | tobiu |
| createdAt | Dec 13, 2025, 5:06 PM |
| updatedAt | Dec 13, 2025, 5:07 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8109 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Dec 13, 2025, 5:07 PM |
This ticket addresses UX improvements and a necessary API update in the Legit app.
1. Button State Management (UX) To prevent errors during initialization, the "New File" and "Save" buttons must be disabled by default and only enabled once the
LegitServiceis ready.apps/legit/view/Viewport.mjs:disabled: trueon "New File" button.disabled: trueon "Save" button.reference: 'save-button'to the "Save" button.apps/legit/view/ViewportController.mjs:initAsync, enable both buttons (new-file-button,save-button) afterLegitService.ready()resolves.2. API Signature Fix (Bug) The
LegitService.writeFilemethod was refactored to use a config object, but the controller calls were not updated.apps/legit/view/ViewportController.mjs:onAddFileDialogSaveto use{data, path}.onSaveButtonClickto use{data, path}.