Skip to content

Enhance usage tracking and improve reminder page layout#325

Merged
asim merged 3 commits intomainfrom
claude/track-api-usage-L6x8s
Mar 21, 2026
Merged

Enhance usage tracking and improve reminder page layout#325
asim merged 3 commits intomainfrom
claude/track-api-usage-L6x8s

Conversation

@asim
Copy link
Member

@asim asim commented Mar 21, 2026

No description provided.

claude added 3 commits March 21, 2026 12:04
Save usage records to ai_usage.json via data package. Loaded on init,
saved after each new record. Preserves the tracking start time.

https://claude.ai/code/session_016UhaM3HefwZjArvB7hHbpE
Move usage persistence from ai package to app.RecordUsage with a
universal schema: service, caller, cost, and optional details map.
AI token tracking feeds into it as the "claude" service. Google and
Brave API calls now also record their estimated costs.

Migrates existing ai_usage.json data to usage.json on first load.
Admin page shows cost breakdown by service instead of AI-specific view.

https://claude.ai/code/session_016UhaM3HefwZjArvB7hHbpE
The card shows a verse, so the detail page should continue from there
instead of burying it under other sections. New order: verse first,
then message as a brief reflection, hadith, name of Allah, discuss.

Removed card wrapper from content divs, downgraded headings to h3,
dropped the "Updated" timestamp and redundant section labels.

https://claude.ai/code/session_016UhaM3HefwZjArvB7hHbpE
@asim asim merged commit aee6acc into main Mar 21, 2026
1 of 2 checks passed
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