feat(site/src/pages/TemplateBuilder): prioritize template builder module display order - #26835
Conversation
| const MODULE_PRIORITY: readonly string[] = [ | ||
| "claude-code", | ||
| // "codex", | ||
| "cursor", | ||
| "vscode-desktop", | ||
| "code-server", | ||
| "jetbrains", | ||
| "vscode-web", | ||
| "zed", | ||
| // "antigravity", | ||
| "windsurf", | ||
| "git-clone", | ||
| "dotfiles", | ||
| "git-config", | ||
| "personalize", | ||
| "filebrowser", | ||
| // "kasmvnc", | ||
| ]; |
There was a problem hiding this comment.
rather than trying to make a backend concept for this, I'm opting to keep this list on the frontend because it's used for display/sorting purposes only. the Simplest Thing That Could Possibly Work™
| // in this order. Unlisted modules appear after, in their original order. | ||
| const MODULE_PRIORITY: readonly string[] = [ | ||
| "claude-code", | ||
| // "codex", |
There was a problem hiding this comment.
Not-yet-imported module IDs (codex, antigravity, kasmvnc) are included but commented out
I see that, but is there a plan for when these will be imported?
There was a problem hiding this comment.
the commented modules haven't been imported into the template builder catalog yet. it's trivial to import them though (we have a script), so say the word and I'll whip up a backend PR for the commented out ones
There was a problem hiding this comment.
Yes please. I think these are worth showing in the builder.
Adds a curated priority ordering for modules in the template builder module picker. Modules in the priority list appear first in the specified order; unlisted modules appear after in their original order.
Changes
MODULE_PRIORITYconstant inModuleSelectStep.tsxwith the preferred display ordersortByPriority()helper to sort modules against the priority listcodex,antigravity,kasmvnc) are included but commented out