Fix web app-host Vite resolution for ui table-dnd subpaths #355
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#355
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 Web/PWA publish workflow fails in the clean Docker build because the web
host Vite config does not resolve the explicit
@lapis-notes/ui/table-dnd/*subpaths back to UI source the way workspace and desktop-electron already do.
Local builds can mask the problem when
packages/ui/distexists, but thepublish image only has a fresh workspace install.
Problem
publish-web.ymlrun 264 fails duringpnpm --filter @lapis-notes/web buildwith:
Rollup failed to resolve import "@lapis-notes/ui/table-dnd/sensors" from "/app/packages/plugins/plugin-csv/src/lib/components/csv-data-table.svelte"The shared table DnD contract already documents
@lapis-notes/ui/table-dnd,@lapis-notes/ui/table-dnd/sensors, and@lapis-notes/ui/table-dnd/utilsassupported subpaths. Workspace and desktop-electron had follow-up fixes for
their host-local Vite registries in #276, but the web host kept its own inline
UI
resolveSubpathhandler without those explicit cases.Goal
Make the web app-host Vite resolver honor the same explicit UI table DnD
subpaths as the other app hosts so clean Web/PWA builds do not depend on
packaged
@lapis-notes/ui/distartifacts.Scope
packages/web/vite.config.tsUIresolveSubpathhandling fortable-dnd/sensorsandtable-dnd/utils.web host as well as workspace and desktop-electron if needed.
publish workflow.
Non-goals
@lapis-notes/uipackage exports.Acceptance Criteria
@lapis-notes/webresolves@lapis-notes/ui/table-dnd/sensorsand@lapis-notes/ui/table-dnd/utilsto UI source in its host-local Vite config.ui/distartifacts are absent.
Implementation Notes
dist dependencies.
Suggested Files or Specs To Inspect
packages/web/vite.config.tspackages/ui/package.jsonpackages/plugins/plugin-csv/src/lib/components/csv-data-table.sveltespec/src/30-cross-package-contracts/first-party-source-resolution.mdspec/src/30-cross-package-contracts/drag-drop-patterns.mdValidation Commands
pnpm check:source-resolutionpnpm --filter @lapis-notes/web check:allpnpm --filter @lapis-notes/web buildRelated Issues
Follow-up Tasks
Implementation Summary
Added web-host UI table-dnd subpath resolution for table-dnd sensors/utils, aligned web and source-resolution specs, and validated with check:source-resolution, @lapis-notes/web check:all/test/build, repo check:all, and mdbook build spec.