Skip to content

Commit 6067e10

Browse files
committed
Improve comments
1 parent 19ec6af commit 6067e10

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

site/src/modules/workspaces/WorkspaceTiming/WorkspaceTimings.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,18 @@ export const WorkspaceTimings: FC<WorkspaceTimingsProps> = ({
5858
].sort((a, b) => {
5959
return new Date(a.started_at).getTime() - new Date(b.started_at).getTime();
6060
});
61+
6162
const [isOpen, setIsOpen] = useState(defaultIsOpen);
6263
const isLoading = timings.length === 0;
6364

64-
// All stages
65+
// Each agent connection timing is a stage in the timeline to make it easier
66+
// to users to see the timing for connection and the other scripts.
6567
const agentStageLabels = Array.from(
6668
new Set(
6769
agentConnectionTimings.map((t) => `agent (${t.workspace_agent_name})`),
6870
),
6971
);
72+
7073
const stages = [
7174
...provisioningStages,
7275
...agentStageLabels.flatMap((a) => agentStages(a)),
@@ -120,7 +123,8 @@ export const WorkspaceTimings: FC<WorkspaceTimingsProps> = ({
120123
: mergeTimeRanges(stageTimings.map(toTimeRange));
121124

122125
// Prevent users from inspecting internal coder resources in
123-
// provisioner timings.
126+
// provisioner timings because they were not useful to the
127+
// user and would add noise.
124128
const visibleResources = stageTimings.filter((t) => {
125129
const isProvisionerTiming = "resource" in t;
126130
return isProvisionerTiming

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy