Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(web): type & to mention a connected machine #30279

Closedhideoneric(GitHub profile, opens in a new tab)wants to merge 5 commits intomain fromrefs/pull/30279/headopened View on GitHub

Showing 15 changed files with 21 additions and 3 deletions (loading 12).

x
0 of 15 viewed, 15 left
2 additions and 0 deletionsapps/mobile/src/features/threads/ComposerCommandPopover.tsxModified
View file
@@ -150,6 +150,8 @@
return "Skills";
case "path":
return items.every((item) => item.type === "path") ? "Files" : "Mentions";
+ case "environment":
+ return "Machines";
default:
return null;
12 additions and 1 deletionapps/mobile/src/features/threads/use-composer-command-menu.tsModified
View file
@@ -501,6 +501,17 @@
}));
​
+ if (trigger.kind === "environment") {
+ return environmentId
+ ? matchComposerEnvironmentItems({
+ environments,
+ environmentId,
+ query: trigger.query,
+ listAllWhenEmpty: true,
+ })
+ : [];
+ }
+​
if (trigger.kind === "path") {
const threadItems = environmentId