Skip to content

fix(ui): say that archiving a thread can be undone - #551

Merged
Tryanks merged 1 commit into
mainfrom
fix/archive-confirmation
Sep 28, 2026
Merged

Tryanks merged 1 commit into
mainfrom
fix/archive-confirmation

Conversation

@Tryanks

@Tryanks Tryanks commented Sep 28, 2026 •

Copy link
Copy Markdown
Owner

Closes #519

Changed behaviour

The sidebar's archive confirmation said archiving "cannot be undone" and styled the action as destructive. Archiving can be undone: it stops the thread's agent, and the thread can be restored from Settings → Archived Threads.

  • sidebar.archive_description (en, zh-CN) now says what archiving does and where to restore the thread.
  • The confirm button in both the single-thread and the archive-all dialogs uses the default primary style instead of Danger. Delete and remove-project stay Danger.

No code paths change beyond the button variant. Once archive gets an undo toast (#529), this confirmation may not be needed at all.

Test

None added. This is a string and a style change, and the locale parity test already checks that both locales have the key.

Checks run locally (macOS)

  • cargo fmt --all --check
  • cargo clippy --workspace --all-targets --locked -- -D warnings
  • cargo nextest run --workspace --locked: 947 passed, 5 skipped

Not run locally: iOS/Android/Web checks and cargo machete (CI covers them).

Visual check: I ran this branch's debug build in a macOS 26.4 tart VM (1024×768, light theme) and opened the sidebar archive confirmation on an imported thread. It shows the new text, and Archive is the primary (blue) button. Not checked: dark theme, zh-CN, and the archive-all dialog.

The archive confirmation claimed archiving cannot be undone and styled the
action as destructive, but archived threads are restored from Settings →
Archived Threads. Describe what archiving does instead, and drop the danger
style from both the single and the archive-all confirmation.

Closes #519
@Tryanks
Tryanks merged commit c563f11 into main Sep 28, 2026
7 checks passed
@Tryanks
Tryanks deleted the fix/archive-confirmation branch September 28, 2026 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Archive confirmation wrongly says archiving cannot be undone

1 participant