Repository navigation
fix(console): drop snippetId from the analytics property UI - #14408
Conversation
The analytics API no longer returns `snippetId` on a property, so the console reads a field that is always undefined: the ID chips and the copy action are guarded by `property.snippetId` and never render, and `trackingId: property.snippetId || property.$id` always takes the fallback. Dead code rather than a visible fault -- except the content strings, which still tell readers each property has "a public snippet ID". Ports appwrite/vibes#568, opened before the console moved into this repo. Two things that PR did not cover, because the console has since diverged from vibes: the `'Snippet ID:'` dictionary key behind PropertySettings' own wording, and three content strings describing the snippet ID to users. The pinned SDK still declares `snippetId`, so this compiles either way; it stops compiling once the SDK is regenerated without the field.
|
Review complete. No blocking issues — approved ✅; 1 nitpick below. 🧹 Nitpicks (1) — 🟢 1 low
This PR drops the
Reviewed commit: 80439f1 |
🟢 Tier S · Ready to merge
Removes the obsolete Snippet ID UI and copy action from analytics property flows, and uses each property's Latest changes: The newest commit removes the resolved analytics
📂 Walkthrough · 14
Reviewed the commits since |
tsc truncates long types at a length that includes the absolute path, so the same error read differently on CI and locally. --noErrorTruncation prints them whole, and the baseline now includes the snippetId errors main carries since the 19.1.0-rc.1 pin, which #14408 removes.
tsc truncates long types at a length that includes the absolute path, so the same error read differently on CI and locally. --noErrorTruncation prints them whole, and the baseline now includes the snippetId errors main carries since the 19.1.0-rc.1 pin, which #14408 removes.
The analytics FAQ said "a public ID" while the features page and the PostHog comparison both say "public property ID" for the same thing.
Removing snippetId from the analytics UI clears 14 baselined errors across 8 files, and lint:types fails when the baseline allows more than the tree produces.
What
The analytics API no longer returns
snippetIdon a property. The console still reads it in three ways:Because every read is guarded or has a fallback, nothing is visibly broken — the Snippet ID chips and the "Copy snippet ID" action simply never appear, and tracking snippets already emit
property.$id. So this is dead code, except for the content strings, which still tell readers each property has "a public snippet ID". Those are user-facing and wrong.Changes
InstallTrackingDialog,PropertySettingsandanalytics/add/ViewPropertyContextMenu, and'snippetId'from itsPick<>trackingIdnow readsproperty.$iddirectly in the four places that built it'Snippet ID'and'Snippet ID:'from theheandjadictionariesProvenance
Ports appwrite/vibes#568, which was opened before the console moved into this repo. Two things that PR did not cover, because the console has since diverged from vibes:
PropertySettingsusest('Snippet ID:')here (with a colon), a second dictionary key vibes never hadsrc/lib/productsandsrc/lib/alternativesthat vibes#568 left untouchedTesting
tsc --noEmit— no new errors. The repo has 10 pre-existing errors onmain(vite config,src/server/middleware/agent-discovery.ts,tests/connect-qa/**); none are in the files touched here.i18n:audit:heandi18n:audit:ja— both clean, confirming the removed keys have no remaining English counterparts.mainreport the same, so it is pre-existing drift rather than anything introduced here.Note
The pinned
@appwrite.io/consoleSDK still declaressnippetId: string, so this compiles either way. It stops compiling once the SDK is regenerated without the field — this change is also what unblocks that.