Skip to content

fix: refresh website dependencies and analyzer-safe rendering - #23

Merged
smiggleworth merged 4 commits into
mainfrom
fix/site-content-accuracy-audit
Jul 28, 2026
Merged

fix: refresh website dependencies and analyzer-safe rendering#23
smiggleworth merged 4 commits into
mainfrom
fix/site-content-accuracy-audit

Conversation

@smiggleworth

@smiggleworth smiggleworth commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Summary

  • refresh website package and lockfile dependencies, including current Askr packages
  • regenerate API and CLI documentation snapshots
  • unify route rendering and make docs search/navigation analyzer-safe
  • preserve accurate marketing/docs content and responsive navigation behavior

Validation

  • askr upgrade -f (22 dependencies current)
  • npm ci --ignore-scripts
  • askr analyze --check (0 errors, 0 warnings)
  • npm run fmt
  • npm run lint
  • npm run typecheck
  • npm run build (338/338 routes; 0 failures)
  • npm run test (14/14 tests; 338 routes; 32,501 API anchors)
  • npm audit --audit-level=high (0 vulnerabilities)

TypeScript remains on the latest compatible 6.x line because the website API snapshot generator uses the compiler API removed from TypeScript 7.

smiggleworth and others added 4 commits July 28, 2026 12:28
Fact-checked marketing and docs copy against the installed @askrjs/*
packages. Fixed the OIDC exchangeCode() example to match the real
OidcCodeExchange shape, corrected the OpenTelemetry claim from
"redaction-aware" to allowlist-based (the actual mechanism), and
removed the platform page's benchmark table since the numbers had no
supporting methodology or reproducible source in the repo.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 28, 2026 16:40
@smiggleworth
smiggleworth merged commit a5a9e8d into main Jul 28, 2026
2 checks passed
@smiggleworth
smiggleworth deleted the fix/site-content-accuracy-audit branch July 28, 2026 16:44

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the website’s dependency set and refreshes generated docs snapshots, while also migrating route/docs rendering patterns toward analyzer-safe primitives (<For>, <Show>) to improve correctness under Askr’s rendering model.

Changes:

  • Bumped @askrjs packages (and related tooling) and regenerated lockfile + docs snapshots (API manifest, CLI snapshot, package versions).
  • Replaced multiple .map() render loops and ternaries with <For> / <Show> to align with analyzer-safe rendering patterns.
  • Updated/selectively removed marketing/docs content (e.g., benchmark snapshot removal, production copy tweaks) and adjusted docs navigation/search behaviors.

Reviewed changes

Copilot reviewed 16 out of 17 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/pages/site-footer.tsx Switch footer link lists to <For> for keyed rendering.
src/pages/marketing/production.tsx Updates production telemetry/security copy.
src/pages/marketing/platform.tsx Removes benchmark snapshot section from platform page.
src/pages/marketing/home.tsx Renders capability list via <For> and reactive index accessor.
src/pages/marketing/components.tsx Migrates multiple list renderings to <For>; factors peer list rendering.
src/pages/marketing/benchmarks.ts Removes benchmark snapshot data export (file deleted).
src/pages/docs/search.tsx Refactors search result rendering to nested <Show> branches; adds trigger a11y attrs; updates click handler.
src/pages/docs/page.tsx Refactors doc page rendering with <For> and extracted sections/components.
src/pages/docs/package-versions.ts Updates generated installed package version map.
src/pages/docs/lucide-gallery.tsx Uses <For> for icon list rendering.
src/pages/docs/content-overrides.ts Updates generated/curated docs heading override content.
src/pages/docs/cli-snapshot.ts Updates generated CLI snapshot (version + new command).
src/pages/docs/api-page.tsx Extracts API symbol list to a <For>-based component.
src/pages/docs/api-manifest.ts Updates generated API manifest versions.
src/pages/docs/_layout.tsx Uses <For> for nav + TOC lists; updates nav link close behavior.
package.json Dependency refresh for @askrjs packages + tooling.
package-lock.json Regenerated lockfile reflecting updated dependency graph.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/pages/docs/page.tsx
by={(pkg) => `${pkg.name}:${pkg.importPath ?? ''}`}
>
{(pkg) => (
<li key={`${pkg.name}:${pkg.importPath}`}>
Comment thread src/pages/docs/search.tsx
Comment on lines +142 to +145
<Show
when={() => results().length > 0}
fallback={<p>No results for “{queryValue}”.</p>}
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants