Skip to content

[STU-106] Add company contacts and stores management pages#25

Merged
BAWES merged 1 commit into
mainfrom
feature/STU-106-company-contacts-stores
May 21, 2026
Merged

[STU-106] Add company contacts and stores management pages#25
BAWES merged 1 commit into
mainfrom
feature/STU-106-company-contacts-stores

Conversation

@BAWES
Copy link
Copy Markdown
Owner

@BAWES BAWES commented May 21, 2026

Summary

Adds company-scoped contacts and stores management:

  • Contacts page (/company/contacts) — DataTable listing of all contacts linked to the user's companies, with add/remove forms
  • Stores page (/company/stores) — DataTable listing of all store locations linked to the user's companies, with add/remove forms
  • Server actions with Zod validation for add/remove contact and add/remove store operations
  • Data helpers scoped to linked companies via company_contact join
  • Navigation entries for Contacts and Stores in the company workspace rail

Dependencies

  • Depends on STU-105 (merged) which provides company-data.ts and the "New Request" button pattern

Test plan

  • Type check passes (npx tsc --noEmit)
  • Company user can view contacts page at /company/contacts
  • Company user can view stores page at /company/stores
  • Add contact form validates required fields
  • Add store form validates required fields
  • Remove buttons work with confirmation flow

🤖 Generated with Claude Code

- Contacts page at /company/contacts with add/remove contact forms
- Stores page at /company/stores with add/remove store forms
- Server actions with Zod validation for CRUD operations
- Data helpers scoped to linked companies via company_contact
- Navigation entries for Contacts and Stores in company rail

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
studenthub-next Error Error May 21, 2026 10:54am

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 21, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: e05d3807-ee18-4ce7-a406-f53b3b708ffa

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/STU-106-company-contacts-stores

Comment @coderabbitai help to get the list of available commands and usage tips.

@BAWES BAWES marked this pull request as ready for review May 21, 2026 10:55
@BAWES BAWES merged commit 8a1dcc4 into main May 21, 2026
5 of 9 checks passed
@BAWES BAWES deleted the feature/STU-106-company-contacts-stores branch May 21, 2026 10:55
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