Commit graph

10 commits

Author SHA1 Message Date
Bill Yang
93a6639d2e
New env (#122)
* Allow setting all variables in .env file

* Fix postgres version

* pin versions

* bump

---------

Co-authored-by: pe1uca <edga.alva@gmail.com>
2025-05-05 20:31:11 -07:00
Bill Yang
2988e7b079 Add demo mode support and improve EventList component
- Introduced NEXT_PUBLIC_DEMO environment variable in docker-compose for demo mode configuration.
- Updated EventList component to display a "No Data" message when in small size mode.
- Enhanced TopBar component to show a sign-up link when in demo mode.
- Added IS_DEMO constant to manage demo mode state in the application.
2025-05-03 17:45:04 -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
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
60867a2a7b
Fix cloud (#106) 2025-05-03 09:53:02 -07:00
Bill Yang
ca0faeb484
Add goal management functionality in analytics (#100)
* Add goal management functionality in analytics

- Introduced goal creation, deletion, and updating capabilities in the analytics API, allowing users to define conversion goals based on path or event types.
- Implemented corresponding React hooks for managing goals, including fetching, creating, updating, and deleting goals.
- Enhanced the UI with a dedicated Goals page and components for listing and managing goals, improving user experience in tracking conversions.
- Updated package dependencies to include necessary libraries for form handling and validation.

* Enhance goals management with pagination and sorting

- Added pagination and sorting capabilities to the goals fetching logic in the analytics API, allowing users to navigate through goals more efficiently.
- Updated the GoalsPage component to manage current page state and handle page changes, improving user experience.
- Modified the GoalsList component to display pagination metadata and navigation controls, facilitating better goal management.
- Adjusted the server-side getGoals function to support pagination and sorting parameters, ensuring accurate data retrieval.

* Refactor GoalsPage and GoalCard components for improved UI and functionality

- Updated GoalsPage to include a SubHeader component and adjusted layout for better responsiveness.
- Enhanced loading and empty state handling in GoalsPage for a smoother user experience.
- Modified GoalCard to use icons for goal types, improving visual clarity and consistency in the UI.

* Refactor CreateGoalButton and GoalCard components for improved modal handling

- Updated CreateGoalButton to utilize a trigger prop for the GoalFormModal, simplifying modal state management.
- Refactored GoalCard to integrate GoalFormModal for editing goals, enhancing user interaction and reducing state complexity.
- Removed unnecessary state management and modal handling from both components, streamlining the codebase.

* Refactor GoalCard and Clickhouse initialization for improved code clarity

- Removed unnecessary imports in GoalCard component, streamlining the code.
- Updated Clickhouse initialization to include a new 'props' JSON field alongside 'properties', enhancing data structure for analytics.
- Added a utility function in PageviewQueue to parse properties, improving error handling and data integrity.

* enable clickhouse

* fix ch build

* fix ch build

* fix ch build

* wip

* wip

* wip

* Enable json

* add network

* add network

* Refactor Clickhouse configuration and remove unused properties from data models

* Refactor property value handling in analytics queries to utilize native JSON types in ClickHouse, improving type safety and performance.
2025-04-28 20:58:43 -07:00
Bill Yang
9846f115c7
Clickhouse (#96)
* fix clickhouse

* Remount

* add network

* wip
2025-04-27 15:07:38 -07:00
Bill Yang
96fa5bc85b Update Docker Compose files to reduce ClickHouse logging
- Added a volume mapping for ClickHouse configuration to customize logging settings in both development and production Docker Compose files.
2025-04-27 14:49:49 -07:00
Bill Yang
da1903910f add back port 2025-04-17 22:32:04 -07:00
Bill Yang
0b9a1f702e Add security recommendation for firewall configuration in self-hosting documentation
- Introduced a new section emphasizing the importance of configuring a firewall on the VPS for enhanced security.
- Provided example commands for using `ufw` on Ubuntu to allow necessary traffic while ensuring SSH access is maintained.
- Included a warning callout to prevent users from locking themselves out of their VPS.
2025-04-17 21:49:57 -07:00