Skip to content

Commit 9906cf1

Browse files
committed
Add article pages refactored to Table components
1 parent b8da315 commit 9906cf1

124 files changed

Lines changed: 9224 additions & 3824 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.vscode/cspell.json‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,28 @@
22
"words": [
33
"astro",
44
"astrojs",
5+
"botocore",
56
"braniac",
7+
"certifi",
68
"cicd",
79
"Cirkel",
10+
"cweagans",
811
"devs",
12+
"dorny",
913
"Emittery",
1014
"iframes",
1115
"instanceof",
1216
"Intelli",
17+
"Liquibase",
1318
"msedge",
19+
"nokogiri",
20+
"pgroll",
21+
"rglob",
22+
"sarif",
1423
"Sindre",
1524
"Sorhus",
1625
"tsconfigs",
17-
"untile"
26+
"untile",
27+
"Xata"
1828
]
1929
}

‎.vscode/settings.json‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,17 @@
1212
"adtech",
1313
"agentic",
1414
"AIMD",
15+
"aiobreaker",
1516
"alives",
17+
"allof",
1618
"alpn",
1719
"amondnet",
1820
"anchore",
1921
"anonymization",
22+
"APIV",
2023
"appns",
2124
"Asana",
25+
"asax",
2226
"asyncio",
2327
"asyncpg",
2428
"azuread",
@@ -28,6 +32,7 @@
2832
"bezier",
2933
"Birsan's",
3034
"bitnami",
35+
"Blazor",
3136
"Bridgy",
3237
"bsky",
3338
"Btns",
@@ -47,6 +52,7 @@
4752
"codel",
4853
"Conduktor",
4954
"Consolas",
55+
"cpus",
5056
"criticals",
5157
"crossenv",
5258
"CUDA",
@@ -106,12 +112,14 @@
106112
"gclid",
107113
"gemoji",
108114
"getattr",
115+
"getcwd",
109116
"glidejs",
110117
"GOARCH",
111118
"Gobreaker",
112119
"gomodule",
113120
"gotk",
114121
"Grafonnet",
122+
"granularities",
115123
"GSAP",
116124
"gsutil",
117125
"hikari",
@@ -123,8 +131,13 @@
123131
"httpchk",
124132
"httpx",
125133
"Hudi",
134+
"Hystrix",
126135
"IAAAAAAAAA",
127136
"ical",
137+
"IMDS",
138+
"incentivized",
139+
"inotify",
140+
"instrumenta",
128141
"interrobang",
129142
"isdigit",
130143
"isinstance",
@@ -133,7 +146,9 @@
133146
"izakaya",
134147
"jdbc",
135148
"Joomla",
149+
"jscodeshift",
136150
"jscoverage",
151+
"jsmith",
137152
"jsonencode",
138153
"Jsonnet",
139154
"kafkajs",
@@ -147,6 +162,7 @@
147162
"Kpow",
148163
"ksql",
149164
"kubeadm",
165+
"Kubebuilder",
150166
"kubeconfig",
151167
"Kubecost",
152168
"kubelet",
@@ -163,6 +179,7 @@
163179
"LIMS",
164180
"Linkify",
165181
"liradb",
182+
"ljust",
166183
"llen",
167184
"LNAME",
168185
"localip",
@@ -176,6 +193,7 @@
176193
"mathbb",
177194
"maxhdr",
178195
"Menlo",
196+
"millicores",
179197
"miscategorized",
180198
"misconfiguring",
181199
"mlflow",
@@ -225,13 +243,15 @@
225243
"Onest",
226244
"openslo",
227245
"optin",
246+
"OSSL",
228247
"PABC",
229248
"pacticipant",
230249
"PERC",
231250
"pgbouncer",
232251
"pgmq",
233252
"Pgpool",
234253
"PGRST",
254+
"phpro",
235255
"pids",
236256
"pkill",
237257
"Plaso",
@@ -250,12 +270,14 @@
250270
"Pybreaker",
251271
"Pydantic",
252272
"pylint",
273+
"pypiserver",
253274
"pypoetry",
254275
"qdisc",
255276
"qpart",
256277
"qparts",
257278
"Qualys",
258279
"Qube",
280+
"QUIC",
259281
"raci",
260282
"redigo",
261283
"redocly",
@@ -272,9 +294,11 @@
272294
"samp",
273295
"scaffolder",
274296
"sccache",
297+
"schedulable",
275298
"scipy",
276299
"SCORM",
277300
"Segoe",
301+
"SERVFAIL",
278302
"sess",
279303
"shiki",
280304
"shikijs",
@@ -290,6 +314,7 @@
290314
"spriter",
291315
"SQSFIFO",
292316
"squoosh",
317+
"srequiredlabels",
293318
"srgb",
294319
"ssns",
295320
"startdt",
@@ -318,18 +343,21 @@
318343
"Traefik",
319344
"triaging",
320345
"Trino",
346+
"troff",
321347
"TRUNC",
322348
"trustcacerts",
323349
"Tscompile",
324350
"tsdoc",
325351
"tseslint",
326352
"tshirt",
353+
"tsoa",
327354
"TTFB",
328355
"Turborepo",
329356
"Tursa",
330357
"Turso",
331358
"tydata",
332359
"uncacheable",
360+
"uncompiled",
333361
"uncordon",
334362
"Uncordoning",
335363
"unexploitable",

‎_TODO.md‎

Lines changed: 58 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,6 @@ https://mermaid.js.org/config/directives.html
164164

165165
- Add Inset component and convert `text` code blocks to use it.
166166

167-
- Only needed if images used in content: Use an in-project Image component to wrap Astro's Image and Picture. Show a magnifying glass with a "+" for the cursor on hover, and a modal to show a magnified view of images on click.
168-
169167
- Focus-visible / active handling on ToC nav items
170168

171169
- Style "Share to Mastodon" modal in src/components/Social/Mastodon/client/index.ts
@@ -186,6 +184,8 @@ https://mermaid.js.org/config/directives.html
186184

187185
- Improve `<abbr>` styling: https://codepen.io/ire/pen/NoqWpm
188186

187+
- Service worker isn't caching favicon
188+
189189
## List Component
190190

191191
- Task list checked variant Markdown in dark theme is awkward, it has a dark shadow
@@ -198,6 +198,29 @@ https://mermaid.js.org/config/directives.html
198198

199199
- Need to improve the "squish" animation where the header reduces in size on scroll down, and returns to full size on scroll up. Maybe reduce and expand the text and search / themepicker / hamburger menu sizes in place, and then slide them horizontally.
200200

201+
## Image component
202+
203+
Only needed if images used in content: Use an in-project Image component to wrap Astro's Image and Picture. Show a magnifying glass with a "+" for the cursor on hover, and a modal to show a magnified view of images on click.
204+
205+
- `accTitle`: Alert severity decision tree
206+
- `accDescr`: Flowchart showing how to classify an alert as a Page or Notification. When an alert fires, check if there is user-facing impact. If no, it is a Notification. If yes, check if there is immediate revenue or safety impact. If yes, it is a Page. If no, check if the SLO burn rate is critical. If yes, it is a Page. If no, it is a Notification.
207+
208+
<figure>
209+
<!-- 1. The Image with a concise title -->
210+
<img src="diagram.jpg" alt="[accTitle] - see details below for full text description">
211+
212+
<figcaption>
213+
<!-- 2. Visible caption (if needed) -->
214+
<strong>Figure 1:</strong> Process Workflow
215+
216+
<!-- 3. Collapsible detailed description -->
217+
<details>
218+
<summary>View detailed text description</summary>
219+
<p>[Insert your full accDescr content here]</p>
220+
</details>
221+
</figcaption>
222+
</figure>
223+
201224
## Content Issues
202225

203226
- "### Geographic/Currency Mismatches" in deep-dive/cdn-edge-caching-cache-keys-vary-headers has a table -> callout -> table back to back
@@ -214,7 +237,38 @@ https://mermaid.js.org/config/directives.html
214237

215238
- We need to check for short form and deep article articles where the deep-dive index.pdf has a non-featured tag like "argo-cd" only in the pdf.mdx. In those cases, we should make sure the callout for the deep dive includes the name of that non-featured (technology) tag
216239

240+
## Table Refactor Instructions
241+
242+
Our current articles have markdown tables. I want to refactor these into using our Table component. I'd like you to take it and use it for the content prop in a Table component instance you add so that the table renders using the same layout as the markdown table. Use the string variant in the tbody -> tr -> th element. Use "vertical-column-delineation-table" for the "variant" prop of the Table component.
243+
244+
Each table will have the "figure" prop as a line below the table, prefixed with "Table: ". We should remove the "Table: " prefix from the figure string as this is used by our Markdown setup to identify figure captions. Do not leave multiple trailing empty lines after the table.
245+
246+
The first file to update is:
247+
248+
## List Refactor Instructions
249+
250+
numbered-with-background-list, check-icons-list
251+
252+
We have lists in our current articles that are of two variants: those that are plain text lists (either ordered or unordered), and those that are lists with both leads and plain texts. Our List component layouts handle both lists with leads and those without. We can identify leads because that text is emphasized with markdown in some fashion: "_", "__", "*", or "**". We need to refactor the markdown lists in a file into either an ordered (numbered-with-background-list) or unordered (check-icons-list) list, and extract lead text if present into the optional lead prop if any lead text is present.
253+
254+
If there is a Further Reading" heading at the bottom of a file, ignore any list that may be contained in it.
255+
256+
An example is as follows:
257+
258+
- _Alerts per on-call shift_: Total alert volume during a rotation. Anything above 20 per 24-hour shift is a red flag.
259+
260+
<List
261+
variant="check-icons-list"
262+
items={[
263+
{
264+
lead: "Alerts per on-call shift:",
265+
text: "Total alert volume during a rotation. Anything above 20 per 24-hour shift is a red flag.",
266+
},
267+
]}
268+
/>
269+
270+
The first file to update is:
217271

218-
Our current articles have markdown tables. I want to refactor these into using our Table component. I'm going to copy and paste the markdown table into the chat window here. I'd like you to take it and update the content prop in the Table instance in src/pages/hero.astro so that the table renders using the same layout as the markdown table. Use the string variant in the tbody -> tr -> th element.
272+
Files with missed lists:
219273

220-
Each table will have the "figure" prop as a line below the table, prefixed with "Table: ". We should remove the "Table: " prefix from the figure string as this is used by our Markdown setup to identify figure captions.
274+
src/content/articles/eol-runtime-upgrade-dependency-hell-migration/index.mdx
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
export type Props = {
3+
color: string
4+
classes?: string
5+
size: number
6+
accessible: boolean
7+
focusable: boolean
8+
isListMarker?: boolean
9+
id?: string
10+
}
11+
12+
const { color, classes, size, accessible, focusable, isListMarker, id } = Astro.props
13+
---
14+
15+
<svg
16+
id={id}
17+
xmlns="http://www.w3.org/2000/svg"
18+
class:list={["shrink-0", `w-${size} h-${size}`, `text-${color}`, classes, isListMarker ? "mt-0.5" : ""]}
19+
fill="currentColor"
20+
stroke="none"
21+
viewBox="0 0 24 24"
22+
aria-hidden={accessible ? "false" : "true"}
23+
focusable={focusable ? "true" : "false"}
24+
>
25+
{accessible && <title>User Avatar Icon</title>}
26+
<path
27+
fill-rule="evenodd"
28+
stroke-width="1"
29+
d="m 23.682976,23.67929 a 1.0036896,1.0036896 0 0 1 -1.4253,0.008 l -7.7184,-7.68726 a 8.975996,8.975996 0 1 1 1.4454,-1.43628 l 7.7083,7.69027 a 1.0036896,1.0036896 0 0 1 -0.01,1.42524 z M 8.918676,1.9132803 a 7.0258271,7.0258271 0 1 0 7.0258,7.02582 7.0258271,7.0258271 0 0 0 -7.0258,-7.02582 z m 3.0111,8.02951 h -2.0074 V 11.95017 a 1.0037,1.0037 0 0 1 -2.0074,0 V 9.9427903 h -2.0074 a 1.00369,1.00369 0 0 1 0,-2.00738 h 2.0074 v -2.00738 a 1.0037,1.0037 0 0 1 2.0074,0 v 2.00738 h 2.0074 a 1.00369,1.00369 0 0 1 0,2.00738 z"
30+
></path>
31+
</svg>
Binary file not shown.

src/content/articles/alert-fatigue-reduction-triage-actionable-alerts/2.zip renamed to src/content/articles/alert-fatigue-reduction-triage-actionable-alerts/alert-outcome-tracking-for-health-metrics.jpg

86 KB
Loading

src/content/articles/alert-fatigue-reduction-triage-actionable-alerts/1-a.jpg renamed to src/content/articles/alert-fatigue-reduction-triage-actionable-alerts/decision-tree-for-page-vs-notification-classification.jpg

File renamed without changes.

0 commit comments

Comments
 (0)