Commit Graph
166 Commits
Author SHA1 Message Date
Terry Sutton 0f91196154 Add a notice for the planned middleware outage (#35723)
* Add a notice for the planned middleware outage

* Msg update
2025-05-16 17:55:04 +00:00
Joshen Lim 2066e1c652 Set up to default opt in tabs interface (#35549)
* Set up to default opt in tabs interface

* Add callout in new tab

* Unify tabs feature flag
2025-05-13 20:07:40 +08:00
Charis badcf17f70 feat(content api): add client library api reference search results (#35484)
* feat(content api): add client library api reference search results

Allow searchDocs results to also return function references from the
client library APIs

* fix(content api): refine language enum handling
2025-05-06 13:11:29 -04:00
Pamela Chia ef963356ae fix: add missing groups to events (#35437) 2025-05-06 11:38:50 +08:00
Charis 475beb0524 chore (db): update database types generated from db schema (#35289) 2025-05-05 18:17:35 +00:00
Francesco SansalvadoreandAlaister Young a4cfcd9b2e global user dropdown in docs and www (#35063)
* docs: user nav dropdown

* www: user dropdown nav

* update menus

* chore: add complete local storage allowlist

* move all local-storage to common

* reload after logOut

* add local storage key changes from #35175

* fix errors

* add more keys

* fix merge bugs

---------

Co-authored-by: Alaister Young <a@alaisteryoung.com>
2025-05-05 11:48:06 +02:00
2b419c70a1 chore: add usercentrics for consent management (#35384)
* chore: add usercentrics for consent management

* client component to make next.js happy

* address feedback

* move consent state to common

* fix import

* ensure page events are sent correctly

* add feature flag provider to ui library site

* fix ui lib 500 error

* skip in test env

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
Co-authored-by: Jordi Enric <jordi.err@gmail.com>
2025-05-05 13:18:48 +08:00
Pamela Chia 38173acc34 fix: error when telemetry groups unknown (#35403) 2025-05-01 19:24:39 +08:00
Charis 30b6af4ff3 fix (docs): non-platform integrations page (#35285)
There were two bugs when trying to run the integrations page locally
with NEXT_PUBLIC_IS_PLATFORM=false:

1. The IS_PLATFORM check imported from common was not evaluating
correctly to a boolean. This is because I slapped a 'use client' on the
entire common package last year -_-""" which caused all its imports to
be evaluated to functions when used in server components. I have now
moved the 'use client's down to the submodules that actually need it.

2. When the integrations submenu is empty, the navigation menu errors
out because it expects all navigation items to either have children or
have links. Have updated this to gracefully hide empty headers.
2025-04-25 15:22:06 -04:00
Ivan VasilovandPamela Chia 77304a4c56 chore: Add two new events for the submit form (#35199)
* Add two new support events and use them in the Studio UI.

* fix: move verb to end

* fix groups instead of properties

* fix groups in event

* Fix the no_project case when sending an event.

* Fix a React warning about setting a prop on Fragment.

* Fix the project ref when sending an event.

---------

Co-authored-by: Pamela Chia <pamelachiamayyee@gmail.com>
2025-04-24 13:28:55 +02:00
Joshen Lim 6794f4c6eb Chore/prepare org nav rollout (#35175)
* Support default opt in feature previews via feature flag

* Add notice banner in /org/[slug] and /organizations if user is opted into the changes by default

* Clean up

* Update copy
2025-04-22 12:41:39 +07:00
Ivan Vasilov eadff19571 chore: Bump React to 18.3+ (#35029)
* Bump react and react-dom to 18.3+.

* Add tailwind to ui package to silence a peer dep warning.
2025-04-15 17:07:53 +02:00
Charis 448e5f5899 fix(docs): favicons (#34749)
The incorrect favicon URLs are being used for Apple touch icons. Corrected now.
2025-04-04 17:52:56 +00:00
Saxon FletcherandPamela Chia 48da3abc18 add tracking for project create form (#34694)
* add tracking for project create form

* standardise to more common verb

* Update telemetry-constants.ts

---------

Co-authored-by: Pamela Chia <pamelachiamayyee@gmail.com>
2025-04-03 14:50:38 +02:00
Pamela Chia 89764b836d chore: add via cli origin tracking (#34637) 2025-04-02 11:46:10 +02:00
6a9e1a5741 chore: UI lib - update telemetry (#34569)
* chore: update telemetry

* Add NEXT_PUBLIC_API_URL to turbo.json.

* add copy event

* Update command-copy-button.tsx

* Update command-copy-button.tsx

* move telemetry wrapper down to child layout

* update telemetry naming

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
Co-authored-by: Pamela Chia <pamelachiamayyee@gmail.com>
2025-03-31 15:51:19 +02:00
a4cac72473 Deploy edge function warning (#34555)
* fix: add jsr:@std/path module

* fix: use relative paths for files in editor

* add a deploy warning to edge functions update

* hide deploy if can't write

* remove retry

* Fix

* Small clean up

* Address feedback

* Fix

---------

Co-authored-by: Lakshan Perera <lakshan@laktek.com>
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2025-03-31 18:02:41 +08:00
Pamela Chia af85651f56 chore: add functions edit n test tracking (#34480) 2025-03-27 18:03:56 +01:00
Jordi Enric 6f1cfef213 clean circular deps (#34262)
* clean circular deps in telemetry

* clean circular deps in command

* fix commandmenu circular deps

* rm deps.json

* fix consent circular dep

* fix TOC circular deps

* fix wrong import path

* fix test types

* fix missing fn

* undo let change

* fix consent component

* empty
2025-03-20 11:11:11 +01:00
Pamela Chia db1f2b4c4e feat: track new functions behaviour (#34239) 2025-03-19 10:10:45 +01:00
Francesco Sansalvadore d24df14aab Feat/toc component (#33964)
* test fuma toc

* make toc work

* ok toc

* ui-patterns toc

* fix types

* cleanup

* fix overflow issues

* cleanup

* fix loading w

* Update apps/docs/components/GuidesTableOfContents.tsx

* fix prettier

* format

* install deps

* target ES2018

* tweak regex

* update docs test snapshots

* fix useSubscribeTocRerender
2025-03-05 23:10:02 +01:00
e19b0a155e promote grafana in reports (#33657)
* promote grafana in reports

* add docs link

* lighter svg

* fix telemetry event

* next/image

* unused import

* BASE_PATH

* img

* Apply suggestions from code review to remove STUDIO bit

* add bg to button

* fix telemetry action

---------

Co-authored-by: Jordi Enric <37541088+jordienr@users.noreply.github.com>
Co-authored-by: Pamela Chia <pamelachiamayyee@gmail.com>
2025-02-25 18:15:22 +01:00
Long Hoang 69726689c9 chore: remove event enums (#33730)
* chore: remove event enums

* chore: remove more event enums

* chore: remove unused HomepageHeroRequestDemoClickedEvent

* chore: remove unused HomepageHeroRequestDemoClickedEvent

* chore: rename custom_report events to use underscores

* chore: remove telemetry enum

* chore: remove unused imports

* chore: remove enums from merged events

* chore: remove unused imports

* chore: add typedocs for module and hide exported types that are not events
2025-02-25 13:08:31 +08:00
Pamela ChiaandAlaister Young fc6c8b5213 chore: add signin method to tracking (#33757)
* chore: add signin method to tracking

* include unknown when signinmethod unknown

* use useParams

---------

Co-authored-by: Alaister Young <a@alaisteryoung.com>
2025-02-24 11:32:15 +08:00
Joshen LimandAlaister Young ae2203b5e7 Reinstate SQL editor results events (#33736)
* Reinstate SQL editor results events

* remove random console.log

* fix event name

---------

Co-authored-by: Alaister Young <a@alaisteryoung.com>
2025-02-20 18:46:23 +07:00
Saxon Fletcher 1f7c7389b4 add realtime toggle tracking (#33573) 2025-02-18 16:12:47 +10:00
Pamela Chia 3b9b8bd1bb fix: minor clarification for telemetry (#33561) 2025-02-13 09:10:55 +08:00
Saxon FletcherandLong Hoang 15841c6bf3 track source when viewing plans (#33405)
* track source when viewing plans

* remove log

* rename event

* Update apps/studio/components/interfaces/Organization/BillingSettings/Restriction.tsx

Co-authored-by: Long Hoang <1732217+loong@users.noreply.github.com>

* Update apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/BillingMetric.tsx

Co-authored-by: Long Hoang <1732217+loong@users.noreply.github.com>

* Update apps/studio/components/interfaces/Organization/BillingSettings/Restriction.tsx

Co-authored-by: Long Hoang <1732217+loong@users.noreply.github.com>

* Update apps/studio/components/interfaces/Organization/BillingSettings/Restriction.tsx

Co-authored-by: Long Hoang <1732217+loong@users.noreply.github.com>

* added docs for tracking

* prettier

* chore: rename origins to give more hints on where these are coming from

---------

Co-authored-by: Long Hoang <1732217+loong@users.noreply.github.com>
2025-02-10 16:45:36 +10:00
Pamela Chia ff25c9c24c chore: add tracking on side panel open (#33349) 2025-02-05 22:27:09 +08:00
Pamela ChiaandJoshen Lim b6cefe5c25 Feat/add studio events (#33148)
* add tracking for help, feedback, import data, and example clicked

* clarify www pricing plan and add run sql query event

* add pricing plan cta tracking

* Add one more event to Import data from CSV

* Consistent copy

* Clean up and refactors

* Some fixes

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2025-02-03 20:08:30 +08:00
Aleksi Immonen 863b287eef Fix www and studio events description grammar/style (#33146)
* Update telemetry-constants.ts

Fix: www and studio events description grammar and style

* Update telemetry-constants.ts
2025-01-28 14:48:46 +02:00
Pamela Chia df6e6c6f8b Feat/add www events (#33031)
* feat: add card click events in other pages

* feat: add location for hero, nav and banner button clicks

* add request demo form event

* add newline for long comment/descriptions
2025-01-24 14:49:32 +08:00
Saxon Fletcher 79e656f735 remove globe in onboarding (#33021) 2025-01-23 17:16:58 +10:00
Joshen LimandSaxon Fletcher 90a939506c Feat/reports v2/misc wrap up (#32989)
* Add telemetry for add SQL block and dragging SQL block from assistant

* Add UI indication for drag support block in Assistant

* Add UI indication for SQL block support in SQL editor Chart options

* Feat/reports v2/create report (#33022)

* re-add chart label

* fix undefined value

* remove mouse over on chart

---------

Co-authored-by: Saxon Fletcher <saxonafletcher@gmail.com>
2025-01-23 13:25:31 +08:00
Pamela Chia d50fa11757 feat: add homepage click events (#33005)
* feat: add homepage click events

* fix codeowners telemetry filepath
2025-01-22 17:20:47 -08:00
30c390c19c chore: unify telemetry event sending (#32861)
* chore: unify telemetry event sending

* organize some imports

* remove final useTelemetryProps

* add www telemetry actions typing and docs

* remove gaevents

* fix build

* move telemetry identify into PageTelemetry

* fix telemetry constants import

---------

Co-authored-by: Pamela Chia <pamelachiamayyee@gmail.com>
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2025-01-22 23:52:32 +08:00
4278bd4ec1 fix: bump auth-js version to v2.67.3 (#31217)
* fix: bump auth-js version to v2.67.3

* chore: add supabase/auth and supabase/dashboard as codeowners

* Revert "chore: add supabase/auth and supabase/dashboard as codeowners"

This reverts commit 57fc5776ba.

* bump supabase-js version

* import user type from single gotrue

* fix auth-js version in studio

* remove auth-js dep in studio

* fix ts

* use catalog versions

* fix ts

* Bump realtime-js version to avoid having 2 versions.

* Add @supabase/realtime-js to the pnpm catalog.

* upgrade realtime-js

---------

Co-authored-by: Alaister Young <a@alaisteryoung.com>
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2025-01-17 14:54:21 +08:00
Alaister Young 4577389177 chore: send feature flags for page events (#32590) 2025-01-13 13:08:50 +08:00
Ivan Vasilov 98d914d1fb fix: Fix the referer for Posthog (#32656)
Fix the referer for posthog.
2025-01-08 21:30:15 +01:00
Alaister YoungandCharis Lam 6d732a2a4b chore: remove auth-helpers (deprecated) (#32541)
* chore: remove auth-helpers (deprecated)

* type supabase client in feedback

* small adjustments to error and loading state handling for docs search

---------

Co-authored-by: Charis Lam <26616127+charislam@users.noreply.github.com>
2025-01-06 18:08:44 +08:00
Alaister Young 91a36c9dcf fix(docs): accepting consent (#32594)
* fix(docs): accepting consent

* usePathname?

* fallback to window pathname

* remove unneeded ?
2025-01-06 17:37:52 +08:00
Ivan Vasilov a4acebe1bc chore: Expand prettier commands to also run on packages (#32550)
* Run prettier on packages too.

* Add the generated files for icons to prettierignore.

* Format all files in the packages folder.

* Minor fix.
2025-01-03 16:23:32 +01:00
Ivan Vasilov 06aa80e9f0 chore: Bump next to non-vulnerable version (#31277)
* Add next to pnpm catalog and use that next version from all apps and packages.

* Remove vite direct dependency.

* Set the @types/node to version 20.

* Stabilize supports-color by adding it in the main package.json. This will make it appear in all packages that have it as optional.

* Use built-in matchers for vitest in @testing-library/jest-dom.

* Add libpg-query as a dependency to docs.

* Remove nextjs-node-loader for the built-in external packages feature on nextjs.

* Clean up extra comment.
2025-01-03 13:25:00 +01:00
Ivan Vasilov dd572efb0d chore: Switch repo to use pnpm (#29928)
* Fix some missing and duplicate dependencies.

* Fix the types for jest in ai-commands package.

* Replace all npm commands with pnpm. Add pnpm files and workspace links.

* Fix rimraf to work with pnpm.

* Refactor the github actions to work with pnpm.

* Delete package-lock.json.

* Fix the tailwind configs to not include node_modules.

* Fix random files.

* Add preinstall scripts to all packages.

* Fix the Dockerfile to work with pnpm.

* Update the DEVELOPERS documentation.
2024-12-20 13:07:20 +01:00
Terry SuttonandIvan Vasilov de28174c1d Chore/www session consent (#31082)
* Store referrer in session storage until opted-in

* Fix

* Move to common file

* Refactor the useTelemetryCookie hook. Use the hook in www, docs and studio.

* Small fixes.

* Fix all usages of HandlePageTelemetry function.

* Fix type errors.

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2024-12-18 12:02:20 +01:00
cfed52a4da Tiger d1 (#30770)
* tiger d1 layout setup

* prep d1

* twitter links

* banner

* ticket

* see through nav

* gold

* update d1 visual

* restore ticket sharing ui

* add assistant blog post

* add video placeholder

* update copy

* add image

* add sql to supabase js

* Update apps/www/_blog/2024-12-02-supabase-assistant.mdx

Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com>

* Update apps/www/_blog/2024-12-02-supabase-assistant.mdx

Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com>

* Update apps/www/_blog/2024-12-02-supabase-assistant.mdx

Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com>

* update images

* copple edits

* gradient updates

* changed to svg

* add thumbs

* remove character

* switched url

* Update lw13_data.tsx

* small changes

* Update sitemap_www.xml

* Update 2024-12-02-supabase-ai-assistant-v2.mdx

---------

Co-authored-by: Saxon Fletcher <saxonafletcher@gmail.com>
Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com>
Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
2024-12-02 22:33:35 +08:00
Charis 4a82aabaf0 feat(docs): sync troubleshooting (#29933)
When a troubleshooting entry is created or updated in this repo, sync it to GitHub. This creates a new troubleshooting discussion if one does not exist, and updates the content on an existing troubleshooting discussion if it has changed.

To preserve the connections between GitHub discussions and Markdown files, record the discussion ID and URL to the database. The database ID is then written to the Markdown file, and a new PR is generated to commit the new Markdown with ID.

There is currently no mechanism to delete outdated discussions. That will be a follow-up.
2024-10-29 12:58:46 -04:00
Ivan Vasilov 9dd7deb990 chore: Add a clean script to all packages/apps (#29926)
Add a clean command.
2024-10-18 16:25:13 +02:00
Joshen Lim ed207751ad Update telemetry calls for docs to support PH (#29749)
* Update telemetry calls for docs to support PH

* Update telemetry calls for www to support PH

* Add ts ignore

* Remove use of useRouter for docs

* Add credentials include for www and docs for telemetry calls

* Update TELEMETRY_CONSENT in common for www and docs to reset telemetry opt in preference

* Update common telemetry to use new endpoint and payload, and trigger reset request when opting out of telemetry from ui patterns PrigacySettings

* Fix

* Fix

* Fix

* Fix build issue in docs

* Fix build issue in docs

* I hope this fixes the build issues

* once more...

* Fix

* Add credentials include

* Fix
2024-10-16 15:16:33 +08:00
Alaister Young b04dbf9876 fix: use-isomorphic-layout-effect (#29762)
* fix: use-isomorphic-layout-effect

* stop messing with kevin
2024-10-09 12:33:12 +08:00