Repository navigation
Description
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()indot-content-drive-navigation.service.ts). The form reads it inhostFolderResolutionFn(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 (withFolderindot-legacy-editor-side-panel.component.ts). The inode only comes fromselectedNode(), 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=DotAssetinLanguage.properties, used only bydot-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 keyDotAsset(ContentTypeHelper.java). That key is also used by the Content Types portlet, so it must not change. The filter component (dot-content-type-filter, inlibs/ui) needs to show Content Drive's own "Asset" label forDOTASSETinstead 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
- Open Content Drive, browse into a folder and apply a filter.
- Open a page in the page editor (Edit Page).
- Click the Content Drive crumb in the breadcrumb.
- Content Drive opens at the root without the filter.
Regression 2
- Open Content Drive and browse into a folder (try both the tree and double-clicking the folder in the list).
- 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.
- The Host or Folder field is not set to the browsed folder.
Label (item 3)
- Open Content Drive and open the New menu: the dotAsset entry reads "DotAsset".
- Open the content type filter: the left column, and the chip after selecting it, read "DotAsset".
Lock icon (item 4)
- Open Content Drive and open a piece of content in the edit panel.
- Lock it (or unlock it) from the panel.
- The lock icon on that row in the list does not change until the page is reloaded.
- Do the same from the row's right-click menu: the icon updates right away.
Filter row weight (item 5)
- Open Content Drive and open the content type filter.
- The row labels in both columns render in medium weight.
Empty-state message (item 6)
- Open Content Drive and filter by a content type with many fields marked "show in list".
- Search for a term with no results.
- 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)
- Open Content Drive and select two or more contentlets.
- Edit Content is offered (toolbar or right-click menu). Clicking it opens only one of them.
- 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-itemrenders 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
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsQA
Activity
[-]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[/+][-]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[/+][-]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[/+]github-actions commentedon Nov 24, 2026
PRs linked to this issue
fix(content-drive): regressions and small fixes from #38379
5 remaining items
refactor(data-access): name the content change kinds in one constant (#…
fix(content-drive): address review of the regressions fix (#38379)
fix(content-drive): keep the page editor crumb and picker page sizes (#…
test(e2e): cover the Content Drive lock refresh and the page editor r…
test(e2e): harden the lock and page editor return tests (#38379)
fix(breadcrumbs): keep the followed Content Drive crumb when the menu…
test(e2e): undo the seeded folder when the content type cannot be cre…
fix(content-drive): keep the view, picker sort, newest menu and locke…
fix(content-drive): do not reopen a context menu the listing dismissed (
fix(content-drive): rebuild the context menu only on a new right-click (
fix(edit-content): read lockedOn through its index signature (#38379)
claude commentedon Nov 25, 2026
🧪 Post-Merge Test Plan
Source PR: #38711
Related issues: #38379
Ownership and status
Test summary
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.mdinstead, 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