Skip to content

✨ Add agent/design pages and draggable thoughts canvas#52

Merged
yuler merged 17 commits into
mainfrom
agents-stuff
May 11, 2026
Merged

✨ Add agent/design pages and draggable thoughts canvas#52
yuler merged 17 commits into
mainfrom
agents-stuff

Conversation

@yuler
Copy link
Copy Markdown
Owner

@yuler yuler commented May 8, 2026

Summary

  • Add tracked agent and design documentation with /agents and /design pages, shared markdown rendering, a reusable Switch, and a DesignTokenTable preview component.
  • Reorganize agent configuration and skills into .claude and .agents/skills, including the new create-thought skill and updated references.
  • Enhance /thoughts with draggable canvas cards, refined sticky-note layout/styling, layout tests, and updated thought content.

Test plan

  • pnpm test -- --run
  • pnpm build

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 a design system and agent instructions by adding DESIGN.md and AGENTS.md files, along with dedicated pages (/design and /agents) to render them. It also includes a new Switch component to toggle between rendered previews and raw Markdown. The review feedback identifies opportunities to improve the codebase by removing dead client-side script logic and replacing fragile manual YAML/frontmatter parsing with Astro's built-in Markdown frontmatter support.

Comment thread src/pages/agents.astro Outdated
Comment thread src/pages/agents.astro Outdated
Comment thread src/pages/design.astro Outdated
Comment thread src/pages/design.astro Outdated
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

📸 Screenshots for PR #52
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 8, 2026
yuler and others added 5 commits May 11, 2026 09:44
Move CLAUDE.md symlink to .claude/ subdirectory and remove .claude
from .gitignore to track AI configuration files in the repo.
…lette, typography, spacing, and component styles.
Render DESIGN.md as a visual design system page with:
- Color swatches for hex values
- Typography samples for font families/weights/sizes
- Spacing bars for px/rem values
- Toggle between preview and raw markdown views

Also cleans up unused design tokens (wip-*, code-inline, decorative-shadow)
from DESIGN.md.
Replace runtime readFile + manual frontmatter parsing with
Astro's `frontmatter` export and Vite `?raw` import so the
markdown source is bundled at build time. Fixes ENOENT for
`dist/AGENTS.md` during `astro build` and removes the dead
`a[data-mode-value]` listener loop on both pages.

Co-authored-by: Cursor <cursoragent@cursor.com>
github-actions Bot added a commit that referenced this pull request May 11, 2026
yuler and others added 6 commits May 11, 2026 13:32
Co-authored-by: Cursor <cursoragent@cursor.com>
Move log-reporter skill and update all references in AGENTS.md
and blog posts to use the new .agents/skills path.
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@yuler
Copy link
Copy Markdown
Owner Author

yuler commented May 11, 2026

/gemini review

github-actions Bot added a commit that referenced this pull request May 11, 2026
github-actions Bot added a commit that referenced this pull request May 11, 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 a comprehensive design system and agent instruction documentation by adding DESIGN.md and AGENTS.md along with dedicated Astro pages and components to render them. Key additions include a DesignTokenTable for visualizing design tokens and a Switch component for toggling between rendered previews and raw markdown. Feedback suggests refactoring duplicated Tailwind prose configurations and client-side scripts shared between the new pages to improve maintainability. Additionally, the Switch component should be made more reusable by avoiding hardcoded CSS classes in its script, ideally passing them via data attributes instead.

Comment thread src/pages/agents.astro Outdated
Comment thread src/pages/agents.astro
Comment thread src/components/Switch.astro Outdated
yuler and others added 2 commits May 11, 2026 14:03
github-actions Bot added a commit that referenced this pull request May 11, 2026
- Implement pointer-based card drag with CSS custom properties (--drag-x, --drag-y)
- Refactor layout: newest year at top, newest posts centered horizontally
- Update Thought component styling with prose utilities
- Change toolbar from rounded-full to rounded-sm for cleaner look
- Add tests for canvas layout algorithm
- Reduce rotation range to ±7° for subtler tilt
@yuler
Copy link
Copy Markdown
Owner Author

yuler commented May 11, 2026

/gemini review

github-actions Bot added a commit that referenced this pull request May 11, 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 establishes a formal design system and agent instruction framework for the repository. Key additions include DESIGN.md and AGENTS.md documents, dedicated pages to render these files, and new components like DesignTokenTable, MarkdownProse, and an interactive Switch. The thoughts canvas was also improved with dragging capabilities and refined layout logic. Feedback focuses on ensuring the Switch component works with client-side navigation and correcting several CSS styling choices that deviate from the design tokens defined in the new guidelines.

Comment thread src/components/Switch.astro Outdated
Comment thread src/components/MarkdownProse.astro Outdated
Comment thread src/components/Thought.astro Outdated
Co-authored-by: Cursor <cursoragent@cursor.com>
github-actions Bot added a commit that referenced this pull request May 11, 2026
@yuler
Copy link
Copy Markdown
Owner Author

yuler commented May 11, 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 introduces a comprehensive design system and agent instruction framework for the repository. Key additions include documentation in DESIGN.md and AGENTS.md with dedicated rendering pages, a DesignTokenTable component, and a MarkdownProse component for consistent typography. The thoughts canvas has been enhanced with card dragging capabilities, improved layout logic (newest-first ordering and subtle tilt), and new unit tests. Feedback focuses on optimizing the performance of the dragging implementation by using transform instead of top/left and avoiding expensive getComputedStyle calls, as well as improving the maintainability of long Tailwind class lists in Thought.astro.

Comment thread src/components/Thought.astro Outdated
Comment thread src/components/thoughts/thoughts-canvas-controller.ts
Comment thread src/pages/thoughts.astro Outdated
Comment thread src/pages/thoughts.astro Outdated
@yuler yuler changed the title ✨ Add design and agents pages with supporting site refactors ✨ Add agent/design pages and draggable thoughts canvas May 11, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
github-actions Bot added a commit that referenced this pull request May 11, 2026
@yuler
Copy link
Copy Markdown
Owner Author

yuler commented May 11, 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 establishes a formal design system and agent-first documentation for the repository, introducing DESIGN.md and AGENTS.md along with dedicated pages to render them. Key changes include the addition of several UI components—such as DesignTokenTable, MarkdownProse, and Switch—and the implementation of card dragging functionality on the thoughts canvas. The layout logic for thoughts was also refined to prioritize newer content and reduce visual clutter. Feedback focused on improving code maintainability by deduplicating design token definitions, enhancing the user experience with visual drag cues, and ensuring robust text-selection behavior during multi-touch interactions.

Comment thread src/components/DesignTokenTable.astro Outdated
Comment thread src/components/thoughts/thoughts-canvas-controller.ts Outdated
Comment thread src/components/thoughts/thoughts-canvas-controller.ts Outdated
Co-authored-by: Cursor <cursoragent@cursor.com>
@yuler yuler merged commit 81aca75 into main May 11, 2026
3 checks passed
@yuler yuler deleted the agents-stuff branch May 11, 2026 09:37
github-actions Bot added a commit that referenced this pull request May 11, 2026
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