Skip to content

Add toggle to allow comparing revision to previous revision#26480

Merged
AlexGaillard merged 48 commits intomainfrom
robl/prod-1978-add-mode-toggle-in-revisions-comparison
Jan 28, 2026
Merged

Add toggle to allow comparing revision to previous revision#26480
AlexGaillard merged 48 commits intomainfrom
robl/prod-1978-add-mode-toggle-in-revisions-comparison

Conversation

@robluton
Copy link
Contributor

@robluton robluton commented Jan 13, 2026

Scope

What's changed:

  • Added ComparisonToggle component (app/src/views/private/components/comparison/comparison-toggle.vue) to allow
    users to switch between comparing to "Previous" or "Latest" revision
  • Enhanced use-comparison.ts composable to support compareToOption parameter for both "Previous" and "Latest"
    comparison modes
  • Added handling for edge cases: automatically switches to "Latest" mode when there are no previous revisions, and
    disables "Previous" option for the first revision
  • Updated comparison header to reflect when comparing to previous revision
  • Added tooltip to Apply button explaining behavior in "Previous" mode
  • Removed "Updated" badge from comparison modal form fields

Potential Risks / Drawbacks

  • The "Previous" mode disables the Apply button, and, though we do provide a tooltip explanation, this UX may need user
    feedback

Tested Scenarios

  • Toggling between "Previous" and "Latest" comparison modes in revision comparison
  • Handling first revision scenario (Previous option disabled, auto-switches to Latest)
  • Handling case when there are no previous revisions (auto-switches to Latest mode and Previous option should become
    disabled)

Review Notes / Questions

Checklist

  • Added or updated tests
  • Documentation PR created here or not required
  • OpenAPI package PR created here or not required

Fixes CMS-1676

@linear
Copy link

linear bot commented Jan 13, 2026

@robluton robluton requested a review from formfcw January 13, 2026 21:32
@codecov
Copy link

codecov bot commented Jan 20, 2026

Codecov Report

❌ Patch coverage is 96.27660% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 63.28%. Comparing base (fc40c7a) to head (25755ac).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #26480      +/-   ##
==========================================
+ Coverage   63.24%   63.28%   +0.04%     
==========================================
  Files        2113     2114       +1     
  Lines      137230   137399     +169     
  Branches     9025     9057      +32     
==========================================
+ Hits        86788    86959     +171     
+ Misses      50442    50440       -2     
Flag Coverage Δ
api 46.62% <ø> (ø)
app 74.22% <96.27%> (+0.07%) ⬆️
composables 82.35% <ø> (ø)
create-directus-extension 94.44% <ø> (ø)
create-directus-project 98.43% <ø> (ø)
env 99.67% <ø> (ø)
errors 97.47% <ø> (ø)
extensions 35.63% <ø> (ø)
extensions-registry 95.27% <ø> (ø)
extensions-sdk 14.33% <ø> (ø)
format-title 100.00% <ø> (ø)
memory 95.64% <ø> (ø)
pressure 77.63% <ø> (ø)
release-notes-generator 81.14% <ø> (ø)
schema-builder 81.42% <ø> (ø)
sdk 25.81% <ø> (-0.15%) ⬇️
storage 92.00% <ø> (ø)
storage-driver-azure 76.76% <ø> (ø)
storage-driver-cloudinary 81.14% <ø> (ø)
storage-driver-gcs 69.72% <ø> (ø)
storage-driver-local 69.76% <ø> (ø)
storage-driver-s3 52.04% <ø> (ø)
storage-driver-supabase 68.63% <ø> (ø)
system-data 71.42% <ø> (ø)
update-check 55.67% <ø> (ø)
utils 90.26% <ø> (ø)
validation 44.50% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a comparison toggle feature that allows users to compare a revision to either the previous revision or the latest version. The implementation includes a new ComparisonToggle component, enhances the comparison composable to support both modes, handles edge cases for the first revision, and removes the "Updated" badge from comparison fields.

Changes:

  • Added toggle UI to switch between "Previous" and "Latest" comparison modes
  • Enhanced comparison logic to fetch and display previous revision data
  • Added edge case handling for first revision and automatic mode switching

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
use-comparison.ts Added compareToOption parameter, findPreviousRevision and fetchRevisionData functions, and logic to build comparisons against previous revisions
use-comparison.test.ts Added comprehensive test coverage for both "Previous" and "Latest" comparison modes
comparison-toggle.vue New component providing toggle UI between "Previous" and "Latest" modes
comparison-modal.vue Integrated toggle component, added watchers for mode changes, and conditional rendering for Apply button and checkboxes
form-field-label.vue Removed "Updated" badge and adjusted checkbox visibility logic
types.ts Added previousRevision field to ComparisonData and comparingTo/mode to ComparisonContext
en-US.yaml Added new translation keys and removed unused ones
input-rich-text-html.vue Added comparisonEditorInitialized flag to prevent premature content updates
.changeset/eighty-zoos-tie.md Added changeset entry for the feature

Copy link
Member

@AlexGaillard AlexGaillard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alrighty, thanks for this. Just some simple thoughts and changes here.

@robluton robluton requested a review from formfcw January 23, 2026 16:40
Copy link
Contributor

@formfcw formfcw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @robluton ❤️

  • The bug mentioned here still occurs: #26480 (review)
  • The Apply button tooltip currently says “Compare to latest to consider restoring this revision.” When Latest is selected and the revision dropdown also selects the latest version, the Apply button is also disabled because the comparison is already against the latest revision. Let’s add a separate tooltip for this case, e.g. “Select an earlier revision to consider restoring this one.”

@robluton robluton requested a review from formfcw January 26, 2026 17:22
Copy link
Contributor

@formfcw formfcw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @robluton

There is another blocker and some minor things.

@robluton robluton requested a review from formfcw January 28, 2026 17:51
Copy link
Contributor

@formfcw formfcw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @robluton ❤️

LGTM 🎉

@AlexGaillard AlexGaillard merged commit 3c69d8c into main Jan 28, 2026
69 checks passed
@AlexGaillard AlexGaillard deleted the robl/prod-1978-add-mode-toggle-in-revisions-comparison branch January 28, 2026 20:59
@github-actions github-actions bot added this to the Next Release milestone Jan 28, 2026
alexlebens pushed a commit to alexlebens/infrastructure that referenced this pull request Feb 5, 2026
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [directus/directus](https://github.com/directus/directus) | minor | `11.14.1` → `11.15.0` |

---

### Release Notes

<details>
<summary>directus/directus (directus/directus)</summary>

### [`v11.15.0`](https://github.com/directus/directus/releases/tag/v11.15.0)

[Compare Source](directus/directus@v11.14.1...v11.15.0)

##### ⚠️ Potential Breaking Changes

**Attached prompts, content items, and visual editor elements to AI Assistant Context ([#&#8203;26512](directus/directus#26512) by [@&#8203;bryantgillespie](https://github.com/bryantgillespie))**
To use this feature, update [@&#8203;directus/visual-editing](https://github.com/directus/visual-editing) to v1.2.0+ on your website.

##### ✨ New Features & Improvements

- **[@&#8203;directus/app](https://github.com/directus/app)**
  - Added deployment module for triggering deployments from Directus with Vercel as first supported provider ([#&#8203;26473](directus/directus#26473) by [@&#8203;gaetansenn](https://github.com/gaetansenn))
  - Added collaborative editing ([#&#8203;26172](directus/directus#26172) by [@&#8203;Nitwel](https://github.com/Nitwel))
  - Attached prompts, content items, and visual editor elements to AI Assistant Context ([#&#8203;26512](directus/directus#26512) by [@&#8203;bryantgillespie](https://github.com/bryantgillespie))
  - Added multi-provider AI support with Google and OpenAI-compatible providers. Extracted shared AI types into new `@directus/ai` package. ([#&#8203;26481](directus/directus#26481) by [@&#8203;bryantgillespie](https://github.com/bryantgillespie))
  - Added toggle to allow comparing revision to previous revision ([#&#8203;26480](directus/directus#26480) by [@&#8203;robluton](https://github.com/robluton))
  - Added relational field support on x-axis of bar chart ([#&#8203;26489](directus/directus#26489) by [@&#8203;JamesW1](https://github.com/JamesW1))
  - Added visual editing support to the live preview split pane, including display options menu, full-width mode with drag-to-expand, and quick access to the Visual Editor module. ([#&#8203;26463](directus/directus#26463) by [@&#8203;bryantgillespie](https://github.com/bryantgillespie))
  - Changed permission-blocked fields from disabled to non-editable appearance ([#&#8203;26572](directus/directus#26572) by [@&#8203;HZooly](https://github.com/HZooly))
- **[@&#8203;directus/api](https://github.com/directus/api)**
  - Added deployment module for triggering deployments from Directus with Vercel as first supported provider ([#&#8203;26473](directus/directus#26473) by [@&#8203;gaetansenn](https://github.com/gaetansenn))
  - Added collaborative editing ([#&#8203;26172](directus/directus#26172) by [@&#8203;Nitwel](https://github.com/Nitwel))
  - Attached prompts, content items, and visual editor elements to AI Assistant Context ([#&#8203;26512](directus/directus#26512) by [@&#8203;bryantgillespie](https://github.com/bryantgillespie))
  - Added multi-provider AI support with Google and OpenAI-compatible providers. Extracted shared AI types into new `@directus/ai` package. ([#&#8203;26481](directus/directus#26481) by [@&#8203;bryantgillespie](https://github.com/bryantgillespie))
- **[@&#8203;directus/sdk](https://github.com/directus/sdk)**
  - Fixed race condition and allow accessing the connected state ([#&#8203;26511](directus/directus#26511) by [@&#8203;Nitwel](https://github.com/Nitwel))
  - Added deployment module for triggering deployments from Directus with Vercel as first supported provider ([#&#8203;26473](directus/directus#26473) by [@&#8203;gaetansenn](https://github.com/gaetansenn))
- **[@&#8203;directus/system-data](https://github.com/directus/system-data)**
  - Added deployment module for triggering deployments from Directus with Vercel as first supported provider ([#&#8203;26473](directus/directus#26473) by [@&#8203;gaetansenn](https://github.com/gaetansenn))
- **[@&#8203;directus/types](https://github.com/directus/types)**
  - Added deployment module for triggering deployments from Directus with Vercel as first supported provider ([#&#8203;26473](directus/directus#26473) by [@&#8203;gaetansenn](https://github.com/gaetansenn))
  - Added collaborative editing ([#&#8203;26172](directus/directus#26172) by [@&#8203;Nitwel](https://github.com/Nitwel))
  - Added multi-provider AI support with Google and OpenAI-compatible providers. Extracted shared AI types into new `@directus/ai` package. ([#&#8203;26481](directus/directus#26481) by [@&#8203;bryantgillespie](https://github.com/bryantgillespie))
- **[@&#8203;directus/errors](https://github.com/directus/errors)**
  - Added deployment module for triggering deployments from Directus with Vercel as first supported provider ([#&#8203;26473](directus/directus#26473) by [@&#8203;gaetansenn](https://github.com/gaetansenn))
- **[@&#8203;directus/env](https://github.com/directus/env)**
  - Added deployment module for triggering deployments from Directus with Vercel as first supported provider ([#&#8203;26473](directus/directus#26473) by [@&#8203;gaetansenn](https://github.com/gaetansenn))
  - Added collaborative editing ([#&#8203;26172](directus/directus#26172) by [@&#8203;Nitwel](https://github.com/Nitwel))
- **[@&#8203;directus/utils](https://github.com/directus/utils)**
  - Added collaborative editing ([#&#8203;26172](directus/directus#26172) by [@&#8203;Nitwel](https://github.com/Nitwel))
- **[@&#8203;directus/ai](https://github.com/directus/ai)**
  - Attached prompts, content items, and visual editor elements to AI Assistant Context ([#&#8203;26512](directus/directus#26512) by [@&#8203;bryantgillespie](https://github.com/bryantgillespie))
  - Added multi-provider AI support with Google and OpenAI-compatible providers. Extracted shared AI types into new `@directus/ai` package. ([#&#8203;26481](directus/directus#26481) by [@&#8203;bryantgillespie](https://github.com/bryantgillespie))
- **[@&#8203;directus/memory](https://github.com/directus/memory)**
  - Added distributed locking ([#&#8203;26172](directus/directus#26172) by [@&#8203;Nitwel](https://github.com/Nitwel))

##### 🐛 Bug Fixes & Optimizations

- **[@&#8203;directus/app](https://github.com/directus/app)**
  - Replaced deprecated `ldapjs` with `ldapts` ([#&#8203;26363](directus/directus#26363) by [@&#8203;dstockton](https://github.com/dstockton))
  - Fixed an issue where the caret would jump to the end of the input in `v-template-input` when typing or updating content. ([#&#8203;26520](directus/directus#26520) by [@&#8203;mustafaazad03](https://github.com/mustafaazad03))
  - Fixed back button navigation on related items ([#&#8203;26553](directus/directus#26553) by [@&#8203;robluton](https://github.com/robluton))
  - Fixed table options menu clipping in markdown editor ([#&#8203;26487](directus/directus#26487) by [@&#8203;DamnItAzriel](https://github.com/DamnItAzriel))
  - Hide AI settings page when MCP and AI features are disabled through ENV ([#&#8203;26504](directus/directus#26504) by [@&#8203;bryantgillespie](https://github.com/bryantgillespie))
  - Updated dependency ([#&#8203;26518](directus/directus#26518) by [@&#8203;rijkvanzanten](https://github.com/rijkvanzanten))
  - Fixed inconsistent disabled state across interfaces ([#&#8203;26470](directus/directus#26470) by [@&#8203;formfcw](https://github.com/formfcw))
  - Fixed an issue where custom CSS classes applied to PrivateView were not rendered ([#&#8203;26523](directus/directus#26523) by [@&#8203;u12206050](https://github.com/u12206050))
  - Fixed WYSIWYG interface not rendering when field is named "tooltip" ([#&#8203;26581](directus/directus#26581) by [@&#8203;robluton](https://github.com/robluton))
  - Fixed issue preventing sidebar details from being fetched when navigating back ([#&#8203;26542](directus/directus#26542) by [@&#8203;robluton](https://github.com/robluton))
  - Fixed Vue warning by passing required prop to interfaces ([#&#8203;26506](directus/directus#26506) by [@&#8203;formfcw](https://github.com/formfcw))
  - Fixed hardcoded "Loading..." text in field tree by using translation key ([#&#8203;26526](directus/directus#26526) by [@&#8203;sinan-yildiz-marsus](https://github.com/sinan-yildiz-marsus))
  - Renamed AI Chat to AI Assistant ([#&#8203;26517](directus/directus#26517) by [@&#8203;bryantgillespie](https://github.com/bryantgillespie))
- **[@&#8203;directus/api](https://github.com/directus/api)**
  - Improved error message for system field updates that are not schema.is\_indexed ([#&#8203;26548](directus/directus#26548) by [@&#8203;JamesW1](https://github.com/JamesW1))
  - Replaced deprecated `ldapjs` with `ldapts` ([#&#8203;26363](directus/directus#26363) by [@&#8203;dstockton](https://github.com/dstockton))
  - Changed users.last\_access display mode to absolute ([#&#8203;26548](directus/directus#26548) by [@&#8203;JamesW1](https://github.com/JamesW1))
- **[@&#8203;directus/system-data](https://github.com/directus/system-data)**
  - Added collaborative editing ([#&#8203;26172](directus/directus#26172) by [@&#8203;Nitwel](https://github.com/Nitwel))
  - Added multi-provider AI support with Google and OpenAI-compatible providers. Extracted shared AI types into new `@directus/ai` package. ([#&#8203;26481](directus/directus#26481) by [@&#8203;bryantgillespie](https://github.com/bryantgillespie))
  - Changed users.last\_access display mode to absolute ([#&#8203;26548](directus/directus#26548) by [@&#8203;JamesW1](https://github.com/JamesW1))
  - Renamed AI Chat to AI Assistant ([#&#8203;26517](directus/directus#26517) by [@&#8203;bryantgillespie](https://github.com/bryantgillespie))
- **[@&#8203;directus/env](https://github.com/directus/env)**
  - Fixed LDAP DN properties casted as arrays ([#&#8203;26579](directus/directus#26579) by [@&#8203;ComfortablyCoding](https://github.com/ComfortablyCoding))
- **[@&#8203;directus/memory](https://github.com/directus/memory)**
  - Handled empty buffers to prevent errors during race conditions or disconnects ([#&#8203;26172](directus/directus#26172) by [@&#8203;Nitwel](https://github.com/Nitwel))

##### 📦 Published Versions

- `@directus/[email protected]`
- `@directus/[email protected]`
- `@directus/[email protected]`
- `@directus/[email protected]`
- `[email protected]`
- `@directus/[email protected]`
- `@directus/[email protected]`
- `@directus/[email protected]`
- `@directus/[email protected]`
- `@directus/[email protected]`
- `@directus/[email protected]`
- `@directus/[email protected]`
- `@directus/[email protected]`
- `@directus/[email protected]`
- `@directus/[email protected]`
- `@directus/[email protected]`
- `@directus/storage-driver-s3@&#8203;12.1.1`
- `@directus/[email protected]`
- `@directus/[email protected]`
- `@directus/[email protected]`
- `@directus/[email protected]`
- `@directus/[email protected]`
- `@directus/[email protected]`
- `@directus/[email protected]`

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these updates again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4zLjYiLCJ1cGRhdGVkSW5WZXIiOiI0My4zLjYiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbImltYWdlIl19-->

Reviewed-on: https://gitea.alexlebens.dev/alexlebens/infrastructure/pulls/3752
Co-authored-by: Renovate Bot <[email protected]>
Co-committed-by: Renovate Bot <[email protected]>
AlexGaillard added a commit that referenced this pull request Feb 18, 2026
* create comparison toggle component and wire up basic functionality

* previous revision flow

* handle case when there are no previous revisions

* change header to reflect previous revision

* add "Compare to" label

* change default option

* add tooltip to Apply btn for Previous mode

* remove "Updated" badge from comparison modal form fields

* test coverage

* fix use-comparison tests

* remove new comparison modal integration tests - taking several seconds to load dependencies

* prevent Previous mode from interfering with version promotion

* wait for editor to initialize

* changeset

* prevent compare call when currentVersion has value but mode is revision

* test cases for Previous and Latest compareTo option

* feedback from Alex

* Format

* extract commmon watcher logic

* Update app/src/views/private/components/comparison/use-comparison.ts

Co-authored-by: Florian C. Wachmann <[email protected]>

* remove translation key for updated_in_revision

* Show latest for base date when not comparing Previous in revision mode

* fix broken tests

* style tweaks

* make sure toggle shows on small devices

* save state of selected compareTo option

* only save compareTo when revision selector is used

* utilize active prop for list items

* button position tweak

* fix issue causing base to show main item values when comparing first revision to base version

* cleanup revision sorting and add tooltip for lastest revision case

* add test cases for first and last revisions

* Update app/src/views/private/components/comparison/comparison-toggle.vue

Co-authored-by: Florian C. Wachmann <[email protected]>

* Update app/src/views/private/components/comparison/comparison-modal.vue

Co-authored-by: Florian C. Wachmann <[email protected]>

* Update app/src/views/private/components/comparison/comparison-toggle.vue

Co-authored-by: Florian C. Wachmann <[email protected]>

* remove comparingTo and mode from ComparisonContext

* restore buttons to previous size on large devices

* another fix for latest revision against version

* Update app/src/lang/translations/en-US.yaml

Co-authored-by: Florian C. Wachmann <[email protected]>

* Update app/src/components/v-form/components/form-field-label.vue

Co-authored-by: Florian C. Wachmann <[email protected]>

* move tooltip logic to computed

* use versionComparison.main as base for incoming

---------

Co-authored-by: Alex Gaillard <[email protected]>
Co-authored-by: Florian C. Wachmann <[email protected]>
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.

4 participants