rybbit/client/package.json
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

94 lines
2.8 KiB
JSON

{
"name": "client",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev -p 3002 --turbopack",
"build": "next build",
"start": "next start -p 3002",
"lint": "next lint"
},
"dependencies": {
"@better-auth/stripe": "^1.2.3",
"@hookform/resolvers": "^5.0.1",
"@nivo/bar": "^0.88.0",
"@nivo/calendar": "^0.88.0",
"@nivo/core": "^0.88.0",
"@nivo/line": "^0.88.0",
"@number-flow/react": "^0.5.8",
"@phosphor-icons/react": "^2.1.7",
"@radix-ui/react-alert-dialog": "^1.1.6",
"@radix-ui/react-dialog": "^1.1.7",
"@radix-ui/react-dropdown-menu": "^2.1.5",
"@radix-ui/react-label": "^2.1.4",
"@radix-ui/react-navigation-menu": "^1.2.5",
"@radix-ui/react-popover": "^1.1.5",
"@radix-ui/react-select": "^2.1.5",
"@radix-ui/react-separator": "^1.1.2",
"@radix-ui/react-slider": "^1.2.3",
"@radix-ui/react-slot": "^1.2.0",
"@radix-ui/react-switch": "^1.1.3",
"@radix-ui/react-tabs": "^1.1.3",
"@radix-ui/react-tooltip": "^1.1.8",
"@radix-ui/react-visually-hidden": "^1.1.3",
"@radix-ui/themes": "^3.2.0",
"@react-three/drei": "^10.0.6",
"@react-three/fiber": "^9.1.2",
"@tanstack/react-query": "^5.64.2",
"@tanstack/react-query-devtools": "^5.64.2",
"@tanstack/react-table": "^8.21.2",
"@types/country-flag-icons": "^1.2.2",
"@types/three": "^0.175.0",
"@uidotdev/usehooks": "^2.4.1",
"better-auth": "^1.2.7",
"boring-avatars": "^1.11.2",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"cmdk": "^1.0.0",
"countries-list": "^3.1.1",
"country-flag-icons": "^1.5.14",
"d3": "^7.9.0",
"d3-geo": "^3.1.1",
"date-fns": "^4.1.0",
"deps": "^1.0.0",
"framer-motion": "^12.7.2",
"geojson": "^0.5.0",
"jotai": "^2.12.1",
"ldrs": "^1.1.6",
"leaflet": "^1.9.4",
"lodash": "^4.17.21",
"lucide-react": "^0.487.0",
"luxon": "^3.5.0",
"next": "^15.3.1",
"next-themes": "^0.4.4",
"react": "^19.0.0",
"react-countup": "^6.5.3",
"react-day-picker": "^8.10.1",
"react-dom": "^19.0.0",
"react-globe.gl": "^2.33.2",
"react-hook-form": "^7.56.1",
"react-leaflet": "^5.0.0",
"react-select": "^5.10.0",
"sonner": "^2.0.1",
"spinners-react": "^1.0.10",
"tailwind-merge": "^2.6.0",
"tailwindcss-animate": "^1.0.7",
"three": "^0.175.0",
"zod": "^3.24.3",
"zustand": "^5.0.3"
},
"devDependencies": {
"@types/d3": "^7.4.3",
"@types/geojson": "^7946.0.16",
"@types/leaflet": "^1.9.16",
"@types/lodash": "^4.17.15",
"@types/luxon": "^3.4.2",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"drizzle-kit": "^0.30.2",
"postcss": "^8",
"tailwindcss": "^3.4.1",
"typescript": "^5"
}
}