Skip to content

Migrate webhooks views/modals to shared components and standardize form CSS#1250

Merged
SudoThijn merged 4 commits intofeature/nextcloud-vue-package-usagefrom
feature/REGISTERS-490/webhooks-page
Mar 31, 2026
Merged

Migrate webhooks views/modals to shared components and standardize form CSS#1250
SudoThijn merged 4 commits intofeature/nextcloud-vue-package-usagefrom
feature/REGISTERS-490/webhooks-page

Conversation

@SudoThijn
Copy link
Copy Markdown
Contributor

@SudoThijn SudoThijn commented Mar 31, 2026

Summary

  • WebhooksIndex.vue: Migrated to CnIndexPage component, replacing custom table/filter/pagination logic
  • WebhookLogsIndex.vue: Migrated to CnIndexPage with URL-based routing via optional webhook ID parameter; fixed dropdown filter showing IDs instead of names; fixed webhook column displaying "#undefined"
  • EditWebhook.vue: Refactored from NcDialog + bootstrap-vue layout to CnTabbedFormDialog pattern
  • ViewWebhookLog.vue: Refactored to use CnDetailCard and CnJsonViewer (with multi-language support for response body rendering)
  • Form CSS standardization: Added consistent .field-hint, .selectField, .checkboxField, and dropdown option styles (.option-content, .option-title, .option-description, .option-meta) to EditApplication, EditConfiguration, and EditOrganisation
  • Backend: Added webhooksLogsDetails route and controller method for direct URL access to webhook logs (/webhooks/logs/{id})

Changes

Webhook views (2 files):
WebhooksIndex and WebhookLogsIndex rewritten with CnIndexPage — net reduction of ~570 lines.

Webhook modals (2 files):
EditWebhook migrated to CnTabbedFormDialog, ViewWebhookLog simplified with CnDetailCard/CnJsonViewer.

Form modals CSS (3 files):
EditApplication, EditConfiguration, EditOrganisation updated with standardized form field and dropdown option styles.

Backend (2 files):
New route in routes.php and UiController::webhooksLogsDetails() for /webhooks/logs/{id}.

Router (1 file):
Updated frontend route to accept optional webhook ID parameter.

Requires: ConductionNL/nextcloud-vue#40

@SudoThijn SudoThijn merged commit c288bff into feature/nextcloud-vue-package-usage Mar 31, 2026
19 checks passed
@SudoThijn SudoThijn deleted the feature/REGISTERS-490/webhooks-page branch March 31, 2026 13:08
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