Skip to content

[ENG-2096] Remove the discourse context overlay from Roam canvas - #1288

Open
sid597 wants to merge 1 commit into
eng-2037-add-tabbed-node-card-context-menu-to-roam-tldrawfrom
eng-2096-remove-the-discourse-context-overlay-from-roam-canvas
Open

[ENG-2096] Remove the discourse context overlay from Roam canvas#1288
sid597 wants to merge 1 commit into
eng-2037-add-tabbed-node-card-context-menu-to-roam-tldrawfrom
eng-2096-remove-the-discourse-context-overlay-from-roam-canvas

Conversation

@sid597

@sid597 sid597 commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator

Removes the canvas discourse context overlay and the "(BETA) Overlay in canvas" personal setting. Stacked on ENG-2037 (#1272) — the node card context menu is now the single way to view relations on canvas. Replacement decision per ENG-2037 and the Roam decision page linked in ENG-2096; FEE-881 (which proposed keeping the overlay) was canceled.

Also drops the setting from the zod schema, PERSONAL_KEYS, and the legacy key migration map. Old stored values are ignored harmlessly since the schema is non-strict, so no data migration is needed. Outlines/linked-references overlays are untouched (out of scope per the ticket).

No tests covered the canvas overlay path, so none were removed.

@linear-code

linear-code Bot commented Aug 10, 2026

Copy link
Copy Markdown

ENG-2096

@supabase

supabase Bot commented Aug 10, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project zytfjzqyijgagqxrzbmz because there are no changes detected in packages/database/supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@vercel

vercel Bot commented Aug 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
discourse-graph Skipped Skipped Aug 10, 2026 10:18am

Request Review

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

[pathKey([PERSONAL_KEYS.disableSidebarOpen]), "disable-sidebar-open"],
[pathKey([PERSONAL_KEYS.hideFeedbackButton]), "hide-feedback-button"],
[pathKey([PERSONAL_KEYS.autoCanvasRelations]), "auto-canvas-relations"],
[

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Legacy migration iterates Object.values(PERSONAL_KEYS), so with the key gone this map entry is never looked up — old graphs simply skip migrating the dead setting.

.default({ modifiers: 0, key: "" }),
"Discourse context overlay": z.boolean().default(false),
"Reified relation triples": z.boolean().default(true),
"Overlay in canvas": z.boolean().default(false),

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PersonalSettingsSchema is a non-strict z.object, so a persisted "Overlay in canvas" prop is stripped on parse. Writes path-patch rather than rewrite the object, so the stale boolean stays in old users' block props — harmless residue, not worth a cleanup migration.

const isEditing = this.editor.getEditingShapeId() === shape.id;
// eslint-disable-next-line react-hooks/rules-of-hooks
const [overlayMounted, setOverlayMounted] = useState(false);
// eslint-disable-next-line react-hooks/rules-of-hooks

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

overlayMounted + the onPointerEnter handler below existed solely to defer overlay mounting until hover; they go with the overlay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant