Skip to content

Content Drive regressions: UVE state, Host/Folder prefill, labels and lock icon, empty-state message, Edit on multi-select #38379

Description

@zJaaal

Problem Statement

Two small Content Drive regressions, filed together because both are about Content Drive losing the location the editor was working in, plus five small fixes found alongside them: a label, a lock icon that goes stale, the weight of filter row labels, an empty listing that still draws a table wide enough to scroll, and Edit Content offered for several items at once.

1. Coming back from the page editor (UVE) loses Content Drive's state

An editor browses to a folder, filters the list, opens a page in UVE, and goes back to Content Drive through the breadcrumb. Content Drive opens at the root with no filters, and the folder, filters and tree state are gone.

Likely cause (preliminary): the Content Drive crumb is built in the GlobalStore breadcrumb handler (contentDrive in libs/global-store/src/lib/features/breadcrumb/breadcrumb.utils.ts). When the trail already ends on Content Drive, the handler leaves the crumb alone, so the crumb keeps the URL from when the editor first arrived (often the bare /content-drive from the menu). Later browsing updates path, filters and isTreeExpanded in the URL but not in the crumb, so clicking the crumb restores the old location. Browser Back should be checked separately.

2. Creating content from inside a folder does not prefill Host or Folder

An editor browses into a folder and creates content there. The Host or Folder field is not prefilled with that folder (expected: the folder being browsed, as before). This needs checking in both editors:

  • New editor: Content Drive passes folderPath (hostname + path) in the panel data (#currentFolder() in dot-content-drive-navigation.service.ts). The form reads it in hostFolderResolutionFn (dot-edit-content-form-resolutions.ts), through the overlay host (overlay-edit-content-host.ts).
  • Legacy editor: Content Drive appends folder=<inode> to the create URL (withFolder in dot-legacy-editor-side-panel.component.ts). The inode only comes from selectedNode(), the tree's selection, so a folder reached from the list or from the URL, rather than by clicking the tree, may send no inode at all.

Recent changes in this area came from the side-panel work (#37759), for example "let createContent read the folder it creates in". That is the first place to look.

3. Content Drive labels the dotAsset base type "DotAsset" instead of "Asset"

The upload dialog calls this base type Asset, and Folder Settings says Always use Assets. Two other places in Content Drive still say DotAsset:

  • New menu (one entry per base type): label from the Content Drive key content-drive.base-type.dotasset=DotAsset in Language.properties, used only by dot-content-drive-toolbar.component.ts.
  • Content type filter (left column and the chip): label from the server, GET /api/v1/contenttype/basetypes, which reads the shared key DotAsset (ContentTypeHelper.java). That key is also used by the Content Types portlet, so it must not change. The filter component (dot-content-type-filter, in libs/ui) needs to show Content Drive's own "Asset" label for DOTASSET instead of the server name. The same component is used by the AssetPicker, so the fix has to stay limited to Content Drive.

Scope is Content Drive only for now. The Content Types portlet and the Tools portlet keep "DotAsset".

4. Locking or unlocking from the edit panel does not update the lock icon in the list

An editor opens content in the edit panel (the slide-over), locks or unlocks it there, and the list still shows the old lock state until the page is reloaded. Locking or unlocking from the row's right-click menu updates the icon right away.

Likely cause (preliminary): Content Drive reloads the list only when the panel reports a save (onEditPanelSaved in dot-content-drive-shell.component.ts calls reloadContentDrive()). In the new editor, lock and unlock (lockContent / unlockContent in libs/edit-content/src/lib/store/features/lock/lock.feature.ts) are not saves, so they report nothing to Content Drive. Closing the new editor's panel does not reload either (onEditPanelClosed only closes it). The legacy panel does reload when it closes (onLegacyPanelClosed), so there the icon may only be stale while the panel is open. Both editors need checking.

5. Filter row labels use medium weight instead of regular

In the content type filter popover, every row label (the "All Content Types" row, the base types on the left and the content types on the right) renders in medium weight. It should be regular weight.

The weight comes from the shared row component, not from the content type filter: dot-filter-list-item renders its label as <span class="text-md truncate font-medium"> (libs/ui/src/lib/components/dot-filter-list-item/dot-filter-list-item.component.ts). The fix is to drop font-medium there, so every filter popover that uses it changes too: in Content Drive the language, status, workflow and field filters, and outside it the Users, Experiments and Publishing Queue filters. That is intended, so they stay consistent. The "All content types selected." banner in the same popover keeps its weight.

6. An empty listing still draws the table, and its extra columns make it scroll sideways

When a content type is selected, the listing adds a column for each of its fields marked "show in list". With enough of them the table is wider than the screen and scrolls horizontally, and it still does when the response has no results: the empty-state message sits inside a table nobody can use, and scrolls out of view with it.

The fix: when the listing has no results, do not render the table at all (no header, no columns), and show only the empty-state message, centred in the listing's area. The table comes back with its columns as soon as there are results. Sorting, paging and the selected columns are kept in the store, so they are unchanged when it comes back.

7. Edit Content is offered when several items are selected

With more than one item selected, Content Drive still offers Edit Content. Clicking it opens only one item (the first of the selection), which reads as if every selected item would open, and closing the side panel then clears the selection. The agreed behaviour is not to offer Edit Content (nor Edit Page) when more than one item is selected: the side panel edits one item, and stacking several has no obvious order.

Where it appears needs confirming when fixing. The toolbar's Edit buttons are already meant to show only for a single item (isSingleSelection in utils/workflow-actions.ts), and they open $selectedItems()[0]. The right-click menu adds Edit or View Content for the clicked row whatever else is selected (getMenuItems in dot-folder-list-context-menu.component.ts).

Steps to Reproduce

Regression 1

  1. Open Content Drive, browse into a folder and apply a filter.
  2. Open a page in the page editor (Edit Page).
  3. Click the Content Drive crumb in the breadcrumb.
  4. Content Drive opens at the root without the filter.

Regression 2

  1. Open Content Drive and browse into a folder (try both the tree and double-clicking the folder in the list).
  2. Create content of a type with a Host or Folder field, once with a type on the new editor and once with a type on the legacy editor.
  3. The Host or Folder field is not set to the browsed folder.

Label (item 3)

  1. Open Content Drive and open the New menu: the dotAsset entry reads "DotAsset".
  2. Open the content type filter: the left column, and the chip after selecting it, read "DotAsset".

Lock icon (item 4)

  1. Open Content Drive and open a piece of content in the edit panel.
  2. Lock it (or unlock it) from the panel.
  3. The lock icon on that row in the list does not change until the page is reloaded.
  4. Do the same from the row's right-click menu: the icon updates right away.

Filter row weight (item 5)

  1. Open Content Drive and open the content type filter.
  2. The row labels in both columns render in medium weight.

Empty-state message (item 6)

  1. Open Content Drive and filter by a content type with many fields marked "show in list".
  2. Search for a term with no results.
  3. The table header with all its columns is still drawn, the listing scrolls horizontally, and the empty-state message moves out of view.

Edit with several items selected (item 7)

  1. Open Content Drive and select two or more contentlets.
  2. Edit Content is offered (toolbar or right-click menu). Clicking it opens only one of them.
  3. Close the side panel: the selection is gone.

Acceptance Criteria

  • Going back to Content Drive from UVE through the breadcrumb restores the folder, filters and tree state the editor left.
  • Browser Back from UVE does the same.
  • Creating content from inside a folder prefills Host or Folder with that folder in the new editor.
  • The same holds in the legacy editor.
  • Prefill works however the folder was reached: tree click, list double-click, or a shared URL.
  • At the site root, Host or Folder prefills with the current site, and with System Host when System Host is selected.
  • Content Drive's New menu shows "Asset" for the dotAsset base type.
  • Content Drive's content type filter shows "Asset" for that base type, in the list and in the chip.
  • The Content Types portlet and the AssetPicker are unchanged.
  • Locking or unlocking from the edit panel updates that row's lock icon without a page reload, in the new editor.
  • The same holds in the legacy editor.
  • Row labels in the content type filter render in regular weight.
  • Every other filter popover that uses dot-filter-list-item renders its labels in regular weight too, with no other layout change.
  • When the listing has no results, no table (header or columns) is rendered, only the empty-state message, centred, with no horizontal scroll.
  • When results come back, the table returns with the same columns, sort and page size.
  • With more than one item selected, neither the toolbar nor the right-click menu offers Edit Content, View Content or Edit Page.
  • With exactly one item selected, Edit Content and Edit Page work as before.

dotCMS Version

Latest from main branch

Severity

Medium - Some functionality impacted

Links

NA

Activity

  1. added theissue type on Oct 30, 2026
  2. changed the title [-]Content Drive: returning from UVE loses the browsing state, and creating content in a folder does not prefill Host or Folder[/-] [+]Content Drive: returning from UVE loses the browsing state, creating content in a folder does not prefill Host or Folder, and dotAsset is labeled DotAsset instead of Asset[/+] on Nov 3, 2026
  3. changed the title [-]Content Drive: returning from UVE loses the browsing state, creating content in a folder does not prefill Host or Folder, and dotAsset is labeled DotAsset instead of Asset[/-] [+]Content Drive: browsing state lost returning from UVE, Host or Folder not prefilled on create, DotAsset label, and stale lock icon after locking from the edit panel[/+] on Nov 4, 2026
  4. changed the title [-]Content Drive: browsing state lost returning from UVE, Host or Folder not prefilled on create, DotAsset label, and stale lock icon after locking from the edit panel[/-] [+]Content Drive regressions: UVE state, Host/Folder prefill, labels and lock icon, empty-state message, Edit on multi-select[/+] on Nov 24, 2026
  5. github-actions commented on Nov 24, 2026

    @github-actions
    Contributor
  6. 5 remaining items

  7. self-assigned this
    on Nov 24, 2026
  8. moved this from In Review to QA in dotCMS - Product Planningon Nov 25, 2026
  9. removed their assignment
    on Nov 25, 2026
  10. claude commented on Nov 25, 2026

    @claude
    Contributor

    🧪 Post-Merge Test Plan

    Source PR: #38711
    Related issues: #38379

    Ownership and status

    Responsibility Developer Status
    Plan Reviewer — developer who implemented the fix @zJaaal Pending Review
    Test Executor — independent developer TBD Not Started

    The Plan Reviewer must validate scope, correctness, missing cases, and possible hallucinations before execution begins.

    This is a living test plan. The Plan Reviewer and Test Executor may add relevant test cases. Every added case must follow the existing format and receive a final result.

    Test summary

    Test Case Number Scenario Result Notes
    TC-001 Breadcrumb and browser Back from UVE restore Content Drive's folder, filters and tree state Not Run Yet
    TC-002 Lock/unlock from the side panel updates the row icon live, incl. under a Locked filter Not Run Yet
    TC-003 Multi-selection no longer offers single-item edit actions Not Run Yet
    TC-004 Single-selection Edit Content/Edit Page still work as before Not Run Yet
    TC-005 Content Drive shows "Asset"; DotAsset unchanged in Content Types/AssetPicker Not Run Yet
    TC-006 Filter row labels render in regular weight Not Run Yet
    TC-007 Empty listing/picker show a centred, no-table empty state; table stays when count>0 Not Run Yet
    View full test plan

    Summary

    PR #38711 adds only Playwright e2e coverage for Content Drive's create-content, filter, folder and workflow-action flows; the diff has no application code and none of it exercises issue #38379's regressions. Cases below come from the approved spec specs/38379-content-drive-regressions/spec.md instead, since that is the only description of the intended fix. Item 2 (Host/Folder prefill) is withdrawn in the spec as not reproducing on trunk, so no case covers it. None of the 7 cases have been executed.

    Test Cases

    - Test ID: TC-001
    - Issues: #38379
    - Test Name: Breadcrumb and browser Back from UVE restore Content Drive's state
    - Risk: Critical
    - Scenario: Happy Path
    - Steps To Reproduce:
      1. On <build under test>, open Content Drive, browse into a subfolder, apply a content-type filter, and expand its tree node.
      2. Open a page from that folder in the page editor (Edit Page).
      3a. Click the Content Drive crumb in the page editor's breadcrumb.
      3b. Separately repeat steps 1-2, then use the browser's native Back button instead.
    - Expected Result: In both 3a and 3b, Content Drive reopens on the same subfolder with the same filter and tree state — not the root with no filters.
    
    - Test ID: TC-002
    - Issues: #38379
    - Test Name: Lock/unlock from the side panel updates the row icon live
    - Risk: High
    - Scenario: Happy Path
    - Steps To Reproduce:
      1. On <build under test>, open Content Drive, double-click an unlocked row to open the edit side panel, then Lock it and close the panel.
      2. Repeat to Unlock it.
      3. Set the status filter to include Locked, then lock a visible row from its side panel.
      4. With the same contentlet open in the Query Tool or Publishing Queue, lock/unlock it from Content Drive.
    - Expected Result: Steps 1-2 update the row's lock icon immediately, with no page reload. Step 3 reloads the Content Drive list quietly and the row still matches the Locked filter. Step 4 causes no reload in the other portlet.
    
    - Test ID: TC-003
    - Issues: #38379
    - Test Name: Multi-selection no longer offers single-item edit actions
    - Risk: Critical
    - Scenario: Negative
    - Steps To Reproduce:
      1. On <build under test>, open Content Drive and select two or more rows (shift-click or ctrl-click).
      2. Check the toolbar and the right-click menu on a selected row for Edit/View Content, Edit/View Page, Edit/View Properties, Edit Code.
      3. Right-click a row that is NOT part of the selection.
    - Expected Result: With 2+ selected, none of those entries appear in the toolbar or on a selected row's context menu. Step 3's row, being outside the selection, still shows them.
    
    - Test ID: TC-004
    - Issues: #38379
    - Test Name: Single-selection Edit Content/Edit Page still work as before
    - Risk: High
    - Scenario: Happy Path
    - Steps To Reproduce:
      1. On <build under test>, select exactly one contentlet row and click Edit Content from the toolbar, then close the panel.
      2. Right-click that same row, with nothing else selected, and choose Edit Content.
      3. Repeat 1-2 for a page using Edit Page.
    - Expected Result: Every case opens the side panel/page editor for that single item as before, and the selection is preserved while it is open.
    
    - Test ID: TC-005
    - Issues: #38379
    - Test Name: Content Drive shows "Asset"; DotAsset unchanged outside it
    - Risk: Medium
    - Scenario: Happy Path
    - Steps To Reproduce:
      1. On <build under test>, open Content Drive's New menu and note the dotAsset entry's label.
      2. Open the content type filter, select the dotAsset base type, and note the left-column label and the chip.
      3. Open the Content Types portlet's base-type listing, and an Asset Picker (e.g. an Image field), and note their dotAsset label.
    - Expected Result: Steps 1-2 read "Asset". Step 3 still reads "DotAsset" in both places.
    
    - Test ID: TC-006
    - Issues: #38379
    - Test Name: Filter row labels render in regular weight
    - Risk: Low
    - Scenario: Happy Path
    - Steps To Reproduce:
      1. On <build under test>, open Content Drive's content type filter and inspect the "All Content Types" row and the base-type/content-type rows.
      2. Open another filter sharing the same row component (e.g. Content Drive's status filter, or the Users portlet's filter).
    - Expected Result: All inspected row labels render in regular weight, not medium, in every popover checked; the "All content types selected." banner keeps its existing weight.
    
    - Test ID: TC-007
    - Issues: #38379
    - Test Name: Empty listing/picker show a centred, no-table empty state; table stays when count>0
    - Risk: Medium
    - Scenario: Edge
    - Steps To Reproduce:
      1. On <build under test>, in Content Drive filter by a content type with many "show in list" fields, then search for a term with no matches.
      2. Clear the search so results return.
      3. Page forward past the last page, or run a search that hits the scan budget, so the current page is empty but the server still counts results.
      4. Repeat step 1's empty search in the Asset Picker and in a Relationship field's Add Relationships dialog.
      5. Open the content type picker from the New menu and search for no matches; compare the empty message's centring to the dialog's centre.
    - Expected Result: Step 1 shows no table/header, only a centred empty-state message, no horizontal scroll. Step 2 restores the table with the same columns, sort and page size. Step 3 keeps the table and paginator visible despite the empty page. Step 4's consumers show the same empty state as step 1. Step 5's message is centred with equal inset on both sides.
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions