Skip to content

Add admin UI for contexts and label extractor definitions - #246

Merged
Tooyosi merged 1 commit into
mainfrom
admin-ui-implementation
Jun 26, 2026
Merged

Add admin UI for contexts and label extractor definitions#246
Tooyosi merged 1 commit into
mainfrom
admin-ui-implementation

Conversation

@Tooyosi

@Tooyosi Tooyosi commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

This PR adds an admin UI for managing contexts and DB-backed label extractor definitions in Kade.

What Changed

Context admin

  • adds /admin/contexts list and detail pages
  • adds create, edit, and delete flows for contexts
  • validates module_name / extractor_name before creating or updating a context
  • shows definition state on the contexts index as:
    • Enabled
    • Disabled
    • None

Label extractor definition admin

  • adds /admin/label_extractor_definitions list page
  • adds create, edit, and delete flows for label extractor definitions
  • after editing a definition:
    • returns to the context page if edit started there
    • otherwise returns to the global definitions list

Admin form UX

  • adds delete confirmation dialogs
  • preserves entered JSON on validation failures
  • adds lightweight JSON assistance in admin forms:
    • inline valid/invalid status
    • formatting on blur/submit
    • submit blocking for invalid JSON

@Tooyosi
Tooyosi requested review from lcjohnso and zwolf June 9, 2026 13:10
@Tooyosi

Tooyosi commented Jun 18, 2026

Copy link
Copy Markdown
Contributor Author

I made a video to make the review easier. Please check it out @zwolf @lcjohnso

@Tooyosi
Tooyosi merged commit b58b362 into main Jun 26, 2026
1 check passed
@Tooyosi
Tooyosi deleted the admin-ui-implementation branch June 26, 2026 08:07
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