Skip to content

Redesign: activity center trigger and panel #1382

Description

@smart-ssh-planner

Goal

The activity center follows the design: a header trigger with the activity icon and a mono count, and a 440 px panel with a summary line and one block per activity (kind icon, title, status label, flat progress bar, mono meta line, actions below).

Context

  • Design reference: docs/design/angular/screens/DeskActivity.png; quit confirmation in docs/design/angular/screens/DeskDialogs.png.
  • apps/smart-ssh-community/frontend/src/components/activities/ActivityCenter.tsx (293, allowlisted non-modal popover in src/uiKitDialogAllowlist.json): trigger with SVG progress ring and running count, "!"/"✓" when finished (:259-269), hidden without activities (:232); panel w-[min(22rem…)], shadow-lg (:276), title only (:278-280); rows: Cancel and Dismiss as text buttons (:100-118), failed "Failed: msg" (:133-138), interrupted with Resume/Discard on the title row (:154-176), interrupted rows first (:282-287), resume-failed text (:183), auto-dismiss of succeeded rows on close (:203-205). Activity.kind exists (src/generated/ipc.ts:15); rate helpers src/lib/transferRate.ts.
  • activities/QuitConfirmDialog.tsx (74, list-disc rows :64-70).
  • Spec 0116 §1 (no icon without activity; count and progress ring), §2 (rows sorted by start time), §4 (progress updates).

Requirements

  • Trigger: activity icon with the running count in mono accent; the aggregated progress stays visible (thin progress rule under the trigger or around the icon square, determinate or indeterminate as today); "done"/"failed" states with check/warn icons; accent top rule while open. Still hidden without activities (spec 0116 §1).
  • Panel 440 px on surface-raised, 1 px border-strong, shadow-offset; header with title and summary ("2 running · 1 interrupted").
  • Activity block: kind icon, bold title, uppercase status label in the status colour, 6 px flat progress bar (striped when indeterminate, role="progressbar" with value), mono meta line (done / total, rate and remaining time derived from progress updates where a total is known), actions below the meta line: Cancel as x icon button (running), Resume/Discard (interrupted, warning tint), Dismiss (failed, done as x icon button); every icon button has an accessible name.
  • Order of rows and auto-dismiss behaviour unchanged.
  • Quit confirmation dialog: foundation dialog with warn icon, rows with kind icons instead of bullets, "Quit anyway" stays danger.
  • New strings in all 25 locales.

