Skip to content

Add admin group CRUD#597

Merged
Perdolique merged 1 commit into
masterfrom
next-iteration
Apr 5, 2026
Merged

Add admin group CRUD#597
Perdolique merged 1 commit into
masterfrom
next-iteration

Conversation

@Perdolique
Copy link
Copy Markdown
Owner

Summary

This PR adds the missing admin CRUD flow for equipment groups 😎

  • add POST /api/equipment/groups for admin-only group creation
  • add PATCH /api/equipment/groups/[id] and DELETE /api/equipment/groups/[id] with contribution logging
  • extend shared validation schemas and unit coverage for group ids and mutation payloads
  • update completed roadmap notes so the catalog management status stays honest

Motivation

Groups already had public read support, but admin management was still incomplete 🤏
This closes that gap, keeps route conventions aligned with brands, and makes the contribution log consistent for group mutations too 🧰

Related Issues

  • None

Testing

  • pnpm run lint:markdown
  • pnpm run test:typecheck
  • pnpm run test:unit:agent
  • pnpm run lint:oxlint
  • pnpm run build
  • pnpm run test:e2e:ci

@Perdolique Perdolique self-assigned this Apr 5, 2026
@Perdolique Perdolique marked this pull request as ready for review April 5, 2026 19:32
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 5, 2026

🎉 Deployed to Cloudflare!

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request implements the administrative CRUD operations for equipment groups, including creation, update, and deletion endpoints with associated contribution logging. Feedback focuses on improving maintainability by centralizing the GroupRecord interface and enhancing the robustness of the API by wrapping database operations and audit logging in transactions to ensure atomicity. Additionally, it is recommended to refine error handling to distinguish between server-side failures and client-side constraint violations.

Comment thread server/api/equipment/groups/index.post.ts Outdated
Comment thread server/api/equipment/groups/index.post.ts
Comment thread server/api/equipment/groups/[id].patch.ts
Comment thread server/api/equipment/groups/[id].delete.ts
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c8c49a4184

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread server/utils/validation/schemas.ts
@Perdolique Perdolique changed the title [codex] Add admin group CRUD Add admin group CRUD Apr 5, 2026
- ✨ Add admin create, update, and delete group handlers
- ✅ Cover group validation and handlers with unit tests
- 🧹 Align brand delete contribution target id formatting
@Perdolique Perdolique merged commit 8b527fc into master Apr 5, 2026
11 checks passed
@Perdolique Perdolique deleted the next-iteration branch April 5, 2026 19:59
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