Skip to content

Add automatic canvas layout - #249

Merged
arjunkomath merged 2 commits into
mainfrom
feat/auto-layout-canvas
Jul 31, 2026
Merged

Add automatic canvas layout#249
arjunkomath merged 2 commits into
mainfrom
feat/auto-layout-canvas

Conversation

@arjunkomath

Copy link
Copy Markdown
Member

Summary

  • add a desktop-only icon control that centers services in a spaced three-column canvas grid
  • grow the canvas for larger or manually positioned layouts while preserving drag behavior
  • persist manual and automatic position changes through one optimistic, rollback-safe SWR mutation
  • add an authorized, validated, transactional batch position endpoint

Verification

  • ./node_modules/.bin/tsc --noEmit
  • npx biome check app/api/projects/[id]/services/route.ts app/api/projects/[id]/services/[serviceId]/position/route.ts components/service/service-canvas.tsx
  • git diff --check
  • Oracle review: approved with no remaining blockers

Test limitation

  • Vitest could not start in the orb because Node 20.9 lacks APIs required by the installed pnpm/Vitest toolchain.

Basecamp task

Amp-Thread-ID: https://ampcode.com/threads/T-019fb7e3-f727-72eb-8a17-a4594e782211
Co-authored-by: Arjun Komath <arjunkomath@gmail.com>
@github-actions

github-actions Bot commented Jul 31, 2026

Copy link
Copy Markdown

React Doctor found no issues. 🎉

⚠️ Warning: .github/workflows/react-doctor.yml is configured incorrectly. See below to fix.

React Doctor compares against main to report only the issues this pull request introduces. This run couldn't complete that comparison (usually a shallow CI checkout with no merge base), so it listed every issue in the changed files, including ones that already existed on main.

Add fetch-depth: 0 to the actions/checkout step in .github/workflows/react-doctor.yml so the checkout includes the history React Doctor needs:

 jobs:
   react-doctor:
     steps:
       - uses: actions/checkout@v5
+        with:
+          fetch-depth: 0

       - uses: millionco/react-doctor@v2

To silence this warning, set silence-missing-baseline-warning: true on the React Doctor action.

Reviewed by React Doctor for commit bd6657c.

Amp-Thread-ID: https://ampcode.com/threads/T-019fb7e3-f727-72eb-8a17-a4594e782211
Co-authored-by: Arjun Komath <arjunkomath@gmail.com>
@arjunkomath
arjunkomath added this pull request to the merge queue Jul 31, 2026
Merged via the queue into main with commit d40c865 Jul 31, 2026
8 checks passed
@arjunkomath
arjunkomath deleted the feat/auto-layout-canvas branch July 31, 2026 12:01
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.

2 participants