Skip to content

Commit fe0055f

Browse files
committed
Adds shortcut keys to the root and parent links + the shortcut help panel
1 parent ec9131b commit fe0055f

File tree

2 files changed

+12
-3
lines changed
  • apps/webapp/app
    • components
    • routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.runs.$runParam

2 files changed

+12
-3
lines changed

apps/webapp/app/components/Shortcuts.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,12 @@ function ShortcutContent() {
147147
</Paragraph>
148148
<ShortcutKey shortcut={{ key: "9" }} variant="medium/bright" />
149149
</Shortcut>
150+
<Shortcut name="Jump to root run">
151+
<ShortcutKey shortcut={{ key: "t" }} variant="medium/bright" />
152+
</Shortcut>
153+
<Shortcut name="Jump to parent run">
154+
<ShortcutKey shortcut={{ key: "p" }} variant="medium/bright" />
155+
</Shortcut>
150156
</div>
151157
<div className="space-y-3">
152158
<Header3>Schedules page</Header3>

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.runs.$runParam/route.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1174,9 +1174,10 @@ function ShowParentOrRootLinks({
11741174
{ friendlyId: relationships.root.friendlyId },
11751175
{ spanId: relationships.root.spanId }
11761176
)}
1177+
shortcut={{ key: "t" }}
11771178
className="text-xs"
11781179
>
1179-
Show Root & Parent run
1180+
Jump to Root & Parent
11801181
</TextLink>
11811182
);
11821183
}
@@ -1193,9 +1194,10 @@ function ShowParentOrRootLinks({
11931194
{ friendlyId: relationships.root.friendlyId },
11941195
{ spanId: relationships.root.spanId }
11951196
)}
1197+
shortcut={{ key: "t" }}
11961198
className="text-xs"
11971199
>
1198-
Show Root run
1200+
Jump to Root
11991201
</TextLink>
12001202
)}
12011203
{relationships.parent && (
@@ -1207,9 +1209,10 @@ function ShowParentOrRootLinks({
12071209
{ friendlyId: relationships.parent.friendlyId },
12081210
{ spanId: relationships.parent.spanId }
12091211
)}
1212+
shortcut={{ key: "p" }}
12101213
className="text-xs"
12111214
>
1212-
Show Parent run
1215+
Jump to Parent
12131216
</TextLink>
12141217
)}
12151218
</div>

0 commit comments

Comments
 (0)