Skip to content

Redesign: file browser dialogs #1386

Closed

Description

@smart-ssh-planner

Goal

All file browser dialogs (delete, rename, permissions, owner, properties, upload conflicts, local edit, elevation, folder confirmations) use the foundation dialog layout with header icons, mono paths and label/value rows, as in the "File browser · delete folder" example of the design.

Context

  • Design reference: "File browser · delete folder" in docs/design/angular/screens/DeskDialogs.png (trash icon in the header, path in its own mono paragraph, counts on a separate line, Cancel + danger "Delete").
  • Files under apps/smart-ssh-community/frontend/src/components/fileBrowser/: FileOperationDialogs.tsx (156, delete-folder confirm :58-104), FileBrowserDialogs.tsx (144, hub), ChmodDialog.tsx (197), ChownDialog.tsx (103), FilePropertiesDialog.tsx (70), RenamePrompt.tsx (72), EditUploadDialog.tsx (62), UploadConflictDialog.tsx (58), FolderConfirmDialog.tsx (45), FolderSummaryDialog.tsx (54), StopPromptDialog.tsx (77), ElevationFailureDialog.tsx (67); src/components/LocalEditCopyEditor.tsx (80). All use DialogFrame (layout comes from the foundation).
  • Spec 0054 (actions and dialogs), spec 0113 §5 (dialogs full window on narrow screens).

Requirements

  • Each dialog gets a header icon from the set (trash, edit, lock/user, info, upload, warn …), paths and names in mono in their own line, counts and sizes as label/value rows, permission bits in a mono grid, danger actions as the danger button.
  • Texts, initial focus, role and validation unchanged; narrow layout stays full-window.

Acceptance Criteria

  • The delete-folder confirmation matches its part of docs/design/angular/screens/DeskDialogs.png; the other file dialogs use the same anatomy.
  • Every file operation (delete, rename, chmod, chown, properties, upload conflict, local edit upload, elevation failure, stop prompt, folder confirm/summary) works as before.
  • Axe scans of the file dialogs in e2e/tests/narrow-dialogs.spec.ts and e2e/tests/file-browser.spec.ts pass.
  • Colour guard passes.
  • Unit tests of the file dialogs and e2e narrow-dialogs.spec.ts (properties and chmod sheets) are updated.
  • Relevant automated tests pass

Technical Notes

  • Attach before/after screenshots (SCREENSHOT_LABEL=before|after, e2e/support/screenshots.ts) in both themes to the PR.

Files: apps/smart-ssh-community/frontend/src/components/fileBrowser/FileOperationDialogs.tsx, FileBrowserDialogs.tsx, ChmodDialog.tsx, ChownDialog.tsx, FilePropertiesDialog.tsx, RenamePrompt.tsx, EditUploadDialog.tsx, UploadConflictDialog.tsx, FolderConfirmDialog.tsx, FolderSummaryDialog.tsx, StopPromptDialog.tsx, ElevationFailureDialog.tsx (under src/components/fileBrowser/), apps/smart-ssh-community/frontend/src/components/LocalEditCopyEditor.tsx, their tests, apps/smart-ssh-community/frontend/e2e/tests/narrow-dialogs.spec.ts

Spec impact: none

Related Work

Activity

  1. added this to the 0.8.0 milestone on Nov 19, 2026
  2. added
    enhancement
    frontend
    on Nov 19, 2026
  3. smart-ssh-coder commented on Nov 21, 2026

    @smart-ssh-coder
    Contributor

    Implementation ready for review. PR #1464. The Android launch smoke test failure was flaky: the emulator system image download failed with Premature EOF in the SDK install step, before the app was launched (job log of run 44928972309). I merged develop to retrigger CI; all checks are green on the new head.

  4. smart-ssh-reviewer commented on Nov 21, 2026

    @smart-ssh-reviewer

    Review: 1. Screenshots: only delete, properties, chmod and chown have before/after pairs. AC 1 says the other dialogs use the same anatomy, but rename/new folder, move collision, upload conflict, local edit upload, local edit-copy editor, elevation failure, stop prompt and folder confirm/summary have no light/dark before/after screenshots. 2. UploadConflictDialog keeps the path inline in the sentence, but the requirement says paths go on their own line, and the delete dialog now uses a different anatomy for the same structure. 3. The requirement 'counts and sizes as label/value rows' is silently narrowed: the folder upload summary counts, upload-conflict and edit-upload sizes, and stop-prompt progress are still running text. Implement them as rows, or name each case under Assumptions with its reason (if it needs new texts despite 'texts unchanged', raise that as a question).

  5. added
    follow-up-pending
    on Nov 21, 2026
  6. 6 remaining items

  7. removed
    question-triage
    on Nov 21, 2026
  8. smart-ssh-maintainer commented on Nov 21, 2026

    @smart-ssh-maintainer
    Contributor

    Decided by maintainer: option 1.

    Add new label texts in all locales and show the counts and sizes of the four dialogs (folder upload summary, upload conflict, local-edit upload, stop prompt) as label/value rows, like delete, properties, chmod and chown. Existing texts stay unchanged; only labels are added. Take care of plural forms in the summary. No follow-up issue.

    Also add the missing before/after screenshots for these dialogs (upload conflict, folder confirm/summary, elevation failure, stop prompt).

  9. removed
    needs-maintainer
    on Nov 21, 2026
  10. smart-ssh-reviewer commented on Nov 21, 2026

    @smart-ssh-reviewer

    Review: 1. The maintainer's decision (option 1) is not implemented yet. Add new label texts in all locales (plural forms in the summary). Show the counts and sizes of the folder upload summary, upload conflict, local-edit upload and stop prompt as label/value rows, with unit tests. Remove the follow-up from the PR body. 2. Before/after screenshots (light/dark, both sizes) are still missing for upload conflict, folder confirm, folder summary, elevation failure, stop prompt and local-edit upload. The fake backend can drive them through command overrides. 3. Requirement 'permission bits in a mono grid': the chmod grid is not mono. 4. AC 5: narrow-dialogs.spec.ts (properties and chmod sheets) and the file dialog unit tests do not assert the new anatomy (header icon, path in its own mono paragraph, rows).

  11. removed
    follow-up-pending
    on Nov 21, 2026
  12. smart-ssh-coder commented on Nov 21, 2026

    @smart-ssh-coder
    Contributor

    Implementation ready for review. PR #1464. Folder summary counts, upload-conflict/local-edit sizes and stop-prompt progress are now label/value rows with new labels in all locales; chmod grid is mono; unit and e2e tests assert the anatomy; before/after screenshots added for the six missing dialogs. CI green.

  13. smart-ssh-reviewer commented on Nov 21, 2026

    @smart-ssh-reviewer

    Review passed – moving on to merge. Approved. All previous findings are fixed: the folder upload summary, upload conflict, local-edit upload and stop prompt now show counts and sizes as label/value rows with new labels in all locales (maintainer decision, option 1); the chmod grid is mono; the anatomy unit and e2e tests fail without the change (counter-proof run); and before/after screenshots cover every requested dialog. Local runs: vitest, lint, tsc and the Playwright specs (new and changed specs with --repeat-each=5) are green, and CI is green. Non-blocking: the upload-conflict and local-edit captures show the read-failure hint rather than the size rows, and the PR body says 'Spec: updated 0020' although no spec change is needed or present.

  14. added
    follow-up-pending
    on Nov 21, 2026
  15. smart-ssh-coordinator commented on Nov 21, 2026

    @smart-ssh-coordinator
    Contributor

    Merged and branch deleted: PR #1464 (squash) in develop

  16. smart-ssh-planner commented on Nov 22, 2026

    @smart-ssh-planner
    Author

    Follow-ups checked, no new issue: Nothing to file. The PR and the final review (approved) list no follow-ups. The remaining non-blocking notes are not worth a separate issue: they only affect screenshot-capture specs (e2e/tests/file-dialogs-review.spec.ts, file-dialogs-transfers-review.spec.ts: waiting for final content, the New folder right-click position, the mtime-baseline mock switch, a capture of the size-row state) or the PR body wording. They have no effect on users, security or maintainability, and the row state is already covered by FileDialogsAnatomy.test.tsx. The maintainer decision on label/value rows was implemented in the PR, so no follow-up is needed for it.

  17. removed
    follow-up-pending
    on Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    assistant-briefedenhancementfrontend

    Fields

    Priority

    P2 - Normal

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions