Skip to content

[6.x] Inertia asset index - #19286

Open
brianjhanson wants to merge 28 commits into
6.xfrom
feature/inertia-asset-index
Open

[6.x] Inertia asset index#19286
brianjhanson wants to merge 28 commits into
6.xfrom
feature/inertia-asset-index

Conversation

@brianjhanson

@brianjhanson brianjhanson commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Ports the Asset index to Inertia/Vue and, along the way, extracts a shared element-index pipeline that the entries index now rides on as well.

  • Shared index pipeline — consolidates per-element-type index rendering onto a ContentIndexViewModel base, with AssetIndexViewModel and EntryIndexViewModel on top. AssetsIndexController renders assets/Index and ContentIndexController renders content/Index from the same payload. The Vue side mirrors this with an ElementIndexPage component and useElementIndexPage / useElementIndexTable / useContentIndexData composables.
  • Asset folders & navigation — the index payload now carries folders, breadcrumbs, and thumbnail data. Folders render inline in the table with click-to-navigate (useFolderNavigation), navbar breadcrumbs gain an optional action menu, and a "New subfolder" breadcrumb action creates folders (useNewSubfolder).
  • Drag-and-drop moving — assets can be dragged onto folder rows and breadcrumb targets to move them (useAssetMoveDrag / assetMover), with the payload exposing folder and breadcrumb move targets and selection restored once the drag ends.
  • Thumbnail view — a card/thumbnail grid (ElementThumbs) for asset sources.
  • craft-truncate component — a new @craftcms/ui component for truncating labels with an overflow tooltip, replacing craft-element-label for thumbnail and chip labels (the legacy CraftElementLabel now renders through it).
  • Plugin boot ordering — plugins are loaded after the database is booted, so index sources backed by plugin-registered element types resolve correctly.

Related issues

CMS-2281

@brianjhanson brianjhanson changed the title Feature/inertia asset index [6.x] Inertia asset index Jul 21, 2026
@github-actions

github-actions Bot commented Jul 21, 2026

Copy link
Copy Markdown

📚 Storybook previews

@craftcms/uiopen Storybook

Changed components:

resources/jsopen Storybook

No changed components detected in this Storybook.

@brianjhanson
brianjhanson marked this pull request as ready for review July 29, 2026 18:45
@brianjhanson
brianjhanson force-pushed the feature/inertia-asset-index branch from 8a657e1 to d44d3b2 Compare July 31, 2026 19:06
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