diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.md index 755854a..8b0dbd2 100644 --- a/THIRD_PARTY_NOTICES.md +++ b/THIRD_PARTY_NOTICES.md @@ -6,12 +6,15 @@ The MIT license in LICENSE applies to owner-confirmed original code/documentatio The following notices were read from the exact installed locked packages. Full upstream license files are preserved byte-for-byte, including Lucide ISC and Feather-derived MIT attribution. Vite aggregate notices are retained conservatively for the included build helper/polyfill; compiler/development packages are not otherwise redistributed as installations. +The Source Serif 4 font file (`portfolio/src/fonts/source-serif-4-latin-wght-normal.woff2`) is copied unmodified from the published package listed below and inlined into the site stylesheet at build time; it is not a bundled JavaScript dependency. + | Package | Installed version | Declared license | Exact preserved license | SHA-256 | | --- | --- | --- | --- | --- | | react | 19.3.1 | MIT | [react](third_party_licenses/react.txt) | da6d3703ed11cbe42bd212c725957c98da23cbff1998c05fa4b3d976d1a58e93 | | react-dom | 19.3.1 | MIT | [react-dom](third_party_licenses/react-dom.txt) | da6d3703ed11cbe42bd212c725957c98da23cbff1998c05fa4b3d976d1a58e93 | | scheduler | 0.28.0 | MIT | [scheduler](third_party_licenses/scheduler.txt) | da6d3703ed11cbe42bd212c725957c98da23cbff1998c05fa4b3d976d1a58e93 | | lucide-react | 1.61.0 | ISC | [lucide-react](third_party_licenses/lucide-react.txt) | b495047bd93a9b06913511076f504daba17d5bbeb3e0650f3bb53a4220329c57 | +| Source Serif 4 font (@fontsource-variable/source-serif-4, latin wght subset) | 5.3.1 | OFL-1.1 | [source-serif-4](third_party_licenses/source-serif-4.txt) | 18aabf190848725e2576eefb5c29ba06aac1029d02132252a7f312eac2e50cf3 | | tailwindcss | 4.3.3 | MIT | [tailwindcss](third_party_licenses/tailwindcss.txt) | 60e0b68c0f35c078eef3a5d29419d0b03ff84ec1df9c3f9d6e39a519a5ae7985 | | vite | 8.3.5 | MIT | [vite](third_party_licenses/vite.txt) | a22152baa1aef74402443008e767e7c689a524c0909d19b0431d97f5ab066a13 | diff --git a/portfolio/index.html b/portfolio/index.html index 380948e..fffd923 100644 --- a/portfolio/index.html +++ b/portfolio/index.html @@ -3,12 +3,19 @@ - + + - + + + + + + + OSPA — Oracle SQL Performance Analyzer diff --git a/portfolio/public-source-files.json b/portfolio/public-source-files.json index ae8827f..55ab8bb 100644 --- a/portfolio/public-source-files.json +++ b/portfolio/public-source-files.json @@ -129,6 +129,7 @@ "third_party_licenses/react-dom.txt", "third_party_licenses/react.txt", "third_party_licenses/scheduler.txt", + "third_party_licenses/source-serif-4.txt", "third_party_licenses/tailwindcss.txt", "third_party_licenses/vite.txt" ] diff --git a/portfolio/public/_headers b/portfolio/public/_headers new file mode 100644 index 0000000..8025f60 --- /dev/null +++ b/portfolio/public/_headers @@ -0,0 +1,9 @@ +/* + X-Content-Type-Options: nosniff + Referrer-Policy: strict-origin-when-cross-origin + X-Frame-Options: DENY + Permissions-Policy: camera=(), microphone=(), geolocation=(), payment=() + Content-Security-Policy: default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self' data:; connect-src 'self'; object-src 'none'; base-uri 'self'; form-action 'none'; frame-ancestors 'none' + +/assets/* + Cache-Control: public, max-age=31536000, immutable diff --git a/portfolio/public/favicon.svg b/portfolio/public/favicon.svg index 5aca7e1..990954c 100644 --- a/portfolio/public/favicon.svg +++ b/portfolio/public/favicon.svg @@ -1 +1 @@ - + diff --git a/portfolio/public/og.png b/portfolio/public/og.png new file mode 100644 index 0000000..5f6cdd2 Binary files /dev/null and b/portfolio/public/og.png differ diff --git a/portfolio/scripts/audit-dist.ts b/portfolio/scripts/audit-dist.ts index 0544f24..82a5a1b 100644 --- a/portfolio/scripts/audit-dist.ts +++ b/portfolio/scripts/audit-dist.ts @@ -31,6 +31,8 @@ export function auditDist(directory = join(portfolio, 'dist')): Record ); } -function SectionHeading({ index, title, text }: { index: string; title: string; text?: string }) { +function SectionHeading({ title, text }: { title: string; text?: string }) { return (
- {index}

{title}

{text &&

{text}

}
@@ -104,6 +91,63 @@ function Plan({ measurement, t }: { measurement: Measurement; t: Copy }) { ); } +function planDepth(ops: { id: number; parent_id: number | null }[], id: number): number { + const op = ops.find((o) => o.id === id); + return op && op.parent_id !== null ? 1 + planDepth(ops, op.parent_id) : 0; +} +function HeroPlan({ item, t }: { item: IndexExperiment; t: Copy }) { + const columns = t.planColumns.split('|'); + const states = [ + [t.planBefore, item.before], + [t.planAfter, item.after], + ] as const; + return ( +
+ {states.map(([label, measurement]) => { + const ops = measurement.estimatedPlan.operators; + return ( +
+

+ {label} + + {t.planMedian} {number(measurement.median)} ms + +

+ +
    + {ops.map((op) => ( +
  1. + {op.id} + + {[op.operation, op.options].filter(Boolean).join(' ')} + + {op.object ?? ''} + + {columns[3]} + {op.estimated_rows ?? '—'} + + + {columns[4]} + {op.optimizer_cost ?? '—'} + +
  2. + ))} +
+
+ ); + })} +
+ ); +} function ExperimentCard({ item, t }: { item: IndexExperiment; t: Copy }) { return (
@@ -141,6 +185,7 @@ function ExperimentCard({ item, t }: { item: IndexExperiment; t: Copy }) { {item.storageKiB} KiB · {item.before.rows.toLocaleString('en-US')} {t.rows} · n = 10 /{' '} {t.baseline}, n = 10 / {t.indexed}

+
@@ -162,6 +207,7 @@ function ExperimentCard({ item, t }: { item: IndexExperiment; t: Copy }) { ))}
{t.client} (ms)
+
{item.before.sql} @@ -352,7 +398,7 @@ function Histogram({ t }: { t: Copy }) { return (
- GROUP B · E04 +

Group B, E04

{t.histogramTitle}

{t.histogramText}

@@ -413,7 +459,6 @@ function Histogram({ t }: { t: Copy }) {

{t.cursorUnavailable}

-

@@ -441,12 +486,8 @@ export default function App() {
- - OSPA - - SQL PERFORMANCE LAB + SQL performance lab