-
Notifications
You must be signed in to change notification settings - Fork 41
feat: schedule pro details fetch jobs based on proof and access expir… #1704
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements automatic scheduling of pro details fetch jobs based on proof and access expiry timestamps to ensure timely updates of pro subscription status.
Key changes:
- Adds scheduling logic for refreshing pro details before proof and access expiry
- Refactors donate CTA logic from
ActionsPanel.tsxtoSessionCTA.tsxfor better organization - Implements caching for DB creation timestamp to avoid repeated queries
- Adds a new debug playground page for testing CTA variants
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| ts/state/ducks/proBackendData.ts | Implements core scheduling logic with timeout management for proof and access expiry refreshes, updates handleNewProProof to return proof data |
| ts/components/dialog/SessionCTA.tsx | Moves donate CTA logic here and adds pro availability checks for triggered CTAs |
| ts/components/leftpane/ActionsPanel.tsx | Removes donate CTA logic (moved to SessionCTA) and adds calls to fetch pro details and handle CTAs on startup |
| ts/data/data.ts | Adds caching layer for DB creation timestamp to improve performance |
| ts/components/dialog/debug/playgrounds/CTAPlaygroundPage.tsx | New debug page for testing different CTA variants |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated 7 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.