Skip to content

fix(web): Move to Trash never disappears from the selection bar - #544

Merged
ibrahimroshdy merged 2 commits into
mainfrom
fix/bulk-trash-never-hidden
Nov 12, 2026
Merged

ibrahimroshdy merged 2 commits into
mainfrom
fix/bulk-trash-never-hidden

Conversation

@ibrahimroshdy

Copy link
Copy Markdown
Collaborator

Move to Trash could vanish from the selection bar: it is the bar's one action loaded on demand, and a failed load (Kept updated while the page or installed app was open) drew nothing until a reload. Reported in discussion #183.

Closes #543.

  • New components/things/bulk-trash-lazy.tsx, on the same retry pattern as "Set a field…" (list-bulk-lazy.tsx): the button always shows. Off while it loads; off with Reload beside it when its load failed; fetched again on the next selection or when the connection comes back.
  • contents-list.tsx uses it in place of the lazy import that fell back to nothing.
  • No new strings: "Move to Trash" and "Reload" are already in every catalogue.

Definition of done

  • Tests: bulk-trash-lazy.test.tsx (a failed load shows the button off with Reload, and the next mount loads the real one), written first and seen failing; browse.test.tsx gains Move to Trash for things selected inside a box, the case in the report. Browse, list-bulk-lazy and the new test: 79 pass. Lint, catalogues and typecheck green.
  • Docs: n/a.
  • Catalogues: n/a (existing strings).
  • KEPT_* settings: n/a.
  • Security-relevant: no.
  • Roadmap: Selection bar: Move to Trash disappears when its load fails #543 on 1.14.8.

It was the bar's one action loaded on demand, and a failed load (Kept updated while the page
was open) drew nothing, until a reload. Now it always shows: off while it loads, off with Reload
beside it when its load failed, and fetched again on the next selection or when the connection
comes back, as Set a field does. Closes #543.

Signed-off-by: Ibrahim Roshdy <22573766+ibrahimroshdy@users.noreply.github.com>
@ibrahimroshdy
ibrahimroshdy requested a review from a team as a code owner November 12, 2026 22:48
@ibrahimroshdy ibrahimroshdy added this to the 1.14.8 milestone Nov 12, 2026
@ibrahimroshdy ibrahimroshdy added bug Something doesn't work as it should area: web The app's screens (apps/web) labels Nov 12, 2026
@ibrahimroshdy
ibrahimroshdy merged commit 702de99 into main Nov 12, 2026
21 checks passed
@ibrahimroshdy
ibrahimroshdy deleted the fix/bulk-trash-never-hidden branch November 12, 2026 23:12
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area: web The app's screens (apps/web) bug Something doesn't work as it should

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Selection bar: Move to Trash disappears when its load fails

1 participant