Skip to content

Conversation

@jahooma
Copy link
Contributor

@jahooma jahooma commented Jan 28, 2026

No description provided.

@jahooma
Copy link
Contributor Author

jahooma commented Jan 29, 2026

Brandon says:
we should def make sure to set up [/profile?tab=usage&subscription_success=true] to check for subscription_success=true cases on this page and show some welcome/thanks for subscribing messages

@jahooma jahooma mentioned this pull request Jan 29, 2026
Base automatically changed from subscription to main January 29, 2026 22:15
Copy link
Collaborator

@brandonkachen brandonkachen left a comment

Choose a reason for hiding this comment

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

mostly looks good, just needs some de-slopification. one key issue to fix/consciously ignore before merging: https://github.com/CodebuffAI/codebuff/pull/424/changes#r2748507503

⏱️ Block limit reached
</text>
<text style={{ fg: theme.muted }}>
You've used all {rateLimit.blockLimit?.toLocaleString()} credits in this 5-hour block.
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: we should use the constant for the block size.

Copy link
Collaborator

Choose a reason for hiding this comment

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

also, if rateLimit.blockLimit doesn't exist, we should put a placeholder string, e.g. "your" -> "You've used all credits..."

<>
<Button onClick={handleContinueWithCredits}>
<text style={{ fg: theme.foreground }}>
[Continue with a-la-carte] ({remainingBalance.toLocaleString()} available)
Copy link
Collaborator

Choose a reason for hiding this comment

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

should we make these look like proper buttons? like our /feedback submit button?

<ProgressBar
percentAvailable={
rateLimit.blockLimit != null && rateLimit.blockUsed != null && rateLimit.blockLimit > 0
? 100 - (rateLimit.blockUsed / rateLimit.blockLimit) * 100
Copy link
Collaborator

Choose a reason for hiding this comment

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

wait we shouldn't pass back the actual amounts from the server to the client; only the server should know how much is actually used, the client should only ever see percentages

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think this matters that much

Copy link
Contributor Author

@jahooma jahooma left a comment

Choose a reason for hiding this comment

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

Addressed comments!

<ProgressBar
percentAvailable={
rateLimit.blockLimit != null && rateLimit.blockUsed != null && rateLimit.blockLimit > 0
? 100 - (rateLimit.blockUsed / rateLimit.blockLimit) * 100
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think this matters that much

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.

3 participants