Skip to content

Conversation

@evanliu048
Copy link
Contributor

@evanliu048 evanliu048 commented Jul 23, 2025

Issue #, if available:

Description of changes:
Support getUsageLimits API and usage breakdown UI

  • Integrated getUsageLimits API into ApiClient
  • Displayed subscription tier, usage limits, overage status, and reset time in CLI UI
  • Updated LIMIT_REACHED_TEXT and CLI messaging for overage guidance

Pro User:

Usage info
proUserUsage
Hit limits
hit limis

Free Tier User:

Usage info
free usage

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

// DateTime → SystemTime
match SystemTime::try_from(*dt) {
Ok(st) => {
let local: chrono::DateTime<chrono::Local> = st.into();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

m/d/Y formatting is a bit confusing, can we instead do either ISO 8601 style: %Y/%m/%d or print the full month name: %B %d, %Y (e.g. August 1, 2025)

https://docs.rs/chrono/latest/chrono/format/strftime/

@evanliu048 evanliu048 marked this pull request as draft July 29, 2025 20:16
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