Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(editor): Commit theme change from Save button #9619

Merged

Conversation

tomi
Copy link
Contributor

@tomi tomi commented Jun 4, 2024

Summary

For consistent UX, don't commit the selected theme until user
clicks save. Otherwise the UI behaves differently depending
which input elements are touched.

For next steps, we can sync the selected theme to the backend instead of storing it in the local storage.

Before:

Kapture.2024-06-04.at.16.14.34.mp4

After:

Kapture.2024-06-04.at.16.12.33.mp4

Related tickets and issues

https://linear.app/n8n/issue/ADO-1495/no-indication-of-editor-theme-setting-auto-saved

Review / Merge checklist

  • PR title and summary are descriptive. Remember, the title automatically goes into the changelog. Use (no-changelog) otherwise. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.

    A bug is not considered fixed, unless a test is added to prevent it from happening again.
    A feature is not complete without tests.

For consistent UX, don't commit the selected theme until user
clicks save. Otherwise the UI behaves differently depending
which input elements are touched.
@tomi tomi force-pushed the ado-1495-no-indication-of-editor-theme-setting-auto-saved branch from 6f4e6f7 to e61c35f Compare June 4, 2024 13:18
@n8n-assistant n8n-assistant bot added n8n team Authored by the n8n team ui Enhancement in /editor-ui or /design-system labels Jun 4, 2024
Copy link
Contributor

@RicardoE105 RicardoE105 left a comment

Choose a reason for hiding this comment

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

👏

Copy link
Contributor

github-actions bot commented Jun 5, 2024

✅ All Cypress E2E specs passed

Copy link

cypress bot commented Jun 5, 2024

2 flaky tests on run #5311 ↗︎

0 356 0 0 Flakiness 2

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 tomi 🗃️ e2e/*
Project: n8n Commit: e61c35f9be
Status: Passed Duration: 04:34 💡
Started: Jun 5, 2024 2:50 AM Ended: Jun 5, 2024 2:54 AM
Flakiness  5-ndv.cy.ts • 1 flaky test

View Output Video

Test Artifacts
NDV > should not retrieve remote options when required params throw errors Screenshots Video
Flakiness  24-ndv-paired-item.cy.ts • 1 flaky test

View Output Video

Test Artifacts
NDV > resolves expression with default item when input node is not parent, while still pairing items Test Replay Screenshots Video

Review all test suite changes for PR #9619 ↗︎

@tomi tomi changed the title feat(editor): Commit theme change from Save button fix(editor): Commit theme change from Save button Jun 5, 2024
@tomi tomi merged commit 744c94d into master Jun 5, 2024
29 checks passed
@tomi tomi deleted the ado-1495-no-indication-of-editor-theme-setting-auto-saved branch June 5, 2024 06:38
@github-actions github-actions bot mentioned this pull request Jun 5, 2024
@janober
Copy link
Member

janober commented Jun 5, 2024

Got released with n8n@1.45.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
n8n team Authored by the n8n team Released ui Enhancement in /editor-ui or /design-system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants