Skip to content

fix: resolve 6 admin UI bugs (routes, 403, 404s)#47

Open
Weegy wants to merge 1 commit intomainfrom
hotfix/admin-ui-bugs
Open

fix: resolve 6 admin UI bugs (routes, 403, 404s)#47
Weegy wants to merge 1 commit intomainfrom
hotfix/admin-ui-bugs

Conversation

@Weegy
Copy link
Copy Markdown
Contributor

@Weegy Weegy commented Mar 16, 2026

Summary

Fixes 6 production UI bugs:

Bug 1: Webhooks — "403 No accessible space found"

  • Removed space_id requirement from WebhookAdminController::index(). Webhooks are global.

Bug 2: Plugins → 404 Not Found

  • Added Inertia web route: GET /admin/plugins → Admin/Plugins/Index

Bug 3: Media → 404 Not Found

  • Added Inertia web route: GET /admin/media → Media/Index

Bug 4: Knowledge Graph → "Failed to load graph HTTP 404"

  • Added GET /api/v1/graph/space/{spaceId} endpoint (was missing, viewer called it).

Bug 5: i18n — No language settings UI

  • Added Inertia web route: GET /admin/settings/locales → Settings/Locales
  • Added Languages nav link in MainLayout.vue

Bug 6: Content → Related Content → "Failed to load related content"

  • RelatedContentWidget now handles 404/errors gracefully, shows empty state.

Quality Gates

  • pint --test — PASS
  • npm run build — PASS
  • php -l routes/web.php — PASS

Bug 1: WebhookAdminController - remove space_id requirement from index().
  Webhooks are global; listing them no longer aborts with 403 when user
  has no role pivot space_id.

Bug 2: Add missing Inertia web route for /admin/plugins → Admin/Plugins/Index.

Bug 3: Add missing Inertia web route for /admin/media → Media/Index.

Bug 4: Add /api/v1/graph/space/{spaceId} endpoint that returns nodes+edges
  for the KnowledgeGraphViewer (was calling a non-existent URL).

Bug 5: Add missing Inertia web route for /admin/settings/locales → Settings/Locales.
  Add 'Languages' nav link in MainLayout.vue.

Bug 6: RelatedContentWidget now gracefully handles 404/422 responses and
  network errors — shows 'No related content found' instead of error banner.
  Also passes space_id param correctly.
@Weegy Weegy added the bug Something isn't working label Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant