Merged
Conversation
- Remove all Stripe dependencies and references - Implement Commet webhook handler for subscription events - Add webhook secret to setup script - Create .env.example with all required variables - Update README with webhooks and deployment instructions - Add docker compose up -d to terminal component - Add db:push script to package.json - Update docker-compose.yml for credits-saas configuration - Remove migration files (use db:push for initial setup) - Fix POSTGRES_URL consistency across documentation
- Revise README to enhance descriptions and add new features - Update dashboard components to improve user experience and messaging - Change references from "Commet" to "billing portal" for clarity - Adjust error messages for better user guidance - Improve credit management and usage tracking descriptions
…move team-based logic - Replace DATABASE_URL with POSTGRES_URL in .env.example - Introduce BETTER_AUTH_SECRET and BETTER_AUTH_URL for Better Auth configuration - Update package.json and package-lock.json to include @commet/better-auth and better-auth dependencies - Remove team-related logic and references throughout the application - Revise README to reflect changes in authentication and billing integration - Enhance user session management and activity logging - Update dashboard components to align with new user-centric design
…date dashboard components for improved user experience - Deleted Dockerfile and LICENSE files as part of project cleanup - Simplified UserMenu component by removing unnecessary links - Enhanced DashboardPage to dynamically display credits feature usage - Updated PricingPage text for clarity on credit usage
…roved user experience - Changed "View Full Billing History" to "Customer Portal" and updated description for clarity - Deleted the CreditsPage component to streamline the dashboard - Enhanced UsageMeter component by removing unnecessary UI elements - Improved error handling in createCheckoutSession function for better user guidance
…isplay - Implemented user session checks in PricingPage to redirect based on subscription status - Added logic to handle pending payments and active subscriptions with appropriate redirects - Updated UsageMeter to conditionally display usage information based on total value, improving UI clarity
…handling - Removed the Credits link from UserMenu to streamline navigation - Added session management in Header to conditionally display the Pricing link based on user authentication status - Enhanced password update logic in actions.ts to utilize Better Auth API for improved error handling
- Implemented checks for active subscriptions in getPortalUrlAction to ensure users have valid access. - Enhanced getUsageDataAction to handle cases where subscriptions are inactive or trialing, returning appropriate feature visibility.
10b08e4 to
7b10228
Compare
…example - Updated @commet/better-auth to version 1.2.2 and @commet/node to version 1.4.2 in package.json and bun.lock. - Enhanced plan handling in plans.ts by dynamically setting planCode based on the current plan, improving flexibility in plan management.
- Added useEffect to check for active subscriptions and conditionally display the Pricing link based on user authentication status. - Enhanced UserMenu and Header components for improved session handling and user experience. - Removed pnpm-lock.yaml file as part of project cleanup.
- Deleted the Commet webhook route and associated logic from the application. - Updated environment variables and README to reflect the removal of webhook secret configuration. - Refactored plan handling to utilize the Commet API directly without custom transformations. - Enhanced PricingPage to display plan features more effectively.
- Upgraded @commet/better-auth to version 1.2.3, @commet/next to version 0.2.11, and @commet/node to version 1.4.3 in package.json and bun.lock. - Removed package-lock.json as part of the transition to bun.lock for dependency management.
- Updated the createCheckoutSession function to accept an optional successUrl parameter for custom post-checkout redirects. - Modified the CheckoutPage to construct the success URL using the new environment variable NEXT_PUBLIC_APP_URL.
- Moved authentication actions from the login directory to a centralized auth directory for better structure. - Removed the Terminal component and its associated file as it was no longer needed. - Updated import paths in dashboard pages to reflect the new location of authentication actions. - Deleted unused login and sign-up pages to streamline the codebase.
- Changed import paths for actions in dashboard components to a centralized location for better organization. - Deleted unused action files related to authentication, billing, credits, plans, portal, subscription, and usage to streamline the codebase. - Updated related components to reflect the new import paths.
…ation - Added the sonner library for toast notifications to improve user feedback on authentication actions. - Updated login and account management forms to utilize Zod for validation, providing detailed field error messages. - Refactored the dashboard's account and security pages to use new FormField and SubmitButton components for better UI consistency. - Implemented caching for fetching plans to optimize performance in the plans action.
- Modified the login component to improve layout structure by changing the CSS class for better responsiveness. - Refactored the dashboard layout to utilize a centralized Header component, enhancing code organization. - Updated the checkout action to redirect users to the sign-up page with a plan code if they are not authenticated.
- Deleted the PurchaseCreditsDialog component as it is not currently supported by the Commet SDK and is not needed at this time. - Cleaned up related imports and types in the auth validation file to streamline the codebase.
- Updated all package dependencies to their latest versions in bun.lock and package.json. - Adjusted specific package versions for better compatibility and performance, including @types, tailwindcss, dotenv, drizzle-orm, and others. - Removed outdated dependencies and ensured alignment with the latest releases.
7b10228 to
89fd13a
Compare
… overview - Introduced CreditBalance component to display total, plan, and purchased credits with visual indicators. - Added TransactionHistory component to present a detailed view of billing transactions, including status and action buttons. - Updated import paths for UsageMeter and TransactionHistory components to reflect new file structure. - Enhanced documentation in usage.ts for clarity on usage data retrieval.
- Updated package.json to use fixed versions for all dependencies, ensuring consistency and predictability in builds. - Removed caret (^) from version numbers for better control over dependency updates.
- Updated package versions in bun.lock for better stability and predictability. - Modified CheckoutPage to use a fallback for baseUrl and changed successUrl to redirect to the dashboard. - Removed the unused CheckoutSuccessPage component to streamline the codebase. - Added detailed logging for debugging in the createCheckoutSession function to improve error handling.
- Updated CSS classes in the Login component to streamline styling and enhance readability. - Removed unnecessary styling properties for input fields and buttons, focusing on essential classes for better maintainability.
- Added handlePostSignupCheckout function to manage checkout redirection after user signup. - Updated Login component to call the new function when a planCode is provided, improving the user experience during authentication. - Enhanced error handling for checkout session creation to provide user feedback on failures.
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.
No description provided.