refactor: extract HyprCloudCTAButton and unify cloud UI#4128
Merged
Conversation
Consolidates duplicated cloud CTA button logic from STT and LLM settings into a shared HyprCloudCTAButton component, removes pro entitlement requirement from hyprnote provider, and improves UX by auto-opening the hyprnote accordion when no LLM is configured. Co-authored-by: Cursor <cursoragent@cursor.com>
✅ Deploy Preview for hyprnote canceled.
|
✅ Deploy Preview for hyprnote-storybook canceled.
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
…t dropdown bypass Co-Authored-By: yujonglee <yujonglee.dev@gmail.com>
…o prevent dropdown bypass" This reverts commit 8fdac2f.
Co-Authored-By: yujonglee <yujonglee.dev@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
HyprCloudCTAButtoncomponent (used by both STT and LLM settings)requires_entitlement: profrom the hyprnote LLM provider definition — auth is now sufficient for eligibility, matching the STT patternupgradeToPro()instead of changing the provideruseConfiguredMapping(proLockedfield) into the provider dropdown render, reading directly fromprovider.requirements"Pro"→"Pro (Cloud)"and"Cloud"→"Pro (Cloud)"for consistencyrequires_entitlement: pro)Updates since last revision
requires_entitlement: prorestoration on the hyprnote provider (keeping it removed was intentional)onValueChangeinterceptor in the LLM provider Select: when a non-pro user picks "hyprnote", it callsbilling.upgradeToPro()and returns early without changing the form value — same gating pattern as STTReview & Testing Checklist for Human
HyprProviderAutoRowpath which has its ownisProgate.HyprCloudCTAButtonshows correct label in both STT and LLM settings (Ready to use / Start Free Trial / Upgrade to Pro)Notes
Since
requires_entitlement: prowas removed from the hyprnote provider definition, the Pro badge and "Upgrade to Pro" hint text in the dropdown won't render for hyprnote specifically (those are driven byrequiresEntitlement(provider.requirements, "pro")). The guard is purely behavioral viaonValueChange. Verify this UX is acceptable.Requested by @yujonglee | Devin session