Repository navigation
fix(billing): stop listing white-label reports, which the app doesn't have - #1908
Merged
Merged
Conversation
… have The Growth plan card listed "White-label reports & Looker Studio", but the app has no white-label reports (your own logo, reports without Ansvisor). Until it does, the card lists "Looker Studio" alone, in Billing's plan cards and the Choose a plan dialog. The plans' white_label feature key is unchanged, and plans.features.white_label in en.json isn't shown anywhere. Co-Authored-By: Claude Opus 5.5 <[email protected]>
gkhngyk
approved these changes
Oct 31, 2026
gkhngyk
left a comment
Contributor
There was a problem hiding this comment.
Looks good, approving as is.
What I checked
- No white-label reports in the app: on main, the plan-card line was the only place "white-label" appeared in what people see. Pricing on Billing, the plan dialog and onboarding all read
settings.planCards. Docs, help, marketing copy and the server have nothing else, and the repo has no Stripe metadata files. - Nothing reads the line: the
white_labelfeature key is still in both plan configs (Enterprise), but no route, guard or component gates on it. The only reader is a generic test inplan-guard-no-plan.test.js. The PR leaves the key alone, so nothing that reads it can break. - The tests now check that the Growth card and the "Show plan details" list have no white-label line.
Tests: merged with current main, I ran vitest on billing, settings, plan-row, config and help: 35 files, 367 tests, all pass. tsc --noEmit is clean, and eslint and prettier are clean on the changed files.
Follow-ups (not blocking)
white_labelinFEATURES/ Enterprise's features (web and server), and theplans.features.*labels inen.json, are now dead. They could go in a cleanup, along with the test that uses the key.- Growth's other extra, "Looker Studio", reads as Growth-only. But the connector works with an API key on every plan (the help article is
plan: all, and Starter hasapi_access). Worth rewording or moving it to the shared points.
gkhngyk
approved these changes
Oct 31, 2026
gkhngyk
left a comment
Contributor
There was a problem hiding this comment.
Merging in order with the other approved PRs. This head merges current main; its tree is what main will be after this squash, checked with the full server and web suites, tsc, lint, format and next build.
This was referenced Nov 1, 2026
gkhngyk
added a commit
that referenced
this pull request
Nov 1, 2026
…kit, and list it on Growth again (#1926) * feat(settings): add the white label kit and a brand's client logo (00429) Agencies can keep their own brand for what they send clients. Settings › White label holds the workspace's kit: a logo (PNG, SVG or JPG, 1 MB), a main color, a company name and a report footer, with a preview. Brand settings › General gets the client's logo for the brand's report cover. - Plans: white_label on Growth as well as Enterprise (web and server); Starter sees the section locked, with the way to Growth. Self-host doesn't list it, as its plan has no white label to upgrade to. - 00429: white_label_kits (members read, Admins write, who changed it stamped from the session), brands.client_logo_path (follows the brands policies) and the private white-label-logos bucket (no member policy: the app gives one-time upload and short-lived signed addresses). - Server actions answer { ok, failure }, check assertWritable first and validate with Zod; an uploaded logo must be in the workspace's (or the brand's) folder and be what its type says, and an SVG that could run something is refused and deleted. - The kit is used only when the plan has white_label and the kit has a company name or a logo (kitInUse); nothing uses it yet. - Help: help/settings/white-label.md (approved: false); docs: a White label section in the Reports guide. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(reports): show and download reports with the white label kit With a kit in use (the plan has white_label and the kit has a company name or a logo), a brand's report carries the agency's brand instead of Ansvisor's; without one, nothing changes. - PDF: the company as author and creator, the kit's footer line (or none) instead of "Generated with Ansvisor · www.ansvisor.com", the kit's color on the rule, bars and trend line (text set in it darkened until it reads on white, WCAG AA), and a cover with the agency's logo or name, "Prepared for {brand}" and the brand's client logo. - Report page: the same cover above the report; the PDF is named "{company-slug}_{brand}_report_{date}.pdf" instead of "ansvisor_…". - getReportBranding(brandId) gives the kit with the logos as data URLs, so the browser can draw the PDF while the bucket stays private; an SVG logo is drawn onto a canvas as a PNG for the PDF. A kit that can't be read makes no PDF (the page asks to try again), so a file in Ansvisor's look never goes to a client by mistake. - Help and the Reports guide say where the kit appears. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(exports): name downloads and Word authors after the white label kit With a kit in use, what the pages download carries the agency's name instead of Ansvisor's; without one, every name stays as it was. - File names: the "ansvisor_" (or "ansvisor-") word becomes the company's slug on the Prompts, Topics, Insights, Citations, Competitors, Mentions, Action Center (actions, signals), content opportunity, Content Editor, Library and AI Traffic exports, and none for a kit with only a logo. Pages read the kit once a page load (export-name.ts, getExportBranding); the AI Traffic route reads it on the server. A kit that can't be read names the file with neither word. - Word files (Content Editor, Library, opportunity) name the company as author and last editor. Excel files (write-excel-file) and CSVs carry no author either way. - The white label actions import the service-role client when first needed, so pages that only name downloads load without it. - Settings › White label forgets the kit read after a change. - Help and the Reports guide say which downloads follow the kit; e-mails don't yet. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(settings): offer white label on a self-hosted install too The owner's decision (2026-10-31): a self-hosted install has every feature, white label included, so the White label section and the brand's Client logo show there as on Growth and Enterprise. The cloud plans don't change: Growth and Enterprise have it, Starter doesn't. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(settings): keep unsaved kit fields on a logo change, and show logos on white paper - Settings › White label: uploading or removing a logo refreshed the whole form from the server, so a name, color or footer typed but not saved was lost. A logo change now updates only the logo and the kit's state; what is typed stays, and Save still takes it. - The logo boxes in Settings › White label and Brand settings › Client logo were muted on a dark theme, so a dark logo couldn't be seen. They are white paper in both themes, as the report and its Preview are. - Tests follow the self-hosted decision (the section and the Client logo card show there too); the Reports guide names self-hosted installs. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(help): refresh the approved Help articles for the white label PDF line Generate visibility reports was approved on main (#1896) after this branch added its white label sentence to Download a PDF, so the copy Chat answers from (approved-articles.json) is refreshed with it. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(settings): name the white-label kit as Account data in the brand-access and demo-guard lists white_label_kits (00429) has no brand_id: one kit per organization, shared by its brands. Both coverage tests now list it with why; a brand's client logo lives on brands, whose policies already refuse a demo brand's writes. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(billing): list white-label reports and exports on the Growth plan again #1908 took "White-label reports" off the Growth card while the app had none. With the kit, branded reports and branded exports in this stack, the Growth card and the Choose a plan dialog list "White-label reports & exports" again, beside Looker Studio. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Cihan <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Gökhan Geyik <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Growth's Billing card listed "White-label reports & Looker Studio", but the app has no white-label feature. It now says "Looker Studio". The owner decided (2026-10-31) to build white-label for Growth and Enterprise; the line comes back with that work. The pricing page is updated separately.
plans.features.white_labelisn't shown anywhere, so it's left as is.Related issue
None. Found while checking the Help articles against the product (2026-10-31).
Type of change
feat— New featurefix— Bug fixchore— Maintenance / dependenciesdocs— Documentation onlyrefactor— Code change that neither fixes a bug nor adds a featuretest— Adding or updating testsHow to test
Checklist
yarn lintpasses (0 errors; 7 old warnings in files this PR doesn't touch)yarn typecheckpassesyarn format:checkpasseshelp/(or no user-visible change)All six small fixes of 2026-10-31 were checked together on one merge of their branches. The web full run passed except the known date case (
chat-menu, fixed by #1876) and an editor test that timed out under load; that test passes alone.yarn buildpasses. The server full run passed except two timing tests, which also pass alone.🤖 Generated with Claude Code