n8n/packages/design-system/src
Ricardo Espinoza cd7c312fbd
feat(editor): Add cloud ExecutionsUsage and API blocking using licenses (#6159)
* Add ExecutionsUsage component

* set $sidebar-expanded-width back to 200px

* add days using interpolation

* Rename PlanData type to CloudPlanData

* Rename Metadata type to PlanMetadata

* Make prop block in the update button

* Use variable in line-height

* Remove progressBarSection class

* fix trial expiration calculation

* mock expirationDate and fix issue with days left

* Remove unnecesary property from class .container

* inject component data via props

* Check for plan data during app mounting and keep data in the store

* Remove mounted hook

* redirect when upgrade plan is clicked

* Remove computed properties

* Remove instance property as it's not needed anymore

* Flatten plan object

* remove console.log

* Add all cloud types within its own namespace

* keep redirection inside component

* get computed properties back

* Improve polling logic

* Move cloudData to its own store

* Remove commented interfaces

* remove cloudPlan from user store

* fix imports

* update logic for userIsTrialing method

* centralize userIsTrialing method

* redirect to production change plan page always

* Call staging or production cloud api depending on base URL

* remove setting store form ExecutionUsage.vue

* fix linting issue

* Add trial group to PlanMetadata group

* Move helpers into the store

* make staging url check more specific

* make cloud state nullable

* fix linting issue

* swap mockup date for endpoint

* Make getCurrentPlan async

* asas

* Improvements

* small improvements

* chore: resolve conflicts

* make sure there is data before calculating trial expiration

* Fix issue with component not loading on first page load

* type safety improvements

* apply component ui feedback

* fix linting issue

* chore: clean up unnecessary change from merge conflict

* feat: Block api feature using licenses, show notice page for trial cloud users (#6187)

* rename planSpec to plan

* Remove instance property as it's not needed anymore

* Flatten plan object

* remove console.log

* feat: disable api using license

* feat: add api page

* chore: resolve conflicts

* chore: resolve conflicts

* feat: update and refactor a bit

* fix: update endpoints

* fix: update endpoints

* fix: use host

* feat: update copy

* fix linting issues

---------

Co-authored-by: ricardo <ricardoespinoza105@gmail.com>

* add pluralization to days left text

---------

Co-authored-by: Mutasem <mutdmour@gmail.com>
Co-authored-by: Mutasem Aldmour <4711238+mutdmour@users.noreply.github.com>
2023-05-15 17:16:13 -04:00
..
__tests__ test(editor): Add first frontend unit-test and update notice component design (#3166) 2022-04-29 15:23:41 +02:00
components feat(editor): Add cloud ExecutionsUsage and API blocking using licenses (#6159) 2023-05-15 17:16:13 -04:00
composables feat: Add basic Datatable and Pagination components (#5652) 2023-03-15 18:52:02 +02:00
css refactor(editor): Replace monaco-editor/prismjs with CodeMirror (#5983) 2023-04-25 16:57:21 +02:00
docs fix(editor): Update and fix storybook (was failing to run in local dev mode) (#6180) 2023-05-04 17:43:58 +02:00
locale feat: Replace Vue.extend with defineComponent in design system (no-changelog) (#5918) 2023-04-12 17:39:45 +03:00
mixins test(editor): Add first frontend unit-test and update notice component design (#3166) 2022-04-29 15:23:41 +02:00
styleguide refactor: Integrate consistent-type-imports in FE packages (no-changelog) (#6060) 2023-04-24 12:18:24 +02:00
types refactor: Integrate consistent-type-imports in FE packages (no-changelog) (#6060) 2023-04-24 12:18:24 +02:00
utils feat: Replace Vue.extend with defineComponent in design system (no-changelog) (#5918) 2023-04-12 17:39:45 +03:00
main.ts feat: Replace this.$refs.refName as Vue with InstanceType<T> (no-changelog) (#6050) 2023-04-21 16:59:04 +03:00
plugin.ts feat(editor): Add color picker design system component (#6179) 2023-05-11 15:28:05 +02:00
shims-markdown-it.d.ts feat: Replace Vue.extend with defineComponent in design system (no-changelog) (#5918) 2023-04-12 17:39:45 +03:00
shims-types.d.ts feat: Replace new Vue() with custom event bus (no-changelog) (#5780) 2023-04-06 16:32:45 +03:00
shims-vue.d.ts Implement design system (#2050) 2021-08-29 13:36:17 +02:00
shims-vue2-boring-avatars.d.ts Fix all type errors in design system (#3956) 2022-08-29 12:21:40 +02:00
utils.scss feat: Add User Management (#2636) 2022-03-14 14:46:32 +01:00