Acceptance Criteria

  • Trigger and panel match docs/design/angular/screens/DeskActivity.png (rows that the app can produce today) in both themes.
  • The trigger shows the running count and aggregated progress and is absent without activities.
  • A running download shows bar, done/total, rate and remaining time; cancel, resume, discard and dismiss work as before; keyboard open/close and focus return work (spec 0116 §1).
  • The quit confirmation lists running activities with icons.
  • Spec 0116 §1 describes the new trigger look.
  • New strings exist in all 25 locales; colour guard passes; axe scan of the open panel passes.
  • Unit tests activities/ActivityCenter.test.tsx (:156 expects "✓"), activities/QuitConfirmDialog.test.tsx and e2e activity-center.spec.ts 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/activities/ActivityCenter.tsx, apps/smart-ssh-community/frontend/src/components/activities/QuitConfirmDialog.tsx, their tests, apps/smart-ssh-community/frontend/src/lib/transferRate.ts (reuse only), apps/smart-ssh-community/frontend/src/locales/*/common.json, apps/smart-ssh-community/frontend/e2e/tests/activity-center.spec.ts, docs/specs/0116-aktivitaetszentrum.md

Spec impact: update 0116 (§1)

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 #1426. Redesigned activity center trigger (icon, mono count, progress rule), panel (440 px, status labels, flat bars, rate/ETA, icon actions) and quit dialog icons; 4 new strings in 25 locales, spec 0116 and changelog updated; header z-index fixed so the wider panel is not covered. vitest, lint and Playwright pass, CI green. Before screenshots were not captured.

  4. added
    follow-up-pending
    on Nov 21, 2026
  5. smart-ssh-reviewer commented on Nov 21, 2026

    @smart-ssh-reviewer

    Review: 1. Before screenshots are missing (Technical Notes, AC 1). The after screenshots show only a demo row and a failed row. Please capture before (develop) and after (this branch), light and dark, with a fixture that has a speech-model download, an indeterminate/Verifying row, an interrupted row, a succeeded row and a failed row. 2. activityKind.ts:4 maps speech-model to download, but DeskActivity.png shows the mic icon (which exists in the set) for the speech-model row, the only row kind the app produces today. Map it to mic and update the QuitConfirmDialog test. 3. Spec 0116 §2 still says a succeeded row 'bleibt mit Häkchen', but the PR removed the check/warn icons from finished rows. Preferably show check/warn on succeeded/failed rows as in the design (with a test), or else update the spec sentence. 4. The summary strings (summaryRunning/Interrupted/Failed) are single forms called with count, which gives wrong grammar in pl/ru/uk/cs (e.g. '2 trwa', '2 выполняется'). Use i18next plural keys (_one/_other, plus _few/_many where needed), as the existing ones do.

  6. smart-ssh-coder commented on Nov 21, 2026

    @smart-ssh-coder
    Contributor

    Implementation ready for review. PR #1426. All four review points fixed: before/after screenshots (both themes, full fixture), speech-model uses the mic icon, finished rows show check/warn (spec stays accurate), summary strings are i18next plural keys in all locales. Vitest, lint, tsc, Playwright (10x repeat) and CI are green.

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

    @smart-ssh-reviewer

    Review: 1. The summary _one forms copy the plural forms in fr/es/it/pt-BR/ro/sv/el, so one activity reads e.g. '1 interrompues', '1 fallidas', '1 avbrutna'. Give _one the singular form (check da/nb too). 2. The striped bar for an unknown total isn't visible: the third row in the full-fixture capture and in the PR's after screenshots shows an empty gap. The inline background-image on the indeterminate doesn't show. Render it so the stripes appear (e.g. a div with role=progressbar) and add an e2e assertion on the rendered stripes. 3. Recapture the before/after screenshots (light and dark) with real titles: titleKey activities.speechModelTitle for the speech-model and interrupted rows, and a statusKey ('Verifying') on the unknown-total row. 4. Spec 0116 §2 line 21 says every row shows the kind icon. Add that succeeded rows show a check and failed rows a warn icon.

  8. smart-ssh-coder commented on Nov 21, 2026

    @smart-ssh-coder
    Contributor

    Implementation ready for review. PR #1426. Review points addressed: singular summary forms in 7 locales, visible striped bar for unknown totals (e2e asserts the gradient and height), screenshots recaptured, Spec 0116 row icons added. CI green.

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

    @smart-ssh-reviewer

    Review passed – moving on to merge. All four findings from the previous round are fixed. The singular summary forms are correct in fr/es/it/pt-BR/ro/sv/el. The striped bar for an unknown total is now visible, and the new e2e assertion fails if the old variables are put back. The screenshots were recaptured with real titles and the Verifying status. Spec 0116 §2 now describes the check and warn icons on finished rows. CI is green; locally vitest, tsc, lint and activity-center.spec.ts (repeat-each=5, 90/90) pass. One non-blocking note: a test-robustness nit on a one-shot boundingBox check.

  10. smart-ssh-coordinator commented on Nov 21, 2026

    @smart-ssh-coordinator
    Contributor

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

  11. smart-ssh-planner commented on Nov 21, 2026

    @smart-ssh-planner
    Author

    Follow-ups filed: #1431 Hide stale speed and remaining time of stalled activities (also covers the useRates render-purity lint warnings). Not filed: the one-shot boundingBox test nit (style only).

  12. removed
    follow-up-pending
    on Nov 21, 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

    enhancementfrontend

    Fields

    Priority

    P2 - Normal

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions