-
Notifications
You must be signed in to change notification settings - Fork 33
Patch: Re-enable dashboard feedback survey popover #146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Patch: Re-enable dashboard feedback survey popover #146
Conversation
…schemas - Reformatted `tsconfig.json` for better readability by aligning array elements. - Changed JSX setting from `react-jsx` to `preserve` in `tsconfig.json`. - Updated Zod validation in `get-api-keys.ts` and `key-actions.ts` to use `z.uuid()` for team and API key IDs, enhancing error handling. - Improved type inference in `formatErrors` function in `env.ts` for better type safety.
…kage.json and bun.lock - Updated `@supabase/ssr` from `^0.5.2` to `^0.7.0`. - Upgraded `@supabase/supabase-js` from `^2.48.1` to `^2.57.4`. - Changed `zod` version from `^3.24.1` to `^4.1.11`. - Updated `@supabase/functions-js` from `2.4.5` to `2.4.6`, `@supabase/postgrest-js` from `1.21.3` to `1.21.4`, and `@supabase/realtime-js` from `2.15.4` to `2.15.5`. - Adjusted `@supabase/storage-js` from `2.11.0` to `2.12.1` and `cookie` from `0.7.2` to `1.0.2` in lock files.
- Upgraded `posthog-js` and `@posthog/core` to version `1.268.1` and `1.1.0` respectively in `package.json` and `bun.lock`. - Refactored Next.js rewrites to use `/ph-proxy` instead of `/ingest` for PostHog API calls. - Simplified `DashboardLayoutView` component by removing unnecessary props. - Enhanced `PostHogProvider` to include validation for `NEXT_PUBLIC_POSTHOG_HOST`. - Implemented a new `DashboardSurveyPopoverResolver` to conditionally render the survey popover based on environment variables. - Updated sidebar to include the survey popover for user feedback collection.
- Downgraded `@supabase/ssr` from `^0.7.0` to `^0.5.2` and `@supabase/supabase-js` from `^2.57.4` to `^2.48.1` in `package.json` and `bun.lock`. - Updated `cookie` dependency from `1.0.2` to `0.7.2`. - Refactored Zod schema merging in `env.ts` to use `merge` instead of `extend` for better clarity.
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- Modified the `DashboardSurveyPopover` button styles for improved hover effects and layout. - Adjusted the `StartRateChartClient` component by removing an unnecessary border class. - Enhanced the `DashboardSidebarFooter` structure for better organization and added a separate survey menu item. - Introduced a new CSS variable for the protected status bar height in `theme.css`.
- Updated the `DashboardSurveyPopover` to accept a trigger prop for better flexibility. - Refactored the `DashboardSidebarFooter` to integrate the survey popover with improved styling and layout. - Adjusted the `general-analytics-collector` to ensure proper PostHog reset functionality. - Modified CSS variables for sidebar width to improve responsiveness.
src/features/dashboard/sandboxes/monitoring/charts/start-rate-chart.client.tsx
Show resolved
Hide resolved
…erministic after ph init
https://zod.dev/v4/changelog?id=deprecates-message |
- Replaced deprecated Zod string validation for email and UUID with the new syntax. - Removed the unused `.eslintignore` file to clean up the project structure. - Enhanced various schemas across the application for consistency and clarity.
In #128 we disabled the dashboard feedback survey popover, because it caused problems. The following applied, seems to have fixed this issue:
/ingest
to/ph-proxy
advanced_enable_surveys
to posthog init, to ensure relevant surveys are not hidden behind ph feature flagsNew - Closed:

New - Open

Note
Re-enables the dashboard feedback survey using a new PostHog provider and /ph-proxy, while migrating validation to zod v4 and updating related deps/config.
src/features/posthog-provider.tsx
and wraps app withPostHogProvider
to initialize PostHog (surveys enabled) and exposedashboardFeedbackSurvey
.DashboardSurveyPopover
to use provider, accept custom trigger, and capture show/dismiss/submit events; integrates a Feedback button in the sidebar footer./ingest
to/ph-proxy
and updates middleware matcher to excludeph-proxy
.posthog-js
and@posthog/core
.z.string().email()
,z.string().url()
,z.string().uuid()
withz.email()
,z.url()
,z.uuid()
across server/client schemas (auth, billing, keys, sandboxes, team, env, user, etc.).zod@^4
andzod-form-data@^3
.teamIdOrSlug
props from dashboard layout/header.sidebarMenuButtonVariants
and adds variants (incl.inverted
); minor styling tweaks (e.g., remove border instart-rate-chart
).next.config.mjs
rewrites updated;tsconfig.json
switches JSX topreserve
.package.json
dependency bumps (Supabase libs, PostHog).Written by Cursor Bugbot for commit 7a5331b. This will update automatically on new commits. Configure here.