Skip to content

fix: restore bucket statistics display - #315

Merged
cxymds merged 5 commits into
mainfrom
cxymds/fix/bucket-statistics-display
Nov 23, 2026
Merged

cxymds merged 5 commits into
mainfrom
cxymds/fix/bucket-statistics-display

Conversation

@cxymds

@cxymds cxymds commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Description

Restore the bucket list presentation to the previous concise design.

  • Keep the bucket column focused on the bucket name.
  • Render Object Count and Size from the complete objects and size values.
  • Render -- when a bucket has no statistics.
  • Remove scanner phase, checkpoint, scanned-sample and page-level scan notices from the Browser and bucket settings lists.
  • Remove the scanner-specific presentation components and update the refresh regression coverage.
  • Keep the bucket link in a stable shared cell so refreshes preserve keyboard focus.

The account usage parser remains available for data compatibility, while the list surfaces no longer render scanner progress.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature which changes existing behavior)
  • Documentation update
  • Code refactoring
  • Performance improvement
  • Test improvements
  • Security fix

Testing

  • Unit tests added/updated
  • Manual DOM regression coverage for Browser and BucketList
pnpm test:run
pnpm type-check
pnpm lint
pnpm format:check
git diff --check

All 1232 tests passed. TypeScript, ESLint and Prettier checks passed.

Checklist

  • Code follows the project's style guidelines
  • Self-review completed
  • TypeScript types are properly defined
  • All commit messages are in English (Conventional Commits)
  • All existing tests pass
  • No new dependencies added

Screenshots

Controlled static fixture captures show the visual rollback. The former progress-enhanced settings list is shown before the change, and the updated bucket list keeps the name-only column and uses -- for missing statistics after the change.

Before

Progress-enhanced bucket settings list

After

Concise bucket list

Related Issues

Closes #

Copilot AI balanced review requested due to automatic review settings November 23, 2026 02:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The recreated cell component replaces the bucket link during refreshes or column updates, causing keyboard users to lose focus; a stable shared component is needed to preserve the link node.

1 open issue
What changed in this PR

Restores concise bucket statistics in Browser and bucket settings lists while keeping account usage parsing available for compatibility.

Changes:

  • Displays bucket names and complete object-count and size values without scanner details.
  • Removes scanner-specific presentation components and their tests.
  • Updates regression coverage to verify complete statistics and the absence of scanner text on both list surfaces.
File Description
tests/​lib/​bucket-usage-value.test.ts Removes tests for deleted scanner presentation components.
tests/​hooks/​use-permissions-refresh.test.ts Replaces scanner assertions with concise statistics checks.
components/​buckets/​usage-value.tsx Deletes scanner-aware usage, status, and notice components.
components/​buckets/​name-cell.tsx Deletes the shared scanner-aware name cell.
components/​buckets/​list.tsx Renders simple bucket links and complete statistics in settings lists.
app/​(dashboard)/​browser/​page.tsx Applies the same concise presentation to Browser.

Review effort: Balanced

Comment thread app/(dashboard)/browser/page.tsx Resolved
@cxymds

cxymds commented Nov 23, 2026

Copy link
Copy Markdown
Member Author

Addressed the review feedback in commit 7e2029f.

  • Restored a stable shared BucketNameCell that renders only the bucket link and name.
  • Browser and bucket settings lists now reuse that component across refreshes.
  • Added a regression assertion that the anchor node remains the same after a refresh.
  • Missing Object Count and Size values render as --.

The scanner status and progress presentation remains removed.

@cxymds
cxymds merged commit b329436 into main Nov 23, 2026
10 checks passed
@cxymds
cxymds deleted the cxymds/fix/bucket-statistics-display branch November 23, 2026 03:16
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.

2 participants