Skip to content

chore: refactor codebase, update dependencies, and clean up files#69

Open
azdanov wants to merge 13 commits intoCachyOS:developfrom
azdanov:cleanup
Open

chore: refactor codebase, update dependencies, and clean up files#69
azdanov wants to merge 13 commits intoCachyOS:developfrom
azdanov:cleanup

Conversation

@azdanov
Copy link
Copy Markdown
Member

@azdanov azdanov commented Apr 3, 2026

No description provided.

@azdanov azdanov requested a review from vnepogodin April 3, 2026 09:13
@ptr1337 ptr1337 requested review from Copilot and removed request for vnepogodin April 3, 2026 10:38
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 is a broad cleanup/refactor pass across the Astro site, combining dependency upgrades with small utility refactors and removal of unused UI components.

Changes:

  • Upgraded Astro/Tailwind/ESLint/TypeScript (and lockfile) and adjusted TS compiler options.
  • Refactored permalink/canonical utilities and tightened date/time rendering in blog components.
  • Removed several unused widget/components and updated content typing setup.

Reviewed changes

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

Show a summary per file
File Description
tsconfig.json Adds an explicit TS option (exactOptionalPropertyTypes).
src/utils/permalinks.ts Refactors permalink helpers and canonical URL typing; reorders helper definitions.
src/utils/git.ts Minor refactor for timestamp parsing; adjusts git_path declaration.
src/utils/blog.ts Refactors normalized post object construction; improves category/tag set building loops.
src/env.d.ts Replaces Astro reference directives with module declarations for CSS/fontsource packages.
src/content/config.ts Removes the old Astro content collection config file.
src/config.mjs Adds trailingSlash to site config.
src/components/widgets/Stats.astro Removed.
src/components/widgets/FAQs.astro Removed.
src/components/widgets/Announcement.astro Removed.
src/components/HeroImg.astro Removed.
src/components/common/MetaTags.astro Refactors canonical/image handling and simplifies SEO tag generation.
src/components/Card.astro Removed.
src/components/widgets/LegalNoticeModal.tsx Formatting-only change.
src/components/blog/SinglePost.astro Uses ISO datetime formatting for <time datetime>.
src/components/blog/ListItem.astro Uses ISO datetime formatting (optionally) for <time datetime>.
package.json Dependency updates (Astro, Tailwind, ESLint, lodash, etc.).
bun.lock Lockfile updated to match dependency bumps.
.prettierignore Ignores src/content/post/ from formatting.
Comments suppressed due to low confidence (2)

src/utils/git.ts:38

  • let git_path; will be implicitly any under the repo’s strict TS config (previously this was initialized as a string). Please explicitly type it (e.g., string) or keep the string initializer so type-checking doesn’t fail and downstream spawnSync args stay typed.
  let git_path;
  {
    const { stdout } = spawnSync('which', ['git'], {
      encoding: 'utf-8',
    });

src/components/common/MetaTags.astro:59

  • MetaTags currently ignores any openGraph / twitter props passed via meta (e.g. blog post pages build meta.openGraph.images, but this component always overwrites openGraph with a minimal object derived only from canonical + image). This prevents per-page OG settings like article type and post-specific images from being emitted; consider merging/spreading Astro.props.openGraph/Astro.props.twitter into the objects passed to AstroSeo (and avoid overriding when provided).
  openGraph={{
    url: canonical.toString(),
    title: ogTitle,
    description: description,
    type: ogType,
    images: image

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

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