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

feat(editor): Workflow history [WIP] - Add cloned workflow link to success toast message (no-changelog) #7405

Merged
merged 3 commits into from
Oct 19, 2023

Conversation

cstuncsik
Copy link
Contributor

No description provided.

@github-actions
Copy link
Contributor

Great PR! Please pay attention to the following items before merging:

Files matching packages/**:

  • If fixing bug, added test to cover scenario.
  • If addressing forum or Github issue, added link to description.

Files matching packages/**/*.ts:

  • Added unit tests to cover new or updated functionality.

Files matching **/*.vue:

  • Used composition API for all new components.
  • Added component or unit tests to cover functionality.

Files matching packages/editor-ui/**/*.vue:

  • Added E2E if adding new features.
  • Used design system tokens (colors, spacings...) where possible.

Make sure to check off this list before asking for review.

@n8n-assistant n8n-assistant bot added n8n team Authored by the n8n team ui Enhancement in /editor-ui or /design-system labels Oct 11, 2023
@codecov
Copy link

codecov bot commented Oct 11, 2023

Codecov Report

Attention: 39 lines in your changes are missing coverage. Please review.

Comparison is base (2b075bf) 33.50% compared to head (edc1225) 33.51%.
Report is 18 commits behind head on master.

❗ Current head edc1225 differs from pull request most recent head 53852d5. Consider uploading reports for the commit 53852d5 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7405      +/-   ##
==========================================
+ Coverage   33.50%   33.51%   +0.01%     
==========================================
  Files        3389     3389              
  Lines      207020   207044      +24     
  Branches    22337    22340       +3     
==========================================
+ Hits        69361    69401      +40     
+ Misses     136538   136522      -16     
  Partials     1121     1121              
Files Coverage Δ
packages/editor-ui/src/composables/useToast.ts 67.87% <85.71%> (-0.58%) ⬇️
...ages/editor-ui/src/stores/workflowHistory.store.ts 46.07% <6.25%> (+1.73%) ⬆️
packages/editor-ui/src/views/WorkflowHistory.vue 72.35% <58.18%> (+6.34%) ⬆️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@ivov ivov left a comment

Choose a reason for hiding this comment

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

Code looks great! Findings:

  1. Cloned workflow is missing pinned data and tags. Not sure if intended.
  2. Cloned workflow should have same version history as original workflow up to this point? It's rather confusing to see no versions when looking at the resulting workflow.
  3. Cloning a workflow twice (in a row, or after a while) triggers this error. I'd expect us to handle it like workflow duplication.
  4. Cloning a cloned workflow results in weird naming.
  5. Cloning an active workflow deactivates the copy. Maybe we should clarify.
  6. Toast for Successfully cloned workflow version does not clear when navigating away. Not sure if intended.

@cstuncsik
Copy link
Contributor Author

Fixed number 3. the rest are more like design question (either graphic or functional)

@cstuncsik cstuncsik requested a review from ivov October 13, 2023 12:22
@cstuncsik cstuncsik removed the request for review from krynble October 19, 2023 11:55
@cypress
Copy link

cypress bot commented Oct 19, 2023

Passing run #2517 ↗︎

0 251 0 0 Flakiness 0

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 cstuncsik 🗃️ e2e/*
Project: n8n Commit: 53852d5055
Status: Passed Duration: 09:45 💡
Started: Oct 19, 2023 11:52 AM Ended: Oct 19, 2023 12:02 PM

Review all test suite changes for PR #7405 ↗︎

@github-actions
Copy link
Contributor

✅ All Cypress E2E specs passed

@cstuncsik cstuncsik merged commit 8212969 into master Oct 19, 2023
54 checks passed
@cstuncsik cstuncsik deleted the pay-884-ux-clone-to-a-new-version-is-not-clear branch October 19, 2023 12:03
MiloradFilipovic added a commit that referenced this pull request Oct 19, 2023
* master:
  refactor(core): Make executions pruning settings configurable (#7468)
  feat(editor): Workflow history [WIP] - Remove pinned data from workflow history version preview (no-changelog) (#7406)
  feat(editor): Workflow history [WIP] - Add cloned workflow link to success toast message (no-changelog) (#7405)
  fix(core): Do not return `inviteAcceptUrl` in response if email was sent (#7465)
  fix(Google Sheets Node): Append or update runs forever when without column headers (#7463)
@janober
Copy link
Member

janober commented Oct 25, 2023

Got released with [email protected]

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