Skip to content

Add HTMX co-owner invitation management endpoints - #100

Open
beriman wants to merge 1 commit into
mainfrom
codex/add-cancel_co_owner_invite-method-and-endpoints
Open

Add HTMX co-owner invitation management endpoints#100
beriman wants to merge 1 commit into
mainfrom
codex/add-cancel_co_owner_invite-method-and-endpoints

Conversation

@beriman

@beriman beriman commented Oct 4, 2025

Copy link
Copy Markdown
Owner

Summary

  • add service helpers to remove pending invites and supply team context for partial rendering
  • expose HTMX endpoints to invite, approve, and cancel co-owner requests using TemplateResponse updates
  • refactor the brand detail template to use HTMX forms and a reusable pending-team partial with aria-live feedback

Testing

  • pytest

https://chatgpt.com/codex/tasks/task_e_68e19fb0333083279b19e4cf1d4799cf

@vercel

vercel Bot commented Oct 4, 2025

Copy link
Copy Markdown

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

Project Deployment Preview Comments Updated (UTC)
codexswi Ready Ready Preview Comment Oct 4, 2025 11:46pm

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

Copy link
Copy Markdown

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.

ℹ️ 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

Comment on lines +61 to +72
def _render_pending_team_column(
request: Request,
brand_slug: str,
*,
feedback_message: str | None = None,
feedback_type: str = "info",
form_state: Dict[str, str] | None = None,
status_code: int = status.HTTP_200_OK,
) -> HTMLResponse:
templates = request.app.state.templates
context = brand_service.get_team_partial_context(brand_slug)
context.update(

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Handle missing brand when rendering pending-team partial

The helper used by the invite/approve/cancel endpoints calls brand_service.get_team_partial_context(brand_slug) without guarding against BrandNotFound. Those routes catch BrandError and try to render this partial even when the slug is invalid, so a POST like /brands/unknown/co-owners results in an uncaught BrandNotFound and a 500 response instead of a 404 or a friendly error partial. Please return a proper error when the brand is missing before attempting to re-render the partial.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant