Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions invokeai/frontend/web/public/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1985,6 +1985,7 @@
"allLoaded": "All Workflows Loaded",
"searchPlaceholder": "Search by name, description or tags",
"filterByTags": "Filter by Tags",
"tags": "Tags",
"yourWorkflows": "Your Workflows",
"recentlyOpened": "Recently Opened",
"noRecentWorkflows": "No Recent Workflows",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@ export const WorkflowListItem = memo(({ workflow }: { workflow: WorkflowRecordLi
return workflowId === workflow.workflow_id;
}, [workflowId, workflow.workflow_id]);

const tags = useMemo(() => {
if (!workflow.tags) {
return [];
}
return workflow.tags
.split(',')
.map((tag) => tag.trim())
.filter((tag) => tag.length > 0);
}, [workflow.tags]);

const handleClickLoad = useCallback(() => {
loadWorkflowWithDialog({
type: 'library',
Expand Down Expand Up @@ -109,6 +119,16 @@ export const WorkflowListItem = memo(({ workflow }: { workflow: WorkflowRecordLi
<Text variant="subtext" fontSize="xs" noOfLines={3}>
{workflow.description}
</Text>
{tags.length > 0 && (
<Text fontSize="xs" noOfLines={1}>
<Text as="span" color="base.400">
{t('workflows.tags')}:{' '}
</Text>
<Text as="span" color="base.400">
{tags.join(', ')}
</Text>
</Text>
)}
</Flex>
<Flex className={WORKFLOW_ACTION_BUTTONS_CN} alignItems="center" display="none" h={8}>
{workflow.opened_at && (
Expand Down