Skip to content

Fix style#6

Merged
Tallented-Code-bot merged 3 commits into
mainfrom
fix-style
Feb 2, 2026
Merged

Fix style#6
Tallented-Code-bot merged 3 commits into
mainfrom
fix-style

Conversation

@Tallented-Code-bot

Copy link
Copy Markdown
Collaborator

Make some style changes in the code; no changes were actually made to the site.

Copilot AI review requested due to automatic review settings February 2, 2026 06:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 focuses on stylistic/formatting cleanups across the SvelteKit site, supporting scripts, and documentation, with a few small behavior-adjacent tweaks (e.g., keyed {#each} blocks and preload attributes on links).

Changes:

  • Reformat/clean up markup, CSS, scripts, and markdown files for consistency.
  • Add keyed {#each} blocks and adjust some ARIA/linting configuration around rendering.
  • Update ESLint configuration and README formatting/checklists.

Reviewed changes

Copilot reviewed 15 out of 17 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/routes/sponsors/+page.svelte Adds keyed {#each} blocks; adjusts sponsor card list semantics.
src/routes/newsletter/[id]/+page.svelte Adds an ESLint disable for {@html} usage.
src/routes/newsletter/[id]/+page.js Adds JSDoc typedef and type assertion around article lookup.
src/routes/members/current/+page.svelte Removes unused sample data and simplifies driver filtering comment/code.
src/routes/donate/+page.svelte Removes unused mailing address constant.
src/routes/cars/[id]/+page.svelte Removes CSS for a commented-out section and tweaks link preloading.
src/routes/about/+page.svelte Adds data-sveltekit-preload-data to an internal link.
src/routes/+page.svelte Adds data-sveltekit-preload-data to an internal link.
src/routes/+layout.svelte Removes unused dropdown state/helpers (dropdown markup is commented out).
src/lib/newsletters/articles/shop-night-fabrication.md Minor formatting/whitespace adjustment.
src/lib/newsletters/articles/regional-competition-recap.md Minor spacing adjustments around lists.
scripts/generate-articles.mjs Pure formatting/indentation changes.
scripts/debug-md.mjs Formatting plus improved error logging on missing deps.
index.html HTML/CSS formatting and self-closing tags normalization.
google38ad0fa849da7d01.html Whitespace normalization.
eslint.config.js Adds a disabled Svelte lint rule and trailing commas.
README.md Formatting cleanup and checklist normalization.

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

Comment on lines 113 to 116
<div class="sponsor-grid" role="list">
{#each tier.sponsors as sponsor}
{#each tier.sponsors as sponsor (sponsor.name)}
<a
class="sponsor-card"

Copilot AI Feb 2, 2026

Copy link

Choose a reason for hiding this comment

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

The container uses role="list", but the immediate children are anchors without role="listitem". This breaks the ARIA list pattern and can reduce screen-reader semantics. Either restore role="listitem" on each sponsor card (or wrap them in elements with role="listitem"), or remove role="list" and use a semantic <ul><li> structure instead.

Copilot uses AI. Check for mistakes.
Comment on lines +42 to +44
const articleEntry = /** @type {Article} */ (
allEntries.find((e) => e.type === 'article' && e.id === id)
);

Copilot AI Feb 2, 2026

Copy link

Choose a reason for hiding this comment

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

allEntries.find(...) can return undefined, but the JSDoc assertion forces the type to Article, which hides that possibility from type checking and can mask real issues. Prefer typing this as Article | undefined (or do the assertion only after the not-found check) so the types match runtime behavior.

Suggested change
const articleEntry = /** @type {Article} */ (
allEntries.find((e) => e.type === 'article' && e.id === id)
);
/** @type {Article | undefined} */
const articleEntry = allEntries.find((e) => e.type === 'article' && e.id === id);

Copilot uses AI. Check for mistakes.
Comment thread src/routes/newsletter/[id]/+page.svelte
Comment thread README.md Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Tallented-Code-bot
Tallented-Code-bot merged commit c7fc122 into main Feb 2, 2026
@Tallented-Code-bot
Tallented-Code-bot deleted the fix-style branch February 2, 2026 06:20
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