Skip to content

Restore and rework demo mode tooltips#197

Draft
Copilot wants to merge 137 commits intodevfrom
copilot/add-demo-mode-tooltips
Draft

Restore and rework demo mode tooltips#197
Copilot wants to merge 137 commits intodevfrom
copilot/add-demo-mode-tooltips

Conversation

Copy link

Copilot AI commented Feb 20, 2026

Description:

Demo mode tooltips were lost during the UI redesign that replaced the tab-based layout (Create/Enhance/Answer components) with a mode-based layout (chat/imageGen/imageEdit/video). Restores them fully: correct store naming, complete i18n coverage, Video mode support, and a dedicated component with window-size-independent per-button tooltip positioning.

Related Issue:

Demo mode tooltips (low prio)

Changes Made:

  • demoMode.ts / env.d.ts — Store pages renamed to match current modes (answer→chat, create→imageGen, enhance→imageEdit); video page added; DemoModePage = 'chat' | 'imageGen' | 'imageEdit' | 'video'; imageEdit.show is the uniform overlay-visibility flag (consistent with other modes; sub-feature flags showPrompt/showUpscale/etc. unchanged); escapeDemo and visibility watcher cover all four modes

  • i18n (all 13 files) — All DEMO_ANSWER_* / DEMO_CREATE_* / DEMO_ENHANCE_* keys renamed; DEMO_IMAGE_GEN_CENTER_CONTENT → DEMO_IMAGE_GEN_HEADING; DEMO_VIDEO_HEADING + DEMO_VIDEO_TOOLTIP_TEXT added and translated in every language; stale "Answer Tab" → "Chat mode" fixed in non-English files

  • DemoModeOverlay.vue (new component, extracted from App.vue) — Tooltip anchored to the specific active mode button via id="mode-button-{mode}" + getBoundingClientRect(); centered over its button, clamped to viewport; arrow tip tracks button centre via CSS custom property --arrow-left; position recomputed on activeMode change and window resize; named JS constants (TOOLTIP_WIDTH, TOOLTIP_GAP, ARROW_HEIGHT, …) kept in sync with CSS values; .tooltip-box auto-sizes to content (no fixed height)

  • demo-mode.css.demo-mode-answer-overlay → .demo-mode-overlay; height: 225px removed; ::after/::before arrow left uses var(--arrow-left, 40px)

  • App.vue — Inline 70-line overlay block replaced with <DemoModeOverlay />; "Need Help?" button shown only when demo mode is enabled; triggerHelpForCurrentMode() covers all four modes; watchers fire on mode-switch and app startup

  • PromptArea.vueid="mode-button-{mode}" on each button for JS anchoring; demo-mode-overlay-content outline applied to the highlighted mode button only; isDemoModeHighlighted() uses imageEdit.show consistently

  • SettingsChat.vuedemoMode.answer.show → demoMode.chat.show

Testing Done:

ESLint, vue-tsc --noEmit, and Vitest unit tests pass. Overlay verified to render per mode when isDemoModeEnabled: true in settings.json; tooltip position and arrow tip confirmed to track each of the four mode buttons independently.

Screenshots:

N/A — only active when demo mode is explicitly enabled via settings.json.

Checklist:

  • I have tested the changes locally.
  • I have self-reviewed the code changes.
  • I have updated the documentation, if necessary.
Original prompt

This section details on the original issue you should resolve

<issue_title>Demo mode tooltips (low prio)</issue_title>
<issue_description>These got lost during UI redesign. They should be added back and fully working.</issue_description>

Comments on the Issue (you are @copilot in this section)

@mschuettlerTNG Original implementation: #87

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Add demo mode tooltips back to UI Restore demo mode tooltips after UI redesign Feb 20, 2026
Copilot AI requested a review from tnglemongrass February 20, 2026 16:53
Copilot AI changed the title Restore demo mode tooltips after UI redesign Restore demo mode tooltips and rename store pages to match current UI modes Feb 20, 2026
Copilot AI changed the title Restore demo mode tooltips and rename store pages to match current UI modes Restore demo mode tooltips and align all naming to current UI mode names Feb 21, 2026
Copilot AI changed the title Restore demo mode tooltips and align all naming to current UI mode names Restore demo mode tooltips with correct UI mode naming and window-size-independent positioning Feb 21, 2026
Copilot AI changed the title Restore demo mode tooltips with correct UI mode naming and window-size-independent positioning Restore demo mode tooltips with correct mode-based naming and adaptive positioning Feb 21, 2026
@tnglemongrass tnglemongrass force-pushed the copilot/add-demo-mode-tooltips branch from 94e87ab to a8bb311 Compare February 21, 2026 22:48
Copilot AI changed the title Restore demo mode tooltips with correct mode-based naming and adaptive positioning Restore demo mode tooltips with correct naming, translated strings, and extracted component Feb 21, 2026
Copilot AI changed the title Restore demo mode tooltips with correct naming, translated strings, and extracted component Restore demo mode tooltips: mode-based naming, per-button anchoring, i18n, extracted component Feb 21, 2026
Copilot AI and others added 4 commits February 23, 2026 11:08
Co-authored-by: tnglemongrass <113173292+tnglemongrass@users.noreply.github.com>
Co-authored-by: tnglemongrass <113173292+tnglemongrass@users.noreply.github.com>
Co-authored-by: tnglemongrass <113173292+tnglemongrass@users.noreply.github.com>
@tnglemongrass tnglemongrass force-pushed the copilot/add-demo-mode-tooltips branch from 72309f5 to 1353f95 Compare March 18, 2026 16:53
@mschuettlerTNG mschuettlerTNG force-pushed the copilot/add-demo-mode-tooltips branch from b210dd0 to c4673fc Compare March 18, 2026 23:33
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.

Restore demo mode tooltips

3 participants