Skip to content

docs(brain): note trial attach after Slack OAuth#1313

Merged
graphite-app[bot] merged 1 commit into
mainfrom
mahesh/eng-1063-cb-trial-pricing
Jul 21, 2026
Merged

docs(brain): note trial attach after Slack OAuth#1313
graphite-app[bot] merged 1 commit into
mainfrom
mahesh/eng-1063-cb-trial-pricing

Conversation

@MaheshtheDev

Copy link
Copy Markdown
Member

Summary

  • Documents that mono attaches Scale 14d trial + Company Brain after Slack OAuth from /brain.

Stacks on #1310. Billing implementation is in mono.

@linear-code

linear-code Bot commented Jul 20, 2026

Copy link
Copy Markdown

ENG-1063

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 20, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
supermemory-app 9bbe436 Commit Preview URL

Branch Preview URL
Jul 21 2026, 09:37 PM

MaheshtheDev commented Jul 20, 2026

Copy link
Copy Markdown
Member Author

How to use the Graphite Merge Queue

Add the label Main to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@claude

claude Bot commented Jul 20, 2026

Copy link
Copy Markdown

Claude finished @MaheshtheDev's task in 1m 26s —— View job


Review Complete

  • Fetch PR diff and analyze changes
  • Check existing review comments
  • Review code for bugs, security issues, and logic errors
  • Submit review summary

Overview: Adds Company Brain trial billing UI and state management, showing Scale trial with 14-day/200-credit limits and handling trial-ended states.

Issues found: None — this looks good to ship.

The implementation is solid:

  • Trial state logic correctly handles active, expired, and exhausted states
  • isLiveSubscriptionStatus properly treats "trialing" as a valid subscription
  • Timestamp handling correctly distinguishes seconds vs milliseconds
  • getBrainTrialInfo safely parses metadata with proper error handling
  • UI correctly gates the plan carousel for Company Brain orgs

Score: 10/10

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 20, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
supermemory-mcp 9bbe436 Jul 21 2026, 09:35 PM

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Overview: Adds Company Brain trial billing UI and state management, showing Scale trial with 14-day/200-credit limits and handling trial-ended states.

Issues found: None — this looks good to ship.

The implementation is solid:

  • Trial state logic correctly handles active, expired, and exhausted states
  • isLiveSubscriptionStatus in queries.ts properly treats "trialing" as a valid subscription for feature access
  • Timestamp handling in use-token-usage.ts correctly distinguishes seconds vs milliseconds (threshold at 10B)
  • getBrainTrialInfo safely parses metadata as either string or object with proper error handling
  • UI correctly gates the plan carousel for Company Brain orgs (Scale + Enterprise only)
  • Credit display appropriately switches between trial credits and top-up credits based on subscription state

Score: 10/10

@graphite-app
graphite-app Bot changed the base branch from mahesh/eng-1057-company-slack-onboarding-v2 to graphite-base/1313 July 21, 2026 21:19
@MaheshtheDev
MaheshtheDev changed the base branch from graphite-base/1313 to main July 21, 2026 21:25
@MaheshtheDev
MaheshtheDev force-pushed the mahesh/eng-1063-cb-trial-pricing branch from 0f86318 to b9167d9 Compare July 21, 2026 21:25

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Overview: Adds Company Brain trial billing UI and state management, showing Scale trial with 14-day/200-credit limits and handling trial-ended states.

Issues found: None — this looks good to ship.

The implementation is solid:

  • Trial state logic correctly handles active, expired, and exhausted states
  • isLiveSubscriptionStatus in queries.ts properly treats "trialing" as a valid subscription for feature access
  • Timestamp handling in use-token-usage.ts correctly distinguishes seconds vs milliseconds (threshold at 10B)
  • getBrainTrialInfo safely parses metadata as either string or object with proper error handling via Number.isFinite() checks
  • UI correctly gates the plan carousel for Company Brain orgs (Scale + Enterprise only)
  • Credit display appropriately switches between trial credits and top-up credits based on subscription state

Score: 10/10

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Overview: Adds Company Brain trial billing UI and state management, showing Scale trial with 14-day/200-credit limits and handling trial-ended states.

Issues found: None — this looks good to ship.

The implementation is solid:

  • Trial state logic correctly handles active, expired, and exhausted states
  • isLiveSubscriptionStatus in queries.ts properly treats "trialing" as a valid subscription for feature access
  • Timestamp handling in use-token-usage.ts correctly distinguishes seconds vs milliseconds (threshold at 10B)
  • getBrainTrialInfo safely parses metadata as either string or object with proper error handling via Number.isFinite() checks
  • UI correctly gates the plan carousel for Company Brain orgs (Scale + Enterprise only)
  • Credit display appropriately switches between trial credits and top-up credits based on subscription state

Score: 10/10

@graphite-app

graphite-app Bot commented Jul 21, 2026

Copy link
Copy Markdown

Merge activity

## Summary
- Documents that mono attaches Scale 14d trial + Company Brain after Slack OAuth from `/brain`.

Stacks on #1310. Billing implementation is in mono.
@graphite-app
graphite-app Bot force-pushed the mahesh/eng-1063-cb-trial-pricing branch from b9167d9 to 9bbe436 Compare July 21, 2026 21:34
@graphite-app
graphite-app Bot merged commit 9bbe436 into main Jul 21, 2026
5 of 7 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