Skip to content

✨ Improve site quality and content trust#53

Merged
yuler merged 8 commits into
mainfrom
optimize-whole-website
May 12, 2026
Merged

✨ Improve site quality and content trust#53
yuler merged 8 commits into
mainfrom
optimize-whole-website

Conversation

@yuler
Copy link
Copy Markdown
Owner

@yuler yuler commented May 11, 2026

Summary

  • Fix content trust issues across docs and posts, including typos, stale links, local path leakage, and production filtering for draft/WIP posts.
  • Improve post listing context, zero-distance workout display, and design token coverage for muted UI.
  • Reduce default interaction and loading overhead by simplifying the signature animation, gating Thoughts Canvas, conditionally rendering LightBox, and replacing the homepage Leaflet map with a static location card.

Test plan

  • pnpm vitest run
  • pnpm build
  • Smoke checked /, /posts, /posts/deepseek, /thoughts, and /workouts on local dev server
  • ReadLints reported no linter errors
  • git diff --check

Made with Cursor

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request refactors several UI components and content logic, notably replacing the Leaflet-based map in the Location card with a static CSS design and enhancing the Posts card with descriptions and tags. It also introduces a shouldPublishPost utility to manage content visibility and updates workout display logic for zero-distance activities. Feedback identifies two issues with Tailwind CSS syntax: the bg-size- utility in Location.astro and the supports-backdrop-filter modifier in ThoughtsCanvasBottomToolbar.astro are likely invalid and should be updated to use standard bracket notation.

Comment thread src/components/cards/Location.astro Outdated
Comment thread src/components/thoughts/ThoughtsCanvasBottomToolbar.astro Outdated
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 11, 2026

📸 Screenshots for PR #53
page iphone ipad pc
home home iphone home ipad home pc
posts posts iphone posts ipad posts pc
posts-hi posts-hi iphone posts-hi ipad posts-hi pc
thoughts thoughts iphone thoughts ipad thoughts pc
workouts workouts iphone workouts ipad workouts pc
workouts-17883105335 workouts-17883105335 iphone workouts-17883105335 ipad workouts-17883105335 pc

PR screenshots folder (branch pr-screenshots)

github-actions Bot added a commit that referenced this pull request May 11, 2026
- Add post descriptions and tag badges to card listings
- Improve accessibility with prefers-reduced-motion support
- Make LightBox conditional for better performance
- Fix typos and add JSON API example to posts
- Handle zero-distance indoor activities in workouts
@yuler yuler force-pushed the optimize-whole-website branch from 5de296a to 532fc3d Compare May 12, 2026 02:00
github-actions Bot added a commit that referenced this pull request May 12, 2026
github-actions Bot added a commit that referenced this pull request May 12, 2026
Move 2024 posts from 2025 directory to 2024, and remove explicit
slug fields since they're now inferred from filenames.
@yuler
Copy link
Copy Markdown
Owner Author

yuler commented May 12, 2026

/gemini review

github-actions Bot added a commit that referenced this pull request May 12, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces several UI and documentation enhancements, including a new deployment section in AGENTS.md, support for prefers-reduced-motion in the signature component, and improved metadata display for posts and workouts. The workout display logic was refined to handle zero-distance activities, and the LightBox component is now conditionally rendered based on content. Review feedback recommends implementing defensive null checks for post tags and correcting grammatical errors in the DeepSeek article's code examples.

Comment thread src/components/cards/Posts.astro Outdated
Comment thread src/content/posts/2025/deepseek.md Outdated
yuler and others added 2 commits May 12, 2026 10:20
github-actions Bot added a commit that referenced this pull request May 12, 2026
yuler added 2 commits May 12, 2026 10:37
- Introduce a new AgentStuff component to display design guidelines and agent instructions.
- Adjust Thoughts component layout for improved spacing and responsiveness.
Add Bot and Sparkles icons as background elements to the
AgentStuff component for visual enhancement.
github-actions Bot added a commit that referenced this pull request May 12, 2026
@yuler
Copy link
Copy Markdown
Owner Author

yuler commented May 12, 2026

/gemini review

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the homepage layout using CSS grid for improved responsive ordering and introduces several UI enhancements, including a new AgentStuff card and enriched post and thought previews. It also adds support for prefers-reduced-motion in the signature animation and updates workout display logic to correctly handle zero-distance indoor activities. Feedback focuses on improving text readability by replacing break-all with break-words in the AgentStuff component and increasing the font size of post tags to align with project typography standards.

Comment thread src/components/cards/AgentStuff.astro
{post.data.tags && post.data.tags.length > 0 && (
<div class="mt-2 flex flex-wrap gap-1.5">
{post.data.tags.slice(0, 3).map(tag => (
<span class="border border-gray-200 px-1.5 py-0.5 text-[10px] leading-none text-gray-500">
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.

medium

The font size 10px is below the smallest defined typography token in the design guide (mono-label at 0.75rem or 12px). This can make the tags difficult to read, especially on high-resolution screens. Consider using text-xs to align with the project's typography standards and improve legibility.

                      <span class="border border-gray-200 px-1.5 py-0.5 text-xs leading-none text-gray-500">

github-actions Bot added a commit that referenced this pull request May 12, 2026
@yuler yuler merged commit 8d1c57e into main May 12, 2026
3 checks passed
@yuler yuler deleted the optimize-whole-website branch May 12, 2026 06:08
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.

1 participant