-
Notifications
You must be signed in to change notification settings - Fork 402
[feat] Add manager capability feature flags #5063
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
Closed
christian-byrne
wants to merge
30
commits into
manager/menu-items-migration
from
feat/manager-capability-feature-flags
Closed
Changes from 25 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
b59ad87
migrate manager menu items
christian-byrne 37a5add
Update locales [skip ci]
invalid-email-address 2fc6ae0
switch to v2 manager API endpoints
christian-byrne aeb948a
re-arrange menu items
christian-byrne 799f13a
await promises. update settings schema
christian-byrne 0f282cc
move legacy option to startup arg
christian-byrne 5733156
Add banner indicating how to use legacy manager UI
christian-byrne b4e4f45
Update locales [skip ci]
invalid-email-address 3f598e4
add "Check for Updates", "Install Missing" menu items
christian-byrne f5744d2
Update locales [skip ci]
invalid-email-address becf55d
use correct response shape
christian-byrne 40bdc9f
improve command names
christian-byrne 450c3b0
dont show missing nodes button in legacy manager mode
christian-byrne 62a33a6
[Update to v2 API] update WS done message
christian-byrne a29019f
Update locales [skip ci]
invalid-email-address 84d6352
[fix] Fix json syntax error from rebase (#4607)
christian-byrne 2827e78
Fix errors from rebase (removed `Tag` component import and duplicated…
christian-byrne 2a8c474
Update locales [skip ci]
invalid-email-address 2cf4dab
[Manager] "Restarting" state after clicking restart button (#4637)
viva-jinyi 424f6de
[feat] Add reactive feature flags foundation (#4817)
christian-byrne 08f25dd
[feat] Add v2/ prefix to manager service base URL (#4872)
christian-byrne 574a1db
[cleanup] Remove unused manager route enums (#4875)
christian-byrne f82c4ce
[feat] Add manager capability feature flags
christian-byrne a257cd5
[feat] Add managerStateStore for three-state manager UI logic
christian-byrne 6bf9fa6
[feat] Address PR review comments for managerStateStore
christian-byrne 5fd1d17
[fix] Remove unnecessary @types/lodash dependency
christian-byrne 08a11d0
[fix] Replace lodash import with es-toolkit/compat in api.ts
christian-byrne f18c70b
[feat] Apply manager state handling to all entry points
christian-byrne 7e76637
[cleanup] Remove unnecessary comments and files
christian-byrne ceb54bb
[fix] Fix API URL prefix slash and add error handling
christian-byrne File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file modified
BIN
+2.57 KB
(100%)
...ts/tests/loadWorkflowInMedia.spec.ts-snapshots/workflow-avif-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,131 @@ | ||
| <template> | ||
| <div | ||
| class="inline-flex items-center justify-center" | ||
| :style="{ width: size + 'px', height: size + 'px' }" | ||
| > | ||
| <svg | ||
| xmlns="http://www.w3.org/2000/svg" | ||
| :width="size" | ||
| :height="size" | ||
| viewBox="0 0 14 14" | ||
| fill="none" | ||
| class="animate-spin" | ||
| :style="{ animationDuration: duration }" | ||
| > | ||
| <g clip-path="url(#clip0_776_9582)"> | ||
| <!-- Top dot --> | ||
| <path | ||
| class="dot-animation" | ||
| style="animation-delay: 0s" | ||
| fill-rule="evenodd" | ||
| clip-rule="evenodd" | ||
| d="M7 2.21053C7.61042 2.21053 8.10526 1.71568 8.10526 1.10526C8.10526 0.494843 7.61042 0 7 0C6.38958 0 5.89474 0.494843 5.89474 1.10526C5.89474 1.71568 6.38958 2.21053 7 2.21053Z" | ||
| :fill="color" | ||
| /> | ||
| <!-- Left dot --> | ||
| <path | ||
| class="dot-animation" | ||
| style="animation-delay: 0.25s" | ||
| fill-rule="evenodd" | ||
| clip-rule="evenodd" | ||
| d="M2.21053 7C2.21053 7.61042 1.71568 8.10526 1.10526 8.10526C0.494843 8.10526 0 7.61042 0 7C0 6.38958 0.494843 5.89474 1.10526 5.89474C1.71568 5.89474 2.21053 6.38958 2.21053 7Z" | ||
| :fill="color" | ||
| /> | ||
| <!-- Right dot --> | ||
| <path | ||
| class="dot-animation" | ||
| style="animation-delay: 0.5s" | ||
| fill-rule="evenodd" | ||
| clip-rule="evenodd" | ||
| d="M14 7C14 7.61042 13.5052 8.10526 12.8947 8.10526C12.2843 8.10526 11.7895 7.61042 11.7895 7C11.7895 6.38958 12.2843 5.89474 12.8947 5.89474C13.5052 5.89474 14 6.38958 14 7Z" | ||
| :fill="color" | ||
| /> | ||
| <!-- Bottom dot --> | ||
| <path | ||
| class="dot-animation" | ||
| style="animation-delay: 0.75s" | ||
| fill-rule="evenodd" | ||
| clip-rule="evenodd" | ||
| d="M8.10526 12.8947C8.10526 13.5052 7.61041 14 6.99999 14C6.38957 14 5.89473 13.5052 5.89473 12.8947C5.89473 12.2843 6.38957 11.7895 6.99999 11.7895C7.61041 11.7895 8.10526 12.2843 8.10526 12.8947Z" | ||
| :fill="color" | ||
| /> | ||
| <!-- Top-left dot --> | ||
| <path | ||
| class="dot-animation" | ||
| style="animation-delay: 0.125s" | ||
| fill-rule="evenodd" | ||
| clip-rule="evenodd" | ||
| d="M2.05039 3.61349C2.48203 4.04513 3.18184 4.04513 3.61347 3.61349C4.0451 3.18186 4.0451 2.48205 3.61347 2.05042C3.18184 1.61878 2.48203 1.61878 2.05039 2.05042C1.61876 2.48205 1.61876 3.18186 2.05039 3.61349Z" | ||
| :fill="color" | ||
| /> | ||
| <!-- Bottom-right dot --> | ||
| <path | ||
| class="dot-animation" | ||
| style="animation-delay: 0.625s" | ||
| fill-rule="evenodd" | ||
| clip-rule="evenodd" | ||
| d="M11.9496 11.9496C11.518 12.3812 10.8182 12.3812 10.3865 11.9496C9.9549 11.5179 9.9549 10.8181 10.3865 10.3865C10.8182 9.95485 11.518 9.95485 11.9496 10.3865C12.3812 10.8181 12.3812 11.5179 11.9496 11.9496Z" | ||
| :fill="color" | ||
| /> | ||
| <!-- Bottom-left dot --> | ||
| <path | ||
| class="dot-animation" | ||
| style="animation-delay: 0.875s" | ||
| fill-rule="evenodd" | ||
| clip-rule="evenodd" | ||
| d="M2.05039 11.9496C2.48203 12.3812 3.18184 12.3812 3.61347 11.9496C4.0451 11.5179 4.0451 10.8181 3.61347 10.3865C3.18184 9.95485 2.48203 9.95485 2.05039 10.3865C1.61876 10.8181 1.61876 11.5179 2.05039 11.9496Z" | ||
| :fill="color" | ||
| /> | ||
| <!-- Top-right dot --> | ||
| <path | ||
| class="dot-animation" | ||
| style="animation-delay: 0.375s" | ||
| fill-rule="evenodd" | ||
| clip-rule="evenodd" | ||
| d="M11.9496 3.61349C11.518 4.04513 10.8182 4.04513 10.3865 3.61349C9.9549 3.18186 9.9549 2.48205 10.3865 2.05042C10.8182 1.61878 11.518 1.61878 11.9496 2.05042C12.3812 2.48205 12.3812 3.18186 11.9496 3.61349Z" | ||
| :fill="color" | ||
| /> | ||
| </g> | ||
| <defs> | ||
| <clipPath id="clip0_776_9582"> | ||
| <rect width="14" height="14" fill="white" /> | ||
| </clipPath> | ||
| </defs> | ||
| </svg> | ||
| </div> | ||
| </template> | ||
|
|
||
| <script setup lang="ts"> | ||
| import { computed } from 'vue' | ||
|
|
||
| import { useColorPaletteStore } from '@/stores/workspace/colorPaletteStore' | ||
|
|
||
| const { size = 24, duration = '2s' } = defineProps<{ | ||
| size?: number | ||
| duration?: string | ||
| }>() | ||
|
|
||
| const colorPaletteStore = useColorPaletteStore() | ||
|
|
||
| const color = computed(() => | ||
| colorPaletteStore.completedActivePalette.light_theme ? '#2C2B30' : '#D4D4D4' | ||
| ) | ||
| </script> | ||
|
|
||
| <style scoped> | ||
| .dot-animation { | ||
| animation: dot-pulse 1s ease-in-out infinite; | ||
| } | ||
|
|
||
| @keyframes dot-pulse { | ||
| 0%, | ||
| 80%, | ||
| 100% { | ||
| opacity: 0.3; | ||
| } | ||
|
|
||
| 40% { | ||
| opacity: 1; | ||
| } | ||
| } | ||
| </style> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
82 changes: 82 additions & 0 deletions
82
src/components/dialog/content/manager/ManagerHeader.test.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,82 @@ | ||
| import { mount } from '@vue/test-utils' | ||
| import { createPinia } from 'pinia' | ||
| import PrimeVue from 'primevue/config' | ||
| import Tag from 'primevue/tag' | ||
| import Tooltip from 'primevue/tooltip' | ||
| import { describe, expect, it } from 'vitest' | ||
| import { createI18n } from 'vue-i18n' | ||
|
|
||
| import enMessages from '@/locales/en/main.json' | ||
|
|
||
| import ManagerHeader from './ManagerHeader.vue' | ||
|
|
||
| const i18n = createI18n({ | ||
| legacy: false, | ||
| locale: 'en', | ||
| messages: { | ||
| en: enMessages | ||
| } | ||
| }) | ||
|
|
||
| describe('ManagerHeader', () => { | ||
| const createWrapper = () => { | ||
| return mount(ManagerHeader, { | ||
| global: { | ||
| plugins: [createPinia(), PrimeVue, i18n], | ||
| directives: { | ||
| tooltip: Tooltip | ||
| }, | ||
| components: { | ||
| Tag | ||
| } | ||
| } | ||
| }) | ||
| } | ||
|
|
||
| it('renders the component title', () => { | ||
| const wrapper = createWrapper() | ||
|
|
||
| expect(wrapper.find('h2').text()).toBe( | ||
| enMessages.manager.discoverCommunityContent | ||
| ) | ||
| }) | ||
|
|
||
| it('displays the legacy manager UI tag', () => { | ||
| const wrapper = createWrapper() | ||
|
|
||
| const tag = wrapper.find('[data-pc-name="tag"]') | ||
| expect(tag.exists()).toBe(true) | ||
| expect(tag.text()).toContain(enMessages.manager.legacyManagerUI) | ||
| }) | ||
|
|
||
| it('applies info severity to the tag', () => { | ||
| const wrapper = createWrapper() | ||
|
|
||
| const tag = wrapper.find('[data-pc-name="tag"]') | ||
| expect(tag.classes()).toContain('p-tag-info') | ||
| }) | ||
|
|
||
| it('displays info icon in the tag', () => { | ||
| const wrapper = createWrapper() | ||
|
|
||
| const icon = wrapper.find('.pi-info-circle') | ||
| expect(icon.exists()).toBe(true) | ||
| }) | ||
|
|
||
| it('has cursor-help class on the tag', () => { | ||
| const wrapper = createWrapper() | ||
|
|
||
| const tag = wrapper.find('[data-pc-name="tag"]') | ||
| expect(tag.classes()).toContain('cursor-help') | ||
| }) | ||
|
|
||
| it('has proper structure with flex container', () => { | ||
| const wrapper = createWrapper() | ||
|
|
||
| const flexContainer = wrapper.find('.flex.justify-end.ml-auto.pr-4') | ||
| expect(flexContainer.exists()).toBe(true) | ||
|
|
||
| const tag = flexContainer.find('[data-pc-name="tag"]') | ||
| expect(tag.exists()).toBe(true) | ||
| }) | ||
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we use es-toolkit instead of lodash?