← Back to Pull requests

18.0 Add DMS workspace UI #482

Open
windweaver828 opened this pull request with 432 lines diff across 5 files
View on GitHub
windweaver828 windweaver828 commented on Jun 10, 2026 21:10 UTC
Author

Summary

This PR adds dms_workspace_ui, an optional modern workspace interface for OCA DMS.

The addon keeps the existing DMS models, permissions, routes, menus, and classic views intact. It adds a new workspace-style Documents action with:

  • card/grid file browsing

  • persistent folder tree/sidebar

  • file/folder selection

  • context menu actions

  • inspector/details panel

  • upload/new folder/rename/delete flows

  • responsive layout support
  • The goal is to improve first-use usability of OCA DMS without replacing or rewriting the existing backend behavior.

    Screenshots

    Existing DMS UI

    <img width="1280" height="573" alt="image" src="https://github.com/user-attachments/assets/3369a822-1a29-4654-9f61-b0491109ed72" />

    <img width="1280" height="576" alt="image" src="https://github.com/user-attachments/assets/51d4082e-77f1-4be7-8fe3-f67b9817ad94" />

    New Workspace UI

    <img width="1280" height="576" alt="image" src="https://github.com/user-attachments/assets/c7cbdc4a-c800-4285-87da-8c31419f2ba3" />

    Inspector / Preview Pane / Details

    <img width="1280" height="573" alt="image" src="https://github.com/user-attachments/assets/7732ce6e-c877-4696-9d92-105c269cc6bc" />

    Context Menu

    <img width="1280" height="573" alt="image" src="https://github.com/user-attachments/assets/c2cab9a2-95bc-420b-901c-5a70ba050ea3" />

    <img width="1280" height="573" alt="image" src="https://github.com/user-attachments/assets/f4d97a30-e4cb-43f5-9e24-980e630c8528" />

    Responsive Layout

    <img width="767" height="564" alt="image" src="https://github.com/user-attachments/assets/c4efc4c9-39e3-44da-8772-7c7e65b87877" />

    Settings Added

    <img width="1280" height="576" alt="image" src="https://github.com/user-attachments/assets/1a565959-7711-462a-a5f6-32087f71c5da" />

    Scope

    This PR only adds the optional dms_workspace_ui addon.

    It does not:

  • change DMS models

  • change DMS security

  • change existing DMS routes

  • remove existing DMS views
  • Validation

    Locally validated with:

  • Python compile checks

  • XML parse checks

  • Odoo module install/update

  • Manual checks for behavior such as folder navigation, file selection, context menu, dialogs, upload cancel, archive/restore, and responsive layout
  • Notes

    The addon is new UI surface area, and I’d appreciate maintainer feedback on naming, placement, and whether this belongs in OCA/dms as an optional addon. Any feedback is taken to heart and greatly appreciated. Thank you.

    Installing the addon hides the original DMS Files/Directories and DMS Field Documents pages by default, toggleable in the general settings of the app.

    Also not seen, keyboard navigation is included.

  • Tab swaps between filetree and files pane.

  • Typeahead jumping, type and it jumps to matching locations

  • Arrow keys navigate

  • Ctrl + Left click multi selects

  • Spacebar also multi selects

  • Shift + Arrow keys also multi selects

  • Alt hotkeys overlay works with Add File and New Folder buttons

  • In filetree Left/Right arrow and Spacebar expands/collapses folders

  • Delete key to delete

  • F2 for rename
  • Extras seen in pictures that are not included


  • description preview (there is a PR with this required addon at https://github.com/OCA/dms/pull/481)

  • OnlyOffice integration (PR coming soon!)

  • Also of note, both of those PRs work with regulard dms also, this is not required for them to work.

    Diff: 432 lines (+324 / -108) across 5 files Reviewer: None requested Review duration: 252534m
    All Vouch review confidence checks passed
    Residual risk 0.37 = Change Risk (0.64) × (1 − Review Confidence (0.42)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.64 · 432 lines diff across 5 files
    0.64
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 10%
    42%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.363
    Shallow Review Depth shallow_review_depth
    0.344
    No Reviewer Assigned no_reviewer_assigned
    0.120
    Real PR Conversation Timeline
    1 comments
    "Review active on #482"
    general weight: 0.35
    Reviewers
    None requested
    Assignees
    windweaver828 windweaver828
    Labels
    risk: medium confidence: 42.2% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 64.2% (MEDIUM) · Higher = larger blast radius
    64.2%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 42.2% · Lower = rushed or shallow review
    42.2%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 37.1% · Moderate risk
    37.1%
    Repository