Skip to content

[IMP] dms: type-aware side preview pane in the file list#18

Draft
dnplkndll wants to merge 1 commit into
19.0-mig-dms-basefrom
19.0-imp-dms-preview-pane
Draft

[IMP] dms: type-aware side preview pane in the file list#18
dnplkndll wants to merge 1 commit into
19.0-mig-dms-basefrom
19.0-imp-dms-preview-pane

Conversation

@dnplkndll
Copy link
Copy Markdown

Add a type-aware side preview pane to the file list view: clicking a row opens a pane that renders the file by type via a scored handler registry (dms.preview_handlers) — image, PDF, audio, video, Markdown, email (.eml, parsed to a header card + sandboxed HTML body), source (CodeEditor), with a download fallback. The pane embeds the mail Chatter and persists its open/closed state per user.

Depends on OCA/dms#475 (the 19.0 migration). Draft for reference until OCA#475 lands.

Non-mechanical points worth flagging

  • No new backend method — the pane uses orm.read on existing fields and doAction on existing actions (action_dms_file, wizard_dms_file_share_action).
  • Scoped to the list view; the kanban half of the preview is a stacked follow-up.
  • Hoot tests for the registry/handlers/pane ride the separate test-infra branch, not bundled here.

Add an in-place preview pane to the file list view: clicking a row
opens a side pane that renders the file by type via a scored handler
registry (dms.preview_handlers) — image, PDF, audio, video, Markdown,
email (.eml), source (CodeEditor), with a download fallback. The pane
embeds the mail Chatter and persists its open/closed state per user in
localStorage (use_stored_state). Pane visibility and the selected-row
accent are wired into the existing dms list renderer.
@dnplkndll dnplkndll force-pushed the 19.0-imp-dms-preview-pane branch from 7f94e44 to fda6df2 Compare June 3, 2026 17:31
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