Skip to content

Commit 48f76ae

Browse files
committed
Merge branch 'main' into select-node-after-drag
2 parents 7dc615b + b2ea7b4 commit 48f76ae

File tree

237 files changed

+2574
-914
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

237 files changed

+2574
-914
lines changed

.github/workflows/update-locales.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ jobs:
1414
if: github.event_name == 'workflow_dispatch' || (github.event.pull_request.head.repo.full_name == github.repository && startsWith(github.head_ref, 'version-bump-'))
1515
runs-on: ubuntu-latest
1616
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v5
19+
1720
- name: Setup Frontend
1821
uses: ./.github/actions/setup-frontend
1922

.github/workflows/update-playwright-expectations.yaml

Lines changed: 50 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -3,42 +3,58 @@ name: Update Playwright Expectations
33

44
on:
55
pull_request:
6-
types: [ labeled ]
6+
types: [labeled]
7+
issue_comment:
8+
types: [created]
79

810
jobs:
911
test:
1012
runs-on: ubuntu-latest
11-
if: github.event.label.name == 'New Browser Test Expectations'
13+
if: >
14+
( github.event_name == 'pull_request' && github.event.label.name == 'New Browser Test Expectations' ) ||
15+
( github.event.issue.pull_request &&
16+
github.event_name == 'issue_comment' &&
17+
(
18+
github.event.comment.author_association == 'OWNER' ||
19+
github.event.comment.author_association == 'MEMBER' ||
20+
github.event.comment.author_association == 'COLLABORATOR'
21+
) &&
22+
startsWith(github.event.comment.body, '/update-playwright') )
1223
steps:
13-
- name: Checkout workflow repo
14-
uses: actions/checkout@v5
15-
- name: Setup Frontend
16-
uses: ./.github/actions/setup-frontend
17-
- name: Setup Playwright
18-
uses: ./.github/actions/setup-playwright
19-
- name: Run Playwright tests and update snapshots
20-
id: playwright-tests
21-
run: pnpm exec playwright test --update-snapshots
22-
continue-on-error: true
23-
working-directory: ComfyUI_frontend
24-
- uses: actions/upload-artifact@v4
25-
if: always()
26-
with:
27-
name: playwright-report
28-
path: ComfyUI_frontend/playwright-report/
29-
retention-days: 30
30-
- name: Debugging info
31-
run: |
32-
echo "Branch: ${{ github.head_ref }}"
33-
git status
34-
working-directory: ComfyUI_frontend
35-
- name: Commit updated expectations
36-
run: |
37-
git config --global user.name 'github-actions'
38-
git config --global user.email '[email protected]'
39-
git fetch origin ${{ github.head_ref }}
40-
git checkout -B ${{ github.head_ref }} origin/${{ github.head_ref }}
41-
git add browser_tests
42-
git commit -m "[automated] Update test expectations"
43-
git push origin HEAD:${{ github.head_ref }}
44-
working-directory: ComfyUI_frontend
24+
- name: Initial Checkout
25+
uses: actions/checkout@v5
26+
- name: Pull Request Checkout
27+
run: gh pr checkout ${{ github.event.issue.number }}
28+
if: github.event.issue.pull_request && github.event_name == 'issue_comment'
29+
env:
30+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
- name: Setup Frontend
32+
uses: ./.github/actions/setup-frontend
33+
- name: Setup Playwright
34+
uses: ./.github/actions/setup-playwright
35+
- name: Run Playwright tests and update snapshots
36+
id: playwright-tests
37+
run: pnpm exec playwright test --update-snapshots
38+
continue-on-error: true
39+
working-directory: ComfyUI_frontend
40+
- uses: actions/upload-artifact@v4
41+
if: always()
42+
with:
43+
name: playwright-report
44+
path: ComfyUI_frontend/playwright-report/
45+
retention-days: 30
46+
- name: Debugging info
47+
run: |
48+
echo "PR: ${{ github.event.issue.number }}"
49+
git status
50+
working-directory: ComfyUI_frontend
51+
- name: Commit updated expectations
52+
run: |
53+
git config --global user.name 'github-actions'
54+
git config --global user.email '[email protected]'
55+
git add browser_tests
56+
git diff --cached --quiet || git commit -m "[automated] Update test expectations"
57+
git push
58+
env:
59+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60+
working-directory: ComfyUI_frontend

.storybook/README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,18 +211,17 @@ This Storybook setup includes:
211211

212212
## Icon Usage in Storybook
213213

214-
In this project, the `<i-lucide:... />` syntax from unplugin-icons is not supported in Storybook.
214+
In this project, only the `<i class="icon-[lucide--folder]" />` syntax from unplugin-icons is supported in Storybook.
215215

216216
**Example:**
217217

218218
```vue
219219
<script setup lang="ts">
220-
import { Trophy, Settings } from 'lucide-vue-next'
221220
</script>
222221
223222
<template>
224-
<Trophy :size="16" class="text-neutral" />
225-
<Settings :size="16" class="text-neutral" />
223+
<i class="icon-[lucide--trophy] text-neutral size-4" />
224+
<i class="icon-[lucide--settings] text-neutral size-4" />
226225
</template>
227226
```
228227

.stylelintrc.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
}
88
],
99
"rules": {
10-
"import-notation": "url",
10+
"import-notation": "string",
1111
"font-family-no-missing-generic-family-keyword": true,
12-
"declaration-block-no-redundant-longhand-properties": true,
1312
"declaration-property-value-no-unknown": [
1413
true,
1514
{
1615
"ignoreProperties": {
1716
"speak": ["none"],
18-
"app-region": ["drag", "no-drag"]
17+
"app-region": ["drag", "no-drag"],
18+
"/^(width|height)$/": ["/^v-bind/"]
1919
}
2020
}
2121
],
@@ -35,7 +35,7 @@
3535
"selector-max-type": 2,
3636
"declaration-block-no-duplicate-properties": true,
3737
"block-no-empty": true,
38-
"no-descending-specificity": true,
38+
"no-descending-specificity": null,
3939
"no-duplicate-at-import-rules": true,
4040
"at-rule-no-unknown": [
4141
true,
@@ -57,7 +57,8 @@
5757
true,
5858
{
5959
"ignoreFunctions": [
60-
"theme"
60+
"theme",
61+
"v-bind"
6162
]
6263
}
6364
]

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ pnpm format
255255
The project supports three types of icons, all with automatic imports (no manual imports needed):
256256

257257
1. **PrimeIcons** - Built-in PrimeVue icons using CSS classes: `<i class="pi pi-plus" />`
258-
2. **Iconify Icons** - 200,000+ icons from various libraries: `<i-lucide:settings />`, `<i-mdi:folder />`
258+
2. **Iconify Icons** - 200,000+ icons from various libraries: `<i class="icon-[lucide--settings]" />`, `<i class="icon-[mdi--folder]" />`
259259
3. **Custom Icons** - Your own SVG icons: `<i-comfy:workflow />`
260260

261261
Icons are powered by the unplugin-icons system, which automatically discovers and imports icons as Vue components. Custom icons are stored in `packages/design-system/src/icons/` and processed by `packages/design-system/src/iconCollection.ts` with automatic validation.

apps/desktop-ui/src/components/install/GpuPicker.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
:value="$t('install.gpuPicker.recommended')"
5454
class="bg-neutral-300 text-neutral-900 rounded-full text-sm font-bold px-2 py-[1px]"
5555
/>
56-
<i-lucide:badge-check class="text-neutral-300 text-lg" />
56+
<i class="icon-[lucide--badge-check] text-neutral-300 text-lg" />
5757
</div>
5858
</div>
5959

apps/desktop-ui/src/components/install/InstallLocationPicker.vue

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,12 @@ const onFocus = async () => {
286286
.p-accordionheader {
287287
@apply rounded-t-xl rounded-b-none;
288288
}
289+
290+
.p-accordionheader-toggle-icon {
291+
&::before {
292+
content: '\e902';
293+
}
294+
}
289295
}
290296
291297
.p-accordioncontent {
@@ -302,13 +308,5 @@ const onFocus = async () => {
302308
content: '\e933';
303309
}
304310
}
305-
306-
.p-accordionpanel-active {
307-
.p-accordionheader-toggle-icon {
308-
&::before {
309-
content: '\e902';
310-
}
311-
}
312-
}
313311
}
314312
</style>

apps/desktop-ui/src/views/DesktopUpdateView.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ onUnmounted(() => electron.Validation.dispose())
6565
6666
.download-bg::before {
6767
@apply m-0 absolute text-muted;
68-
font-family: 'primeicons';
68+
font-family: 'primeicons', sans-serif;
6969
top: -2rem;
7070
right: 2rem;
7171
speak: none;
7272
font-style: normal;
73-
font-weight: normal;
73+
font-weight: 400;
7474
font-variant: normal;
7575
text-transform: none;
7676
line-height: 1;

apps/desktop-ui/src/views/MaintenanceView.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,12 @@ onUnmounted(() => electron.Validation.dispose())
186186
187187
.backspan::before {
188188
@apply m-0 absolute text-muted;
189-
font-family: 'primeicons';
189+
font-family: 'primeicons', sans-serif;
190190
top: -2rem;
191191
right: -2rem;
192192
speak: none;
193193
font-style: normal;
194-
font-weight: normal;
194+
font-weight: 400;
195195
font-variant: normal;
196196
text-transform: none;
197197
line-height: 1;

apps/desktop-ui/src/views/ServerStartView.vue

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@
1818
style="
1919
background: radial-gradient(
2020
ellipse 800px 600px at center,
21-
rgba(23, 23, 23, 0.95) 0%,
22-
rgba(23, 23, 23, 0.93) 10%,
23-
rgba(23, 23, 23, 0.9) 20%,
24-
rgba(23, 23, 23, 0.85) 30%,
25-
rgba(23, 23, 23, 0.75) 40%,
26-
rgba(23, 23, 23, 0.6) 50%,
27-
rgba(23, 23, 23, 0.4) 60%,
28-
rgba(23, 23, 23, 0.2) 70%,
29-
rgba(23, 23, 23, 0.1) 80%,
30-
rgba(23, 23, 23, 0.05) 90%,
21+
rgb(23 23 23 / 0.95) 0%,
22+
rgb(23 23 23 / 0.93) 10%,
23+
rgb(23 23 23 / 0.9) 20%,
24+
rgb(23 23 23 / 0.85) 30%,
25+
rgb(23 23 23 / 0.75) 40%,
26+
rgb(23 23 23 / 0.6) 50%,
27+
rgb(23 23 23 / 0.4) 60%,
28+
rgb(23 23 23 / 0.2) 70%,
29+
rgb(23 23 23 / 0.1) 80%,
30+
rgb(23 23 23 / 0.05) 90%,
3131
transparent 100%
3232
);
3333
"

0 commit comments

Comments
 (0)