Skip to main content
Every web app (apps/web and each satellite sharing packages/ui) renders the same account menu from the avatar in the sidebar footer. This page records the product rules for its entries.
  • Scope: account menus, sidebar footers, help menus, settings and mobile web layouts of every app that renders SatelliteFooterActions or AccountHubActionItems.
  • Default: Discord links are hidden. COMMUNITY_LINKS.discord in packages/ui/src/components/ui/custom/community-links.ts is the single switch; apps keep passing discordHref, and the shared publisher and menu drop it while the switch is off.
  • Exceptions: documentation links (for example the SDK docs Discord card) are not governed by this switch.
  • Regression coverage: satellite-shell.test.tsx and satellite-user-menu-items.test.tsx in packages/ui.

Profile

  • Scope: the account menu’s Profile entry in apps/web, apps/workspace and every satellite whose settings dialog uses createAccountSettingsNavGroup (packages/satellite).
  • Default: Profile opens the Public profile tab (SHARED_SETTINGS_TAB_IDS.publicProfile) in the current app’s settings dialog. The tab renders PublicProfileCard, the component the /u/[username] page renders, limited to name, bio, avatar and banner.
  • Address: when the profile URL shares the page’s origin (apps/web on tuturuuu.com), the tab replaces the address with /u/<username> without navigating (packages/ui/src/hooks/public-profile-address.ts). The shared useSettingsDialogUrlState hook keeps the dialog open on that tagged entry. Closing, switching tabs or Back restores the previous address. Other origins keep ?settingsDialog=open&settingsTab=public_profile.
  • Deep links: loading /u/<username> renders the full public page; a reload while the tab is open does the same.
  • Exceptions: users without a username see a prompt to choose one in the Profile tab. A menu rendered without a settings dialog keeps the link to the public page.
  • Regression coverage: public-profile-address.test.ts, use-settings-dialog-url-state.test.tsx and public-profile-menu-item.test.tsx in packages/ui; public-profile-panel.test.tsx in packages/satellite; the /u/[username] page test in apps/web.

Upgrade

  • Scope: the Upgrade entry of the account menu in every app that ships the shared sidebar (SidebarFooterActions), for every workspace tier (decided 2026-11-24). Free workspaces see Upgrade and open the Plans tab; paid workspaces see Current plan and open the Current plan tab. Apps that pass showUpgrade={false} (Colab, Learn, Lettin, Nova, Teach) omit it.
  • Default: selecting Upgrade opens the Upgrade dialog on the current page instead of navigating to billing. The dialog reuses the settings dialog shell and has three tabs: Plans (monthly or yearly cards with a checkout button), Compare plans (a table of price, seats and inclusions) and Current plan. Its state is in the URL (?upgradeDialog=open&upgradeTab=plans|compare|current); opening pushes a history entry so Back closes it, and tab changes and closing replace it.
  • Data: GET /api/v1/workspaces/[wsId]/billing/upgrade-options returns the self-serve plans (one Free plan and the publicly listed Plus and Pro seat products), the workspace’s active subscription and the pay billing URL. It accepts web and satellite app sessions and requires manage_subscription; other members see a permission message.
  • Checkout: the dialog does not create checkouts. A plan’s button opens <pay>/<wsId>/billing?plan=<productId> in a new tab, where the pay billing page opens its plan list and runs the existing Polar checkout and guarded plan-change flows. “View full billing” opens the same page without the hint.
  • One dialog at a time: opening Upgrade clears the settings dialog params (and any /u/<username> address), and opening Settings clears the Upgrade params.
  • Exceptions: Free is never offered a checkout button, and plans below the current tier show “Manage in billing” instead. The pay billing page opens its plan list only for a ?plan= id from its fetched catalog.
  • Regression coverage: upgrade-dialog.test.tsx (menu entry, plan list, current plan marker, checkout handoff, comparison table headers, permission state), the route test beside upgrade-options/route.ts, and packages/internal-api/src/upgrade-options.test.ts.

Feedback

  • Scope: the Feedback entry of the account menu in every app, and every other entry that opens the report-problem flow (the satellite user menu, the guidance feedback action in settings, and Colab).
  • Default: Feedback opens ReportProblemDialogContent, which renders FeedbackDialog inside SatelliteSettingsDialogShell with showOnboardingGuide={false}. The shell supplies the full-screen layout, the navigation search, the mobile navigation and the dialog shortcuts. The navigation has one group with two sections: “Send feedback” (product, support type, description of up to 1,000 characters, a Turnstile challenge and one optional PNG, JPEG or WebP image of at most 2 MB) and “Your feedback” (the signed-in user’s own receipts, newest first, with a “Show older” page control). A successful submission keeps the dialog open, clears the form and switches to “Your feedback”.
  • Submission: useReportProblem sends each submission through submitProductFeedback from @tuturuuu/internal-api/product-feedback to POST /api/v1/product-feedback. The title is <support type> - <product>, the body is the description, and the image travels as base64 media. The submit button stays disabled until the Turnstile widget (site key from NEXT_PUBLIC_TURNSTILE_SITE_KEY) yields a token. A token is single use, so the widget resets after every attempt, successful or not. Each submission carries a UUID v4 idempotency key. Retries of the same content reuse it so the intake deduplicates them; editing the product, type, description or image starts a new submission with a new key. Satellite apps reach the same route through their own /api proxy. The server flags PRODUCT_FEEDBACK_SUBMISSION_ENABLED and PRODUCT_FEEDBACK_MEDIA_ENABLED gate submission and attachments; when off, the dialog reports a failed submission.
  • Own receipts: GET /api/v1/product-feedback/receipts returns { items: [{ id, createdAt, title }], nextCursor } for the caller only. It reads public.list_product_feedback_receipts, a definer function that filters on auth.uid(), projects only those three fields, clamps the page size to 1-50 (default 20) and pages by a (created_at, id) keyset cursor. It uses the same session handling as the single-receipt route, and listProductFeedbackReceipts in @tuturuuu/internal-api/product-feedback is the client helper. The staff list on GET /api/v1/product-feedback stays staff-only. The query lives under feedback-receipts in TanStack Query.
  • Exceptions: the dialog open state is local to each host and has no URL parameter, so Back does not close it. Videos, GIFs and several attachments are not accepted by the intake. Receipts carry no status.
  • Regression coverage: packages/ui/src/components/ui/feedback-dialog.test.tsx covers the dialog inside the shell, submit disabled until the challenge is solved, the intake payload with token and key, key reuse on retry and renewal after an edit, the image payload, receipt paging and the load error. apps/web/src/lib/product-feedback-receipts-list.test.ts covers the owner route (no actor argument, projection, cursor, malformed queries, 401). apps/database/supabase/tests/product-feedback-intake.sql covers the function’s owner scoping (user B cannot see user A), anonymous denial, the limit clamp and the cursor.