Repository navigation
Commit 3fe8cd1
authored
fix: improve AskAI panel accessibility (#616)
* perf: remove PostHog, optimize image assets, and tune bundle imports
Drop the unused posthog-js dependency and its NEXT_PUBLIC_POSTHOG_* env
vars; analytics now runs through Plausible and the env-gated Core Web
Vitals monitor only.
Add scripts/optimize-images.mjs (sharp) and an optimize:images npm script,
then run it across public/: raster assets are recompressed in place,
oversized images are capped retina-safe, and Open Graph cards are resized
to 1200x630. This cuts public/ from 110 MB to 61 MB. The 11.6 MB changelog
GIF is converted to a 1.9 MB animated WebP.
Enable experimental.optimizePackageImports for lucide-react and
framer-motion to tree-shake their barrel files.
* feat: add JSON-LD structured data and canonical URLs
Introduce lib/structured-data.ts schema builders and a <JsonLd> component,
then wire schema.org metadata into the key page types: Organization,
WebSite and SoftwareApplication on the home page, TechArticle +
BreadcrumbList on docs, and BlogPosting/Article + BreadcrumbList on blog
and changelog entries.
Add per-page canonical URLs and richer Open Graph article metadata, and
give the sitemap per-route priority and changefreq instead of a blanket
daily value.
* fix: improve AskAI panel accessibility
Mark the slide-over panel as role="dialog" with an accessible name, close
it on Escape from anywhere within it, and restore focus to the trigger
button when it closes so keyboard users are not stranded. Expose
aria-haspopup and aria-expanded on the trigger.1 parent 13fa9e2 commit 3fe8cd1
1 file changed
Lines changed: 29 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
| 288 | + | |
| 289 | + | |
288 | 290 | | |
289 | 291 | | |
290 | 292 | | |
| |||
336 | 338 | | |
337 | 339 | | |
338 | 340 | | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
| 341 | + | |
344 | 342 | | |
345 | 343 | | |
346 | 344 | | |
| |||
360 | 358 | | |
361 | 359 | | |
362 | 360 | | |
363 | | - | |
364 | | - | |
| 361 | + | |
365 | 362 | | |
366 | 363 | | |
367 | 364 | | |
| |||
453 | 450 | | |
454 | 451 | | |
455 | 452 | | |
456 | | - | |
| 453 | + | |
457 | 454 | | |
458 | 455 | | |
459 | | - | |
| 456 | + | |
| 457 | + | |
460 | 458 | | |
461 | 459 | | |
462 | 460 | | |
463 | 461 | | |
464 | 462 | | |
| 463 | + | |
| 464 | + | |
465 | 465 | | |
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
469 | | - | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
470 | 479 | | |
471 | 480 | | |
472 | 481 | | |
473 | 482 | | |
474 | 483 | | |
| 484 | + | |
475 | 485 | | |
476 | 486 | | |
477 | 487 | | |
478 | 488 | | |
479 | 489 | | |
480 | 490 | | |
| 491 | + | |
| 492 | + | |
481 | 493 | | |
482 | 494 | | |
483 | 495 | | |
| |||
489 | 501 | | |
490 | 502 | | |
491 | 503 | | |
| 504 | + | |
| 505 | + | |
492 | 506 | | |
493 | 507 | | |
494 | 508 | | |
| |||
602 | 616 | | |
603 | 617 | | |
604 | 618 | | |
605 | | - | |
606 | | - | |
| 619 | + | |
607 | 620 | | |
608 | 621 | | |
609 | 622 | | |
| |||
615 | 628 | | |
616 | 629 | | |
617 | 630 | | |
618 | | - | |
619 | | - | |
620 | | - | |
| 631 | + | |
621 | 632 | | |
622 | 633 | | |
623 | 634 | | |
| |||
660 | 671 | | |
661 | 672 | | |
662 | 673 | | |
663 | | - | |
664 | | - | |
665 | | - | |
| 674 | + | |
| 675 | + | |
666 | 676 | | |
667 | 677 | | |
668 | 678 | | |
| |||
694 | 704 | | |
695 | 705 | | |
696 | 706 | | |
697 | | - | |
698 | | - | |
699 | | - | |
| 707 | + | |
700 | 708 | | |
701 | 709 | | |
702 | 710 | | |
| |||
0 commit comments