Commit graph

22 commits

Author SHA1 Message Date
Bill Yang
97c29dafac
Fix callbacks (#107)
* Fix callbacks

* fix layout

* Remove callbacks

* Disable redirects

* fix caddy

* test disable basepath

* wip

* test caddy fix

* remove basepath

* fml

* pray

* kms

* pray

* wip

* Test
2025-05-03 16:27:46 -07:00
Bill Yang
1d0ffdf9d9 Refactor authentication and environment configuration
- Removed the .env.example file as it is no longer needed.
- Added DISABLE_SIGNUP environment variable to docker-compose files for cloud and development environments.
- Updated setup script to include DISABLE_SIGNUP with a default value of false.
- Modified auth.ts to utilize DISABLE_SIGNUP for controlling signup functionality.
- Introduced DISABLE_SIGNUP constant in const.ts to manage its value from environment variables.
2025-05-03 13:14:13 -07:00
Bill Yang
55bf9c60f7 try to fix sso 2025-05-03 12:05:25 -07:00
Bill Yang
d3cb3a5a82 try to fix sso 2025-05-03 12:03:43 -07:00
Bill Yang
b34aff1153 Update environment variables for cloud integration in Docker configurations
- Added GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET to both docker-compose files for cloud support.
- Included GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET in the environment variables.
- Updated the auth.ts file to enable social login providers for cloud deployments.
2025-05-03 11:43:09 -07:00
Bill Yang
0d0b7c33b2 Add member functionality and organization management enhancements
- Introduced `AddMemberDialog` to facilitate adding members to organizations in the settings page.
- Updated the organization component layout for improved user experience and accessibility.
- Refactored member handling logic to ensure proper refresh and state management.
- Added a new API endpoint for adding users to organizations, enhancing backend functionality.
- Modified account creation to include organization association, improving user onboarding process.
2025-04-26 00:00:51 -07:00
Bill Yang
9c605ef00b Refactor database integration and clean up unused code
- Removed PostgreSQL initialization and related session types to streamline database management.
- Updated Clickhouse integration by commenting out unused table and view creation queries for future reference.
- Enhanced button styles in the UI components for improved consistency and user experience.
2025-04-16 13:03:11 -07:00
Bill Yang
c631b19dd9
custom stripe integration (#88)
* custom stripe integration

* Refactor subscription management UI and remove unused components

- Removed ChangePlanDialog, CurrentPlanCard, and ErrorDialog components to streamline subscription management.
- Updated SubscriptionPage to define PlanTemplate locally and improve plan details handling.
- Adjusted button labels for clarity and removed unnecessary HelpSection for a cleaner interface.
- Enhanced the overall structure and readability of the SubscriptionPage component.

* Refactor SubscriptionPage to streamline plan display and enhance user experience

- Removed unused components and consolidated plan handling into FreePlan and ProPlan components for better organization.
- Simplified the SubscriptionPage structure by integrating the useStripeSubscription hook and eliminating redundant state management.
- Improved UI clarity by directly rendering plan components based on subscription status, enhancing overall user interaction.

* Refactor subscription plans and UI components for improved clarity and functionality

- Updated FreePlan and ProPlan components to enhance the display of subscription details and usage information.
- Renamed pricing tiers from "basic" to "pro" in both client and server code to reflect the new subscription structure.
- Simplified the layout of SubscriptionPage and adjusted button styles for better user experience.
- Enhanced plan details and descriptions to provide clearer information on subscription benefits and features.

* Enhance Header and UsageBanners components for improved user experience

- Updated Header component to display UsageBanners with padding for better layout.
- Simplified button styles in UsageBanners for consistency and clarity.
- Adjusted text labels in UsageBanners to better reflect user actions and subscription options.
- Removed unnecessary console log from Weekdays component to clean up code.

* Update subscription plans and event limits to reflect new pricing structure

- Changed the event limit for the free plan from 20,000 to 10,000 across client and server code.
- Renamed the "basic" plan to "pro" in the subscription management UI and related components for consistency.
- Adjusted plan details and features to align with the new subscription offerings, enhancing clarity for users.
- Removed deprecated code related to subscription handling to streamline the implementation.
2025-04-15 23:31:41 -07:00
Bill Yang
69d06c6607 show usage in subsription 2025-03-13 23:26:56 -07:00
Bill Yang
3b05aa6757 Add usage checker 2025-03-13 22:15:10 -07:00
Bill Yang
db06705649 update schema 2025-03-13 19:53:35 -07:00
Bill Yang
bcc1cc5d29
init subscription (#51)
* init subscription

* add subscription plans

* fix docker

* fix docker

* fix docker

* wip

* wip
2025-03-11 21:03:23 -07:00
Bill Yang
2d22dc6fee
init cloud version (#46)
* init cloud version

* remove unused endpoints

* implement deletion

* Add organization creation

* add getSitesUserHasAccessTo

* Add permission gating for sites

* add organization control

* remove username login

* support creating new sites for organizations

* Delete unused page

* wip
2025-03-09 18:06:48 -07:00
Bill Yang
2b5c677933
Wip (#42)
* Wip

* Add drizzle support

* Fix build

* fix migrations

* update dockerfiles

* update stuff

* simplify

* fix migrations

* remove migration code

* fix migrations

* update script

* wip

* bump script

* wip

* fix

* bump

* copy public

* wip

* wip
2025-03-05 12:29:30 -08:00
Bill Yang
8d6762d37d bump better auth 2025-03-03 22:31:18 -08:00
Bill Yang
61d64c1293
add new user (#18) 2025-02-19 18:00:55 -08:00
Bill Yang
0c6810ef39 Add delete account 2025-02-18 16:57:37 -08:00
Bill Yang
f5ce57f772 refactor login 2025-02-17 18:27:24 -08:00
Bill Yang
e61ec28531 fix auth locally 2025-02-17 18:02:12 -08:00
Bill Yang
05292f9ebb fix allowlist 2025-02-17 10:29:00 -08:00
Bill Yang
e1f299fc8a load trustedOrigins from db 2025-02-16 23:20:07 -08:00
Bill Yang
0dc058749d
auth (#3)
* auth

* Add default user

* setup auth

* add auth to all endpoints

* Add url logging

* Add tomato.gg

* Add analytics

* Add correct url

* fix auth

* log url

* change base url

* replace api

* wip

* Test

* test changes

* bump

* Add trusted origin

* f

* i almost give up

* stop using middleware

* Fix auth

* Fix build
2025-02-15 12:55:28 -08:00