refactor(plugin-workflow): hide node id from canvas (#6251)

* refactor(plugin-workflow): hide node id from canvas

* fix(plugin-workflow): group order for nodes
This commit is contained in:
Junyi 2025-02-20 14:42:04 +08:00 committed by GitHub
parent 0533c1b0c7
commit 5b13c52245
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 12 deletions

View File

@ -63,12 +63,10 @@ export default class PluginWorkflowClient extends Plugin {
useInstructionGroupOptions = () => {
const compile = useCompile();
return Array.from(this.instructionGroups.getEntities())
.map(([key, { label }]) => ({
key,
label: compile(label),
}))
.sort((a, b) => a.label.localeCompare(b.label));
return Array.from(this.instructionGroups.getEntities()).map(([key, { label }]) => ({
key,
label: compile(label),
}));
};
isWorkflowSync(workflow) {

View File

@ -345,16 +345,13 @@ const useStyles = createStyles(({ css, token }) => {
align-items: center;
.ant-tag {
max-width: 10em;
max-width: 14em;
overflow: hidden;
text-overflow: ellipsis;
}
.workflow-node-id {
color: ${token.colorTextDescription};
&:before {
content: '#';
}
display: none;
}
`,
@ -363,7 +360,7 @@ const useStyles = createStyles(({ css, token }) => {
align-items: center;
font-weight: normal;
.workflow-node-id {
color: ${token.colorTextDescription};
display: none;
}
`,