Fix popup ViewHeader interactivity and leaf dropdown menus #106
Labels
No labels
abandoned
active
audit
blocked
data-safety
difficulty:easy
difficulty:hard
difficulty:high
difficulty:medium
docs
done
duplicate
notebook-v0
open
priority:high
ready
release-critical
safe-mode
spec
spec-backlog
subsystem:api
subsystem:backlog
subsystem:bases
subsystem:ci
subsystem:command
subsystem:configuration
subsystem:consolidate
subsystem:dependencies
subsystem:desktop-electron
subsystem:diffmerge
subsystem:docker
subsystem:docs
subsystem:fuzzy
subsystem:graph
subsystem:hotkeys
subsystem:lapis
subsystem:maint
subsystem:maintenance
subsystem:markdown
subsystem:markdown-lint
subsystem:md018
subsystem:notebook
subsystem:notifications
subsystem:opfs
subsystem:package
subsystem:plugin-markdown
subsystem:plugin-tasks
subsystem:plugins
subsystem:registry
subsystem:release
subsystem:renovate
subsystem:restore
subsystem:scripts
subsystem:search
subsystem:settings
subsystem:spec
subsystem:tasks
subsystem:testing
subsystem:ui
subsystem:web
subsystem:workspace
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lapis-notes/lapis#106
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The remaining popup regression is isolated to popup leaf
ViewHeaderinteractivity when the title bar is enabled. Recent popup ownership and overlay portal fixes landed, but the popup leaf header menu still does not open inside the popout window.Problem
The popup leaf menu regression is now narrow and reproducible:
ViewHeaderrenders and the trigger is visible.aria-expanded="true".The current focused regression lives in
packages/workspace/e2e/tab-drag-drop.spec.tsaspopup leaf view menus render in the popup host without stale-derived errors.Goal
Make popup leaf
ViewHeadercontrols fully interactive so popup-local leaf menus open and render in the popup host document, matching the behavior already achieved for popup overflow menus and other popup-local overlays.Scope
ViewHeadermenu trigger behavior whenappearence.interface.showTabTitleBaris enabled.Non-goals
Appruntime.Acceptance Criteria
showTabTitleBarenabled, the leaf header menu trigger opens successfully.Split down.packages/workspace/e2e/tab-drag-drop.spec.tspasses without temporary diagnostics.Reading a derived belonging to a now-destroyed effectwarning is emitted during the popup leaf menu flow.Implementation Notes
ViewHeadertrigger never reachesaria-expanded=true.ViewHeader, API menu wrappers, and the popup regression test, but none produced a working open transition.getAllContexts()inpopout-window-manager.svelte; this is a likely owner worth verifying.Suggested Files or Specs To Inspect
packages/workspace/src/lib/components/view-header/view-header.sveltepackages/workspace/src/lib/components/sidebar/popout-window-manager.sveltepackages/workspace/src/lib/components/sidebar/popout-window-shell.sveltepackages/api/src/lib/hooks/mountComponent.svelte.tspackages/workspace/e2e/tab-drag-drop.spec.tspackages/ui/src/lib/components/ui/dropdown-menu/dropdown-menu-trigger.sveltepackages/ui/src/lib/components/ui/dropdown-menu/dropdown-menu-content.sveltepackages/workspace/spec.mdspec/src/20-packages/workspace/index.mdValidation Commands
pnpm --filter @lapis-notes/workspace test:e2e e2e/tab-drag-drop.spec.ts --project=chromium --grep "popup leaf view menus render in the popup host without stale-derived errors"pnpm --filter @lapis-notes/workspace test:e2e e2e/tab-drag-drop.spec.ts --project=chromium --grep "popup tab menus and markdown link previews render in the popup host"pnpm --filter @lapis-notes/workspace checkpnpm test:smokeFollow-up Tasks
ViewHeaderclick handlers are live in the popup document or whether the subtree is mounted with stale context / broken delegation.Implementation Summary
Duplicate of #105.