feat(account): add quota trend chart and multi-account risk gate

- Gate multi-account login, import, switch, backup quota polling, and vault controls behind explicit risk consent (accountSwitchRiskAccepted), restricting unaccepted sessions to active-account quota viewing
- Add collinear-compressed per-account quota history tracking and a full-bleed 184px AccountQuotaTrendCard supporting cycle, preset, all-time, and custom ranges with cycle-boundary pre-reset filtering and isolated impulse spike sanitization
- Unify Account tab controls onto shared SegmentedControl, CustomSelect, CustomDateTimePicker, .ctx-risk-mask, and global status/button primitives while removing bespoke .account-* CSS and balancing card padding
This commit is contained in:
fish
2026-11-25 03:42:33 +09:00
parent 1330b31ef7
commit e520efe84e
20 changed files with 4103 additions and 1235 deletions
+5 -4
View File
@@ -33,16 +33,17 @@ const BACKEND_MODULE_FILES = [
'../shared/prompt-clean.mjs',
'../backend/fs-atomic.mjs',
'../backend/context-windows.mjs',
'../backend/account-oauth.mjs',
'../backend/account-login.mjs',
'../backend/account-vault-crypto.mjs',
'../backend/account-switch.mjs',
'../backend/http-helpers.mjs',
'../backend/settings-schema.mjs',
'../backend/sqlite-client.mjs',
'../backend/trajectory-sqlite-ledger.mjs',
'../backend/trajectory-cache-store.mjs',
'../backend/config.mjs',
'../backend/account-quota-history.mjs',
'../backend/account-oauth.mjs',
'../backend/account-login.mjs',
'../backend/account-vault-crypto.mjs',
'../backend/account-switch.mjs',
'../backend/endpoint-registry.mjs',
'../backend/proto-wire.mjs',
'../backend/cli-sqlite-reader.mjs',