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

refactor(editor): Turn showMessage mixin to composable #6081

Merged
merged 17 commits into from
May 12, 2023

Conversation

cstuncsik
Copy link
Contributor

No description provided.

@github-actions
Copy link
Contributor

github-actions bot commented Apr 24, 2023

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 **/*.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 Apr 24, 2023
@cstuncsik cstuncsik marked this pull request as ready for review May 8, 2023 08:13
@codecov
Copy link

codecov bot commented May 8, 2023

Codecov Report

❗ No coverage uploaded for pull request base (master@823e885). Click here to learn what that means.
Patch coverage: 19.45% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #6081   +/-   ##
=========================================
  Coverage          ?   27.58%           
=========================================
  Files             ?     2937           
  Lines             ?   180056           
  Branches          ?    19550           
=========================================
  Hits              ?    49672           
  Misses            ?   129653           
  Partials          ?      731           
Impacted Files Coverage Δ
packages/editor-ui/src/App.vue 0.00% <0.00%> (ø)
...s/editor-ui/src/components/ChangePasswordModal.vue 0.00% <0.00%> (ø)
...ui/src/components/CommunityPackageInstallModal.vue 0.00% <0.00%> (ø)
.../components/CommunityPackageManageConfirmModal.vue 0.00% <0.00%> (ø)
...es/editor-ui/src/components/ContactPromptModal.vue 0.00% <0.00%> (ø)
...i/src/components/CredentialEdit/CredentialEdit.vue 0.00% <0.00%> (ø)
...components/CredentialEdit/CredentialSharing.ee.vue 0.00% <0.00%> (ø)
...kages/editor-ui/src/components/DeleteUserModal.vue 0.00% <0.00%> (ø)
...itor-ui/src/components/DuplicateWorkflowDialog.vue 0.00% <0.00%> (ø)
...kages/editor-ui/src/components/ImportCurlModal.vue 0.00% <0.00%> (ø)
... and 62 more

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@cstuncsik cstuncsik requested a review from ivov May 9, 2023 12:33
ivov
ivov previously approved these changes May 10, 2023
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.

Nice work! A few comments but nothing too important. I take it that fallbackLinkUrl, getStateIsDirty, webhookProdUrl and hasActiveWorkflows were all unused.

packages/editor-ui/src/composables/useToast.ts Outdated Show resolved Hide resolved
packages/editor-ui/src/composables/useToast.ts Outdated Show resolved Hide resolved
packages/editor-ui/src/mixins/pushConnection.ts Outdated Show resolved Hide resolved
@github-actions
Copy link
Contributor

⚠️ Some Cypress E2E specs are failing, please fix them before merging

# Conflicts:
#	packages/editor-ui/src/components/CredentialCard.vue
#	packages/editor-ui/src/components/SettingsLogStreaming/EventDestinationCard.ee.vue
#	packages/editor-ui/src/components/SettingsLogStreaming/EventDestinationSettingsModal.ee.vue
#	packages/editor-ui/src/components/WorkflowShareModal.ee.vue
#	packages/editor-ui/src/mixins/pushConnection.ts
#	packages/editor-ui/src/mixins/showMessage.ts
#	packages/editor-ui/src/views/NodeView.vue
#	packages/editor-ui/src/views/SettingsApiView.vue
#	packages/editor-ui/src/views/SetupView.vue
#	packages/editor-ui/src/views/SignupView.vue
@cstuncsik cstuncsik requested a review from ivov May 12, 2023 05:01
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.

LGTM! Found one minimal thing but feel free to merge!

@cstuncsik cstuncsik merged commit b95fcd7 into master May 12, 2023
@cstuncsik cstuncsik deleted the n8n-6358-showmessage branch May 12, 2023 08:13
@github-actions
Copy link
Contributor

⚠️ Some Cypress E2E specs are failing, please fix them before merging

cstuncsik added a commit that referenced this pull request May 12, 2023
cstuncsik added a commit that referenced this pull request May 12, 2023
Revert "refactor(editor): Turn showMessage mixin to composable (#6081)"

This reverts commit b95fcd7.
cstuncsik added a commit that referenced this pull request May 12, 2023
Revert "refactor(editor): Turn showMessage mixin to composable (#6081)"

This reverts commit b95fcd7.
cstuncsik added a commit that referenced this pull request May 12, 2023
* refactor(editor): move $getExecutionError from showMessages mixin to pushConnection (it is used there only)

* refactor(editor): resolve showMessage mixin methods

* fix(editor): use composable instead of mixin

* fix(editor): resolve conflicts

* fix(editor): replace clearAllStickyNotifications

* fix(editor): replace confirmMessage

* fix(editor): replace confirmMessage

* fix(editor): replace confirmMessage

* fix(editor): remove last confirmMessage usage

* fix(editor): remove $prompt usage

* fix(editor): remove $show methods

* fix(editor): lint fix

* fix(editor): lint fix

* fix(editor): fixes after review
alexgrozav added a commit that referenced this pull request May 15, 2023
* refactor(editor): Turn showMessage mixin to composable (#6081)

* refactor(editor): move $getExecutionError from showMessages mixin to pushConnection (it is used there only)

* refactor(editor): resolve showMessage mixin methods

* fix(editor): use composable instead of mixin

* fix(editor): resolve conflicts

* fix(editor): replace clearAllStickyNotifications

* fix(editor): replace confirmMessage

* fix(editor): replace confirmMessage

* fix(editor): replace confirmMessage

* fix(editor): remove last confirmMessage usage

* fix(editor): remove $prompt usage

* fix(editor): remove $show methods

* fix(editor): lint fix

* fix(editor): lint fix

* fix(editor): fixes after review

* fix(editor): Fix external hook call in App

* fix(editor): mixins & composables

* fix: add pushConnection setup composables to components as well

* fix(editor): mixins & composables

* fix(editor): mixins & composables

* fix: add void on non-await async calls

* fix: fix close without connecting confirmation

* fix: remove .only

---------

Co-authored-by: Alex Grozav <[email protected]>
MiloradFilipovic added a commit that referenced this pull request May 16, 2023
* master: (22 commits)
  fix: Remove workflow execution credential error message when instance owner (#6116)
  refactor(editor): Drop vue-typed-mixins (no-changelog) (#6257)
  feat(core): Return OAuth2 error body if available (#5794)
  fix: Add itemSize config to workflows view recycle scroller (no-changelog) (#6238)
  fix(editor): Fix close and cancel operations on useMessage (no-changelog) (#6260)
  feat(editor): Add cloud ExecutionsUsage and API blocking using licenses (#6159)
  refactor(editor): Turn showMessage mixin to composable (#6081) (#6244)
  feat(core): Add experimental proxy support to License-SDK (no-changelog) (#6253)
  feat(core): Reduce the number of events sent to Sentry (#6235)
  feat(editor): Drop support for legacy browsers that do not have native ESM support (#6239)
  refactor(editor): Add missing interface IUserListAction (no-changelog) (#6241)
  ci: Debug e2e pipeline (no-changelog) (#6240)
  Revert "refactor(editor): Turn showMessage mixin to composable" (#6243)
  feat(editor): Updating node reference pattern in expression editor (#6228)
  refactor(editor): Remove unused dependencies (no-changelog) (#6223)
  refactor(editor): Turn showMessage mixin to composable (#6081)
  feat(editor): Version Control settings update (WIP) (#6233)
  ci: Fix linting issue on master (no-changelog) (#6232)
  fix: Prevent type error messages for manual executions (no-changelog) (#6229)
  fix(Code Node): Restore help text (#6231)
  ...
@janober
Copy link
Member

janober commented May 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