8000 feat(web): manage accounts from the overview and drop the accounts page by InfinityPacer · Pull Request #11 · InfinityPacer/meterleaf · GitHub
[go: up one dir, main page]

Skip to content

feat(web): manage accounts from the overview and drop the accounts page - #11

Merged
InfinityPacer merged 1 commit into
mainfrom
feat/merge-accounts-into-overview
Sep 26, 2026
Merged

InfinityPacer merged 1 commit into
mainfrom
feat/merge-accounts-into-overview

Conversation

@InfinityPacer
Copy link
Copy Markdown
Owner

Problem

After #9 merged the overview, its 账户额度 section showed the same account rows as the standalone 账户额度 page. The page only remained for account management (sort, rename, archive, delete, archived list) and an account filter that has little use with a handful of accounts.

Result

  • The 账户额度 page is gone. Navigation is 用量总览, 统计报表, 请求明细. The mobile tab bar has four items (首页, 统计, 明细, 关于).
  • The overview's account section, on web and on the mobile home, now carries management. The heading has 排序 and, when accounts are archived, 已归档 N. Each row has a ⋯ menu with rename, archive or restore, and delete. The archived list is a transient view with a 使用中账户 button to return and is not remembered across reloads.
  • Moving an account up or down skips archived accounts, so every move visibly changes the list. Archived accounts keep their place in the saved order.
  • The special handling of the legacy #accounts and #period hashes is removed. Those links now open the last visited page. The page preference no longer accepts them, and the account-archive-view and account-filter preferences are dropped.
  • Docs, changelog and README screenshots are updated. The two account-page screenshots are removed.

Verification

  • bun run typecheck, bun test tests (337 pass, including a new ordering test for archived neighbours) and bun run build pass.
  • Against a demo backend with an isolated headless Chrome, tests/browser.smoke.ts passes at 1440×1000 and 390×844. tests/account-management.browser.ts passes and covers sorting persistence, sort skipping archived accounts, archive and restore, the transient archived view, rename, delete, failed writes and read-only states.
  • tests/mobile-app.browser.ts passes its new mobile account-management checks (archive, restore, single empty state, sort persistence) and then stops at the drawer border colour assertion that already fails on main.
  • quota-pwa-layout and global-layout pass. visual-feedback, appearance-sorting, report-preferences and sync-refresh stop at assertions that fail identically on main before this change. Their account-related parts were updated and passed when those older steps were bypassed in a temporary copy.
Web overview Mobile home

🤖 Generated with Claude Code

The overview's account section already showed the same rows as the
standalone 账户额度 page, so the page is removed. Sorting, renaming,
archiving, restoring and deleting now happen in the overview's account
section on web and on the mobile home, with an 已归档 N entry for the
archived list. Moving an account skips archived neighbours. The legacy
#accounts and #period hash handling is removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@InfinityPacer
InfinityPacer merged commit b3aa12f into main Sep 26, 2026
2 checks passed
@InfinityPacer
InfinityPacer deleted the feat/merge-accounts-into-overview branch September 26, 2026 03:13
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.

1 participant

0