-
Notifications
You must be signed in to change notification settings - Fork 0
Bug fixes #166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Bug fixes #166
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
d501ccd
library: scope tags per-account, add create-library gating, and norma…
MaryWylde 5812104
docs: auto-import AGENTS.md into CLAUDE.md so it loads automatically
MaryWylde 6458841
Merge remote-tracking branch 'origin/dev' into library-mobile-fix
MaryWylde 3dab1dc
Merge pull request #162 from keepsimpleio/library-mobile-fix
MaryWylde b9e28cd
library: self-host Source Sans Pro for tags and polish sidebar/toolbar
MaryWylde acce4b4
ci: harden Claude PR review workflow, mirroring agents-forge-frontend
MaryWylde d3d7078
Merge pull request #163 from keepsimpleio/fix/library-ui-polish
MaryWylde 49cf16c
Merge pull request #164 from keepsimpleio/chore/claude-pr-review
MaryWylde d4171fa
fix(uxcat): load bias descriptions during the test
MaryWylde 1166ea1
fix(uxcore): let the shared modal scroll instead of clipping
MaryWylde 8b2cf72
fix(uxcat): emit a valid .ics so Apple Calendar accepts the reminder
MaryWylde 1873535
fix(widget): lift the Copilot pill 70px on UX Core pages
MaryWylde c94b426
Merge pull request #165 from keepsimpleio/fix/uxcat-bugs
MaryWylde File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,44 +1,97 @@ | ||
| name: Claude Code Review | ||
| name: Claude PR Review | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened, synchronize, ready_for_review, reopened] | ||
| # Optional: Only run on specific file changes | ||
| # paths: | ||
| # - "src/**/*.ts" | ||
| # - "src/**/*.tsx" | ||
| # - "src/**/*.js" | ||
| # - "src/**/*.jsx" | ||
|
|
||
| # Only review the latest push: rapid pushes to the same PR would otherwise | ||
| # spawn overlapping runs that race on the tracking comment and burn | ||
| # Max-subscription quota. | ||
| concurrency: | ||
| group: claude-review-${{ github.event.pull_request.number }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| claude-review: | ||
| # Optional: Filter by PR author | ||
| # if: | | ||
| # github.event.pull_request.user.login == 'external-contributor' || | ||
| # github.event.pull_request.user.login == 'new-developer' || | ||
| # github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR' | ||
|
|
||
| # Skip draft PRs, and skip fork PRs: forked pull_request runs get no | ||
| # repo secrets and a read-only GITHUB_TOKEN, so the job would fail | ||
| # loudly on auth instead of skipping cleanly. | ||
| if: >- | ||
| github.event.pull_request.draft == false && | ||
| github.event.pull_request.head.repo.full_name == github.repository | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 15 | ||
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
| issues: write | ||
| id-token: write | ||
|
|
||
| actions: read | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| uses: actions/checkout@v6 | ||
| with: | ||
| fetch-depth: 1 | ||
|
|
||
| - name: Run Claude Code Review | ||
| id: claude-review | ||
| - name: Claude PR Review | ||
| uses: anthropics/claude-code-action@v1 | ||
| with: | ||
| # Authenticates against Mary's Claude Max subscription (OAuth token, | ||
| # not an API key). Secret set at repo level: CLAUDE_CODE_OAUTH_TOKEN. | ||
| claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} | ||
| plugin_marketplaces: 'https://github.com/anthropics/claude-code.git' | ||
| plugins: 'code-review@claude-code-plugins' | ||
| prompt: '/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }}' | ||
| # See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md | ||
| # or https://code.claude.com/docs/en/cli-reference for available options | ||
|
|
||
| # Use the workflow's own token so we don't need to install the | ||
| # third-party Claude GitHub App on the org. Requires the job | ||
| # permissions block below (pull-requests: write). | ||
| github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| # Live progress checklist comment on the PR while reviewing. | ||
| track_progress: true | ||
|
|
||
| prompt: | | ||
| REPO: ${{ github.repository }} | ||
| PR NUMBER: ${{ github.event.pull_request.number }} | ||
|
|
||
| You are reviewing the KeepSimpleOSS codebase: a Next.js **Pages | ||
| Router** app (React 19, TypeScript with strict off), styled with | ||
| SCSS Modules. See AGENTS.md for the full conventions. | ||
|
|
||
| Review this PR and focus on: | ||
|
|
||
| 1. Correctness & React best practices | ||
| - Hooks rules, effect dependencies, stale closures | ||
| - Unnecessary re-renders, missing keys, prop drilling | ||
| - SSR/hydration safety: no `window`/`localStorage`/`document` | ||
| at module top level (guard in effects or use ssr:false) | ||
| 2. TypeScript quality | ||
| - Avoid `any`, prefer precise types, exhaustive unions | ||
| 3. Project conventions (AGENTS.md) — flag violations: | ||
| - App Router patterns (`'use client'`, `next/navigation`, | ||
| `src/app/`) | ||
| - Tailwind, styled-components, CSS-in-JS, or inline styles | ||
| - New state libraries (Redux, Zustand, Jotai, SWR, React Query) | ||
| - Global CSS imported anywhere except `_app.tsx` | ||
| - `<img src={svg}>` instead of importing SVGs as components | ||
| - Named exports from `index.ts` barrels, or empty barrels | ||
| - Import-order / path-alias violations | ||
| - Changes to UX Core bias data, slugs, or schema (these need | ||
| explicit approval — flag, don't wave through) | ||
| 4. Accessibility & UX | ||
| - Semantic HTML, aria attributes, keyboard nav | ||
| 5. Security | ||
| - XSS via dangerouslySetInnerHTML, unsanitized input, | ||
| leaked secrets/env, unsafe URL handling | ||
| 6. Styling | ||
| - SCSS module hygiene; no hardcoded colors/spacing/breakpoints | ||
| that bypass the design tokens (keepsimple-style) | ||
|
|
||
| Leave inline comments for specific issues via the inline-comment | ||
| tool. Put your overall assessment and any praise in the tracking | ||
| comment summary. Be concise and actionable; skip nitpicks that a | ||
| linter would catch. | ||
|
|
||
| # Only the PR/commit-scoped inline-comment tool is granted. We | ||
| # deliberately do NOT grant raw `gh pr comment/view/diff`: those are | ||
| # unscoped, and since the review reads untrusted PR content (diff, | ||
| # description) a prompt-injection payload could steer them at other | ||
| # PRs/issues. PR context + diff are already injected via track_progress. | ||
| claude_args: | | ||
| --allowedTools "mcp__github_inline_comment__create_inline_comment" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,7 @@ | ||
| .button { | ||
| gap: 8px; | ||
| height: 44px; | ||
| box-sizing: border-box; | ||
| border: none; | ||
| cursor: pointer; | ||
| display: flex; | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
width: 79.5%over-constrains this absolutely-positioned element alongsideleft: 46px/right: 46px. Per CSS 10.3.7, whenleft,right, andwidthare all non-auto on an absolutely positioned box,rightis recomputed fromleft+widthand effectively ignored — so the symmetric "46px = circle + gap on each side" anchoring the comment above describes no longer holds. On any viewport where the parent width isn't the exact one this 79.5% was tuned against, the right end of the line will drift off the 46px anchor (and vice versa forleftin RTL). Recommend dropping thewidthline (lettingleft/rightalone determine the box) or removingrightifwidthis the intended fix, and updating the comment either way.Fix this →