3.7 KiB
3.7 KiB
id, title, status, wave, depends_on, plan, requirements, acceptance_criteria, system_design
| id | title | status | wave | depends_on | plan | requirements | acceptance_criteria | system_design | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 02-storage-resource-rows | Database storage resource rows | completed | 2 |
|
plan.md |
|
|
|
Task 02: Database storage resource rows
Summary
Render both resources and incorporate their measured bytes into the existing total, including localized state and scope explanations.
In scope
- Both expandable rows display sizes, locations, and measurement explanations through existing shared desktop/mobile components.
- Totals add each counted measurement once and correctly handle unknown, unavailable, not-applicable, full-overlap, and partial-overlap states.
- All five language catalogs and targeted component fixtures include the new resources.
Out of scope
New cleanup behavior, retention changes, remote database measurement, and unrelated storage categories.
Acceptance
- Both expandable rows display sizes, locations, and measurement explanations through existing shared desktop/mobile components.
- Totals add each counted measurement once and correctly handle unknown, unavailable, not-applicable, full-overlap, and partial-overlap states. Missing measurements show pending or scanning source progress until a terminal response can classify them as unknown or unavailable.
- All five language catalogs and targeted component fixtures include the new resources.
Verification
Run from apps/web:
For a fresh worktree, first run rtk pnpm install --frozen-lockfile from apps/.
rtk pnpm exec vitest run components/settings/system/storage/storage-totals.test.ts components/settings/system/storage/storage-overview-card.test.tsx hooks/domains/system/use-storage-maintenance.test.tsx
rtk pnpm run typecheck
rtk pnpm run i18n:zh-hant
rtk pnpm run i18n:check
rtk pnpm run i18n:ratchet
Files likely touched
apps/web/lib/types/system.tsapps/web/components/settings/system/storage/storage-overview-resources.tsapps/web/components/settings/system/storage/storage-overview-card.tsxapps/web/components/settings/system/storage/storage-totals.tsapps/web/components/settings/system/storage/storage-totals.test.tsapps/web/components/settings/system/storage/storage-overview-card.test.tsxapps/web/hooks/domains/system/use-storage-maintenance.test-fixtures.tsxapps/web/src/locales/en/system.jsonapps/web/src/locales/pt-pt/system.jsonapps/web/src/locales/zh-cn/system.jsonapps/web/src/locales/zh-hk/system.jsonapps/web/src/locales/zh-tw/system.json
Dependencies
Task 01.
Risks
Adding required fields can break existing fixtures; optional compatibility fields must still mark unknown measurements as partial.
Parallelism
sequential
Inputs
- Requirements, active requirement
REQ-SYSTEM-PAGE-STORAGE-MAINTENANCE-002. - System design.
- Existing storage provider, overview cache, resource rows, and mobile storage tests.
Results
Implemented localized database and backup rows, exact-once totals, partial and status handling, scope explanation, and compatibility fixtures. The focused web tests passed 45 tests, followed by typecheck, lint, and all i18n gates.