Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 0 additions & 79 deletions .circleci/config.yml

This file was deleted.

6 changes: 3 additions & 3 deletions .claude/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ react-mosaic/
│ ├── types.ts # Type definitions
│ ├── contextTypes.ts # Context types
│ └── util/ # Utility functions
├── apps/demo-app/ # Demo application
├── apps/website/ # Docusaurus docs + demo
├── claude.md # LLM integration guide
├── CONTRIBUTING_AI.md # AI contribution guidelines
├── QUICKREF.md # Quick reference
Expand Down Expand Up @@ -189,6 +189,6 @@ For issues or questions:

## Version

This integration is designed for React Mosaic v0.20.0.
This integration is designed for React Mosaic v7.

Last updated: 2025-12-04
Last updated: 2026-04-15
11 changes: 0 additions & 11 deletions .claude/settings.local.json

This file was deleted.

6 changes: 3 additions & 3 deletions .claudeignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ pnpm-lock.yaml
*.js.map
*.css.map

# Demo app specific
apps/demo-app/dist/
apps/demo-app/.vite/
# Website build output
apps/website/build/
apps/website/.docusaurus/

# Git files
.git/
Expand Down
4 changes: 4 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!-- PR title must follow Conventional Commits: type: Description -->
<!-- Allowed types: feat | fix | docs | style | refactor | perf | test | build | ci | chore | revert -->
<!-- Example: feat: Add tab drag-and-drop support -->

#### Fixes #0000

#### Changes proposed in this pull request:
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,22 @@ jobs:
- name: Npm install
run: npm ci

- name: Build
run: npm run build:app
# The website imports the library from its built ESM bundle (see the
# webpack alias in apps/website/docusaurus.config.ts), so the library
# must be built before Docusaurus.
- name: Build library
run: npm run build:lib

- name: Build website
run: npx nx run website:build

- name: Setup Pages
uses: actions/configure-pages@v5

- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
# Upload apps dist folder
path: './dist/apps/demo-app'
path: './apps/website/build'

- name: Deploy to GitHub Pages
id: deployment
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pr-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ jobs:

- name: Build library
run: npm run build:lib
- name: Build app
run: npm run build:app

- name: Build website
run: npm run build:site
55 changes: 55 additions & 0 deletions .github/workflows/preview-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Preview Deploy

on:
pull_request:
types: [opened, synchronize, reopened]

jobs:
deploy-preview:
name: Deploy Preview
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
deployments: write
steps:
- name: Checkout code
uses: actions/checkout@v6

- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version-file: '.node-version'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Build library
run: npm run build:lib

- name: Build website
run: npx nx run website:build
env:
SITE_BASE_URL: /

- name: Deploy to Cloudflare Pages
id: deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy apps/website/build --project-name=react-mosaic --branch=pr-${{ github.event.pull_request.number }}

- name: Update PR comment
uses: marocchino/sticky-pull-request-comment@v2
with:
header: preview-deploy
message: |
## Preview Deployment

| | |
|---|---|
| **Status** | Deployed |
| **URL** | ${{ steps.deploy.outputs.deployment-url }} |
| **Commit** | ${{ github.sha }} |
11 changes: 10 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,13 @@ vite.config.*.timestamp*
vitest.config.*.timestamp*
.parcel-cache
.tsup
/dist
/dist

# Staged at Docusaurus config load — see apps/website/docusaurus.config.ts.
# Blueprint CSS is copied here so it can be served as plain static files and
# attached via the `stylesheets` config, instead of being bundled into the
# site-wide stylesheet (which would leak Blueprint's unscoped body rules).
apps/website/static/css/
.claude/settings.local.json

.claude/worktrees
1 change: 0 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
.editorconfig
.gitignore
.npmignore
.circleci/
tsconfig*.json
demo/
docs/
Expand Down
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
/coverage
/.nx/cache
/.nx/workspace-data
/.circleci
/.github
/.idea
/.parcel-cache
Expand Down
6 changes: 3 additions & 3 deletions CONTRIBUTING_AI.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ When adding/modifying code:

1. **Unit tests** - Add tests for new utilities in `*.spec.ts` files
2. **Type tests** - Ensure TypeScript compilation passes
3. **Visual tests** - Test in demo app for component changes
3. **Visual tests** - Test in the website playground (`npm start`) for component changes
4. **Edge cases** - Test with empty trees, single nodes, deeply nested trees

### Code Style Checklist
Expand Down Expand Up @@ -393,13 +393,13 @@ When unsure about implementation:
- **User docs**: `README.md`
- **Type reference**: `libs/react-mosaic-component/src/lib/types.ts`
- **Utility reference**: `libs/react-mosaic-component/src/lib/util/`
- **Demo examples**: `apps/demo-app/src/`
- **Demo examples**: `apps/website/src/components/Playground/`

## Helpful Commands

```bash
# Development
npm start # Start demo app
npm start # Start Docusaurus site (with live playground)
npm test # Run tests
npm run test:watch # Watch mode
npm run build:lib # Build library
Expand Down
7 changes: 3 additions & 4 deletions QUICKREF.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ A quick reference guide for developers and AI assistants working with React Mosa
|------|---------|
| Start dev server | `npm start` |
| Run tests | `npm test` |
| Watch tests | `npm run test:watch` |
| Build library | `npm run build:lib` |
| Build demo | `npm run build:app` |
| Build docs site | `npm run build:site` |
| Lint | `npm run lint` |
| Format | `npm run format` |
| Type check | `npm run build-lib:check` |
Expand Down Expand Up @@ -450,15 +449,15 @@ npm run test:watch
## Migration (Legacy to Modern)

```typescript
// OLD (v0.19)
// OLD (v6)
{
direction: 'row',
first: 'left',
second: 'right',
splitPercentage: 40
}

// NEW (v1.0+)
// NEW (v7+)
{
type: 'split',
direction: 'row',
Expand Down
Loading
Loading