Skip to content

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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Conversation

yiqun12
Copy link

@yiqun12 yiqun12 commented Jun 7, 2025

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.
image (3)

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

@yiqun12 yiqun12 requested review from a team as code owners June 7, 2025 21:17
@webfiltered
Copy link
Contributor

Can you please check the failed test, and make a (very brief) note of what caused it?

@yiqun12
Copy link
Author

yiqun12 commented Jun 7, 2025

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.

Copy link
Contributor

@webfiltered webfiltered left a 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).

@yiqun12 yiqun12 changed the title feat: template version display Fixes #4006 feat: template version display Jun 7, 2025
@yiqun12 yiqun12 changed the title Fixes #4006 feat: template version display feat: template version display Jun 7, 2025
@yiqun12 yiqun12 closed this Jun 7, 2025
@yiqun12 yiqun12 deleted the feat/template-version-setting branch June 7, 2025 23:15
@yiqun12 yiqun12 restored the feat/template-version-setting branch June 7, 2025 23:21
@yiqun12
Copy link
Author

yiqun12 commented Jun 7, 2025

reopen

@yiqun12 yiqun12 reopened this Jun 7, 2025
const coreVersion = computed(
() => systemStatsStore?.systemStats?.system?.comfyui_version ?? ''
)
const workflowsTemplatesVersion = computed(
() =>
systemStatsStore?.systemStats?.system?.workflows_templates_version ?? ''
Copy link
Contributor

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.

Copy link
Author

@yiqun12 yiqun12 Jun 8, 2025

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
Comment on lines 34 to 36
'/templates_version': {
target: DEV_SERVER_COMFYUI_URL
},
Copy link
Contributor

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?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just deleted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request]: Show the template version in the setting menu.
3 participants