-
Notifications
You must be signed in to change notification settings - Fork 302
feat: template version display #4094
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
base: main
Are you sure you want to change the base?
Conversation
Can you please check the failed test, and make a (very brief) note of what caused it? |
I think my Playwright test failed because it couldn’t find the element in the about settings. Let me rewrite the test. |
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.
The code style looks great. My only concern is that I think this can be done with much less code by extending an existing API (mentioned on core review).
reopen |
src/stores/aboutPanelStore.ts
Outdated
const coreVersion = computed( | ||
() => systemStatsStore?.systemStats?.system?.comfyui_version ?? '' | ||
) | ||
const workflowsTemplatesVersion = computed( | ||
() => | ||
systemStatsStore?.systemStats?.system?.workflows_templates_version ?? '' |
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.
It looks like this is making two API calls now.
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.
hmm. I will double check and fix it later.
simplify computed version access with shared system reference
vite.config.mts
Outdated
'/templates_version': { | ||
target: DEV_SERVER_COMFYUI_URL | ||
}, |
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.
Why is this still here?
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.
Just deleted
Fixes #4006
Key Changes
Version Fetching: In aboutPanelStore.ts, the templateVersionStore is used to asynchronously fetch the version of workflow_templates.
UI Update: A new badge is added to the coreBadges computed property in aboutPanelStore.ts to display the fetched version.
Link Addition: The badge not only shows the version but also links directly to the Comfy-Org/workflow_templates GitHub repo for quick access to the source code and changelog.

┆Issue is synchronized with this [Notion page] by Unito