Scaffold Astro project and add blog design system tokens - #6
Conversation
WalkthroughThe repository is scaffolded as a static Astro blog with MDX content, React support, Keystatic publishing, shared layouts, responsive styling, RSS and sitemap metadata, CI workflows, and GitHub organization access control. ChangesBlog platform
Sequence Diagram(s)sequenceDiagram
participant Visitor
participant BlogRoute
participant BlogCollection
participant PostLayout
participant SEOHead
Visitor->>BlogRoute: request published post route
BlogRoute->>BlogCollection: load published entry
BlogRoute->>PostLayout: pass entry and headings
PostLayout->>SEOHead: pass post metadata
SEOHead-->>Visitor: render SEO-enabled document
Merge Risk: 🟡 Moderate · up to The authentication flow can misreport forbidden responses as temporary service outages and may remove valid access tokens for unexpected membership-check statuses, causing users to lose access or repeatedly reauthenticate. Merge should wait until response classification and token deletion are restricted to the intended statuses. 🚥 Pre-merge checks | ❌ 3❌ Failed checks (3 warnings)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 9
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 41cf54dd-e09f-40c3-a675-37ca9e452728
⛔ Files ignored due to path filters (2)
bun.lockis excluded by!**/*.lockpublic/favicon.svgis excluded by!**/*.svg
📒 Files selected for processing (27)
.gitignore.vscode/extensions.json.vscode/launch.jsonastro.config.mjspackage.jsonpublic/robots.txtsrc/components/CategoryBadge.astrosrc/components/Footer.astrosrc/components/Navbar.astrosrc/components/PostCard.astrosrc/components/SEOHead.astrosrc/components/SectionDivider.astrosrc/components/TableOfContents.astrosrc/components/interactive/InteractiveWrapper.tsxsrc/components/interactive/LSMTreeVisualization.tsxsrc/content.config.tssrc/content/blog/building-an-lsm-tree.mdxsrc/content/blog/wal-recovery.mdxsrc/content/blog/why-makeshift.mdxsrc/layouts/BaseLayout.astrosrc/layouts/PostLayout.astrosrc/pages/blog/[...slug].astrosrc/pages/index.astrosrc/pages/rss.xml.tssrc/styles/design-tokens.csssrc/styles/global.csstsconfig.json
There was a problem hiding this comment.
Actionable comments posted: 4
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 1efc1d31-d51f-451b-95e7-1cedc6ed9b7e
⛔ Files ignored due to path filters (1)
bun.lockis excluded by!**/*.lock
📒 Files selected for processing (34)
.github/workflows/build.yml.github/workflows/lint.yml.gitignore.prettierignore.prettierrc.jsonBlog Site Plan.mdastro.config.tseslint.config.jskeystatic.config.tspackage.jsonsrc/components/CategoryBadge.astrosrc/components/CodeBlock.astrosrc/components/Footer.astrosrc/components/Navbar.astrosrc/components/PostCard.astrosrc/components/SEOHead.astrosrc/components/SectionDivider.astrosrc/components/TableOfContents.astrosrc/components/interactive/InteractiveWrapper.tsxsrc/content.config.tssrc/content/blog/building-an-lsm-tree/LSMTreeVisualization.tsxsrc/content/blog/building-an-lsm-tree/index.mdxsrc/content/blog/wal-recovery/index.mdxsrc/content/blog/why-makeshift/index.mdxsrc/layouts/BaseLayout.astrosrc/layouts/PostLayout.astrosrc/pages/blog/[...slug].astrosrc/pages/categories/[category].astrosrc/pages/categories/index.astrosrc/pages/index.astrosrc/pages/rss.xml.tssrc/styles/design-tokens.csssrc/styles/global.csstsconfig.json
There was a problem hiding this comment.
Actionable comments posted: 3
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: e666d273-848c-4548-a58a-98ecdd47f4d8
⛔ Files ignored due to path filters (1)
public/favicon.svgis excluded by!**/*.svg
📒 Files selected for processing (4)
.github/workflows/lint.ymlLICENSEREADME.mdsrc/components/Navbar.astro
💤 Files with no reviewable changes (1)
- .github/workflows/lint.yml
There was a problem hiding this comment.
Actionable comments posted: 5
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
src/components/Navbar.astro (1)
27-39: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick winMark the Blog section active on post routes.
currentPath === link.hrefonly marks/as active.src/pages/blog/[...slug].astrorenders posts under/blog/<id>, so the Blog link has no active state on post pages.Proposed route-aware active check
const currentPath = Astro.url.pathname; +const isBlogRoute = + currentPath === "/" || currentPath.startsWith("/blog/"); ... - { active: link.isInternal && currentPath === link.href }, + { + active: + link.isInternal && + (currentPath === link.href || + (link.href === "/" && isBlogRoute)), + },
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 608202f2-83cf-4d4a-83b5-d92e70ca34bc
📒 Files selected for processing (8)
README.mdkeystatic.config.tssrc/components/CategoryBadge.astrosrc/components/Navbar.astrosrc/components/SEOHead.astrosrc/layouts/PostLayout.astrosrc/middleware.tssrc/styles/global.css
There was a problem hiding this comment.
Actionable comments posted: 2
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 16821d82-c5bd-47f3-b7c3-0145f19f1fe2
📒 Files selected for processing (3)
src/components/Navbar.astrosrc/components/SEOHead.astrosrc/middleware.ts
💤 Files with no reviewable changes (1)
- src/components/SEOHead.astro
|
@coderabbitai approve |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: e3997337-496b-4426-b8dd-3d9f1fbacd9a
📒 Files selected for processing (2)
src/content/blog/why-makeshift/index.mdxsrc/middleware.ts
✅ Action performedComments resolved and changes approved. |
Issue Reference
Summary by CodeRabbit
New Features
Documentation