Skip to content

Commit 13bff0f

Browse files
ChengYanJinclaude
andcommitted
feat: add Claude Code review workflow and repo context
Add CLAUDE.md with repo description and tech stack context, and a GitHub Actions workflow that triggers Claude Code review on every PR via the shared scality/workflows reusable workflow. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent f7d28f4 commit 13bff0f

2 files changed

Lines changed: 40 additions & 0 deletions

File tree

.github/workflows/review.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Code Review
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize]
6+
7+
jobs:
8+
review:
9+
uses: scality/workflows/.github/workflows/claude-code-review.yml@v2
10+
secrets: inherit

CLAUDE.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# core-ui
2+
3+
This is **Scality's shared React component library** (`@scality/core-ui`). It contains:
4+
5+
- Reusable UI components (buttons, modals, tables, charts, forms, navigation) in `src/lib/components/`
6+
- A design-system theme (`src/lib/style/theme.ts`) built on styled-components and styled-system
7+
- Custom ESLint plugin (`valalint`) enforcing UI conventions (`src/lib/valalint/`)
8+
- Storybook documentation for every component (`stories/`)
9+
- A `next.ts` entry point for newer/experimental components (`src/lib/next.ts`)
10+
11+
## Tech stack
12+
13+
- **Language:** TypeScript (strict mode, `noImplicitAny` off)
14+
- **UI:** React 18/19, styled-components v5, styled-system, Floating UI
15+
- **Charts:** Recharts
16+
- **Forms:** react-hook-form
17+
- **Tables:** react-table v7
18+
- **Routing:** react-router v7
19+
- **Testing:** Jest + Testing Library
20+
- **Storybook:** v10 with Webpack 5
21+
- **Build:** TypeScript compiler (`tsc`) — no bundler
22+
- **Linting:** ESLint + custom valalint plugin
23+
- **Package:** Published to npm as `@scality/core-ui`
24+
25+
## Commands
26+
27+
- `npm test` — run Jest tests
28+
- `npm run build` — compile TypeScript to `dist/`
29+
- `npm run lint` — run ESLint
30+
- `npm run storybook` — start Storybook dev server on port 3001

0 commit comments

Comments
 (0)