summaryrefslogtreecommitdiffhomepage
path: root/src/app/views
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-10-14 17:29:03 +0900
committerAdam Malczewski <[email protected]>2026-10-14 17:29:03 +0900
commit8853a2df4c8b255d8c6638858f525ed5a0387f5f (patch)
tree68c71afe1ec59a58fd1fe2b30c486a31c33358f5 /src/app/views
parentd928bc86c35f590eb9113148bccf3c4ae56e8fa6 (diff)
downloaddispatch-web-8853a2df4c8b255d8c6638858f525ed5a0387f5f.tar.gz
dispatch-web-8853a2df4c8b255d8c6638858f525ed5a0387f5f.zip
feat(account-usage): Hyper daily credits card with allowance + reset-time editor
Diffstat (limited to 'src/app/views')
-rw-r--r--src/app/views/AccountUsagePane.svelte12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/app/views/AccountUsagePane.svelte b/src/app/views/AccountUsagePane.svelte
index 4315d4c..09afb5f 100644
--- a/src/app/views/AccountUsagePane.svelte
+++ b/src/app/views/AccountUsagePane.svelte
@@ -1,16 +1,22 @@
<script lang="ts">
/**
- * The `account-usage` view — Claude + Codex subscription usage bars with
+ * The `account-usage` view — Claude + Codex + Hyper usage bars with
* on-track pace markers. GLOBAL (not workspace/conversation scoped), so it
* stays mounted across tab switches (no {#key}).
*/
- import { AccountUsageView, type LoadAccountUsage } from "../../features/account-usage";
+ import {
+ AccountUsageView,
+ type LoadAccountUsage,
+ type SaveAccountUsageSettings,
+ } from "../../features/account-usage";
import type { AppViewPorts } from "../view-ports";
let { ports }: { ports: AppViewPorts } = $props();
const store = $derived(ports.store);
const loadAccountUsage: LoadAccountUsage = (opts) => store.accountUsage(opts);
+ const saveAccountUsageSettings: SaveAccountUsageSettings = (provider, settings) =>
+ store.setAccountUsageSettings(provider, settings);
</script>
-<AccountUsageView load={loadAccountUsage} />
+<AccountUsageView load={loadAccountUsage} saveSettings={saveAccountUsageSettings} />