Skip to content

Commit eeda8b3

Browse files
committed
feat(CacheAnalysis): polish UI to show req lifecycle
1 parent bd3cb8d commit eeda8b3

File tree

1 file changed

+25
-3
lines changed

1 file changed

+25
-3
lines changed

app/components/CacheAnalysis.vue

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,16 @@ const { servedBy, cacheStatus } = getCacheAnalysis(props.cacheHeaders);
1818
<hr />
1919

2020
<dl>
21-
<template v-for="{ cacheName, parameters } in cacheStatus">
21+
<dt class="cache-heading">
22+
<h4>🎬 Request from client</h4>
23+
</dt>
24+
<dd></dd>
25+
26+
<template v-for="({ cacheName, parameters }, cacheIndex) in cacheStatus">
2227
<!-- This is a bit of a hack to use the pretty <dt> styling but with sections. -->
2328
<!-- I should probably just do something custom instead. -->
2429
<dt class="cache-heading">
25-
<h4>{{ cacheName }}</h4>
30+
<h4>{{ cacheName }}</h4>
2631
</dt>
2732
<dd></dd>
2833

@@ -64,6 +69,15 @@ const { servedBy, cacheStatus } = getCacheAnalysis(props.cacheHeaders);
6469
<dd>{{ parameters.detail }}</dd>
6570
</template>
6671
</template>
72+
73+
<dt class="cache-heading">
74+
<h4>
75+
76+
<br />
77+
🏁 Response to client
78+
</h4>
79+
</dt>
80+
<dd></dd>
6781
</dl>
6882
</div>
6983
</template>
@@ -77,7 +91,15 @@ hr {
7791
margin-top: 0.5em;
7892
}
7993
80-
.cache-heading h4 {
94+
dt {
95+
margin-left: 1em;
96+
}
97+
98+
dt.cache-heading {
99+
margin-left: 1em;
100+
}
101+
102+
dt.cache-heading h4 {
81103
padding: 0;
82104
/* I'm sorry */
83105
margin-left: -0.5em;

0 commit comments

Comments
 (0)