Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,28 @@ All notable changes to the Super Layout Table Extension will be documented in th
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## v0.4.1 — Hotfix: M2M pivot 403 + collection-switch (Issue #55)

### Fixed
- **M2M pivot 403:** `related-values` display no longer queries
`${field}.name` on the junction collection. Field paths now traverse
`junction_field` to the actual target and drop tokens missing there.
- **Collection-switch stale fields:** `useCollection` now receives a
reactive `Ref`, so the field list refreshes when the collection prop
changes. Reported by @draxx318 in #55.
- **M2M display rendering:** Junction-row unwrap also runs for
field-settings displays (was previously override/heuristic only),
fixing literal `{{name}}` leaks.
- **Override on primitive fields:** A column-display template on a
non-relational field now applies to the value instead of returning
em-dash.

### Refactor
- New `expandTokensThroughRelation` helper unifies M2M-junction
traversal across the override, heuristic, and `related-values`
branches of `adjustFieldsForDisplays`. Closes the drift class behind
#34 and #55.

## v0.4.0 — Permission-aware layout (Issue #37)

### Fixed
Expand Down
3 changes: 1 addition & 2 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { computed } from 'vue';
import { defineLayout, useCollection, useStores } from '@directus/extensions-sdk';
import { defineLayout, useStores } from '@directus/extensions-sdk';
import { formatTitle } from '@directus/format-title';
import LayoutComponent from './src/super-table.vue';
import ActionsComponent from './src/actions.vue';
Expand All @@ -21,7 +21,6 @@ const layoutConfig = {
setup(props: any, { emit }: any) {
const { useFieldsStore } = useStores();
const fieldsStore = useFieldsStore();
useCollection(props.collection); // parity with super-table.vue

// Issue #48: Expose a flat list of currently visible columns to slot
// components (options sidebar). Each entry uses the *root* field key as id
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "directus-extension-super-table",
"version": "0.4.0",
"version": "0.4.1",
"description": "A powerful and feature-rich table layout extension for Directus 11+ with inline editing, quick filters, and manual sorting",
"keywords": [
"directus",
Expand Down
Loading
Loading