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.
Community links
- Scope: account menus, sidebar footers, help menus, settings and mobile web
layouts of every app that renders
SatelliteFooterActionsorAccountHubActionItems. - Default: Discord links are hidden.
COMMUNITY_LINKS.discordinpackages/ui/src/components/ui/custom/community-links.tsis the single switch; apps keep passingdiscordHref, 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.tsxandsatellite-user-menu-items.test.tsxinpackages/ui.
Profile
- Scope: the account menu’s Profile entry in
apps/web,apps/workspaceand every satellite whose settings dialog usescreateAccountSettingsNavGroup(packages/satellite). - Default: Profile opens the Public profile tab
(
SHARED_SETTINGS_TAB_IDS.publicProfile) in the current app’s settings dialog. The tab rendersPublicProfileCard, 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 shareduseSettingsDialogUrlStatehook 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.tsxandpublic-profile-menu-item.test.tsxinpackages/ui;public-profile-panel.test.tsxinpackages/satellite; the/u/[username]page test inapps/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 passshowUpgrade={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-optionsreturns 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 requiresmanage_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 besideupgrade-options/route.ts, andpackages/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 rendersFeedbackDialoginsideSatelliteSettingsDialogShellwithshowOnboardingGuide={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:
useReportProblemsends each submission throughsubmitProductFeedbackfrom@tuturuuu/internal-api/product-feedbacktoPOST /api/v1/product-feedback. The title is<support type> - <product>, the body is the description, and the image travels as base64media. The submit button stays disabled until the Turnstile widget (site key fromNEXT_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/apiproxy. The server flagsPRODUCT_FEEDBACK_SUBMISSION_ENABLEDandPRODUCT_FEEDBACK_MEDIA_ENABLEDgate submission and attachments; when off, the dialog reports a failed submission. - Own receipts:
GET /api/v1/product-feedback/receiptsreturns{ items: [{ id, createdAt, title }], nextCursor }for the caller only. It readspublic.list_product_feedback_receipts, a definer function that filters onauth.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, andlistProductFeedbackReceiptsin@tuturuuu/internal-api/product-feedbackis the client helper. The staff list onGET /api/v1/product-feedbackstays staff-only. The query lives underfeedback-receiptsin 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.tsxcovers 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.tscovers the owner route (no actor argument, projection, cursor, malformed queries, 401).apps/database/supabase/tests/product-feedback-intake.sqlcovers the function’s owner scoping (user B cannot see user A), anonymous denial, the limit clamp and the cursor.