Skip to content

Refactor subscription handling and environment configuration for Pola…#356

Merged
Stivenjs merged 5 commits into
mainfrom
cli
Oct 16, 2025
Merged

Refactor subscription handling and environment configuration for Pola…#356
Stivenjs merged 5 commits into
mainfrom
cli

Conversation

@Stivenjs
Copy link
Copy Markdown
Contributor

…r integration

This commit updates the subscription handling logic across multiple components to improve user experience and streamline interactions with the Polar API. It introduces environment-specific product IDs for better management of plans in development and production. Additionally, it enhances the authorization model in the user subscription schema and modifies the checkout process to ensure proper validation and error handling. The AWS Amplify configuration is also refined to ensure consistent API access.

…r integration

This commit updates the subscription handling logic across multiple components to improve user experience and streamline interactions with the Polar API. It introduces environment-specific product IDs for better management of plans in development and production. Additionally, it enhances the authorization model in the user subscription schema and modifies the checkout process to ensure proper validation and error handling. The AWS Amplify configuration is also refined to ensure consistent API access.
@Stivenjs Stivenjs self-assigned this Oct 16, 2025
@Stivenjs Stivenjs added enhancement New feature or request good first issue Good for newcomers javascript Pull requests that update javascript code labels Oct 16, 2025
This commit updates the error handling in the portal route by replacing the JSON response for unauthenticated users with a thrown error. This change simplifies the authentication check and improves the clarity of error management in the API response.
This commit enhances the ChatTrigger and RefinedAIAssistantSheet components by incorporating mobile detection hooks. It modifies the state management for chat visibility to prevent actions on mobile devices and ensures that the chat UI is rendered only on desktop. Additionally, the ChatContext is updated to use a safe setter for the chat state, improving user experience across different devices.
This commit introduces a new `planFaqs` export in the plans component, providing detailed FAQs about the Fasttify platform. Additionally, it updates the `CheckoutModal` to navigate to the plan selection page when the "Ver todos los planes" button is clicked, improving user experience. The `TopBarPolaris` component is also enhanced with new icons for better visual representation of actions related to user profile and subscription plans. Furthermore, several profile components are refactored to handle loading states more gracefully by checking for user existence, ensuring a smoother user experience.
…xperience

This commit modifies the `PolarisLayout` component to conditionally set the dashboard URL based on the presence of a store ID, enhancing navigation. Additionally, it updates the `TopBarPolaris` component to ensure the user picture is handled more gracefully by using undefined as a fallback, improving the robustness of the user profile display. These changes aim to streamline user interactions and enhance overall usability.
@Stivenjs Stivenjs merged commit 164bd8f into main Oct 16, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request good first issue Good for newcomers javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant