You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Blade (javaabu/forms) and Inertia React (@javaabu/forms) views #10
The controller already renders permissions::roles.{index,create,show,edit} (Blade) and permissions::Roles/{Index,Create,Show,Edit} (Inertia), chosen by config('permissions.views').
The props are fixed and documented in docs/basic-usage/managing-roles.md#pages: title, guard, routes, roles, search, role, and permission_groups with granted flags.
Views publish with --tag=permissions-views.
The pages are thin layers over that. The permission picker from the roles-form-and-permission-list-component branch (select all, per-group select, search) is the reference for the UI.
I'll pick this up once forms v2's components and manifest's Inertia support are on their branches.
Blade:resources/views/roles (index, create, edit, show, plus partials), built with javaabu/forms v2 components. They extend config('permissions.layout') / layout_section and work with both Onu and Bootstrap 6. A small script, permissions::roles, comes through javaabu/manifest and handles select all/none per permission group and data-confirm on delete.
React:resources/js/Pages/Roles/*.tsx with @javaabu/forms, registered with manifest (->js()->pages()), resolved with resolvePage(). Reusable components are exported as @javaabu/permissions: RoleForm, PermissionGroupFields, RoleActions. The text comes translated from the server in strings, as in exports.
Same props in both stacks:guard, routes, urls, can, plus translations on the forms. RoleResource gained can, links and permissions_count.
Decision: component tags of optional packages (<x-translatable::text>) live in their own partial, because Blade compiles every tag in a view even inside @if.
Tests: Blade pages (permissions, old input, Dhivehi with RTL, physical-direction classes, Bootstrap), Inertia props, manifest registration, and Vitest for the script and components.
Activity
n4ff4h commentedon Nov 4, 2026
Blocked on the view stacks, which are still being built:
<x-forms::…>component contract isn't settled yet. Feature parity with @javaabu/forms forms#9 (parity with @javaabu/forms) and Onu framework using Onu's Tailwind styles forms#8 (Onu framework) are open onnext-gen.permissions::Roles/Index). @javaabu/forms needs Native Laravel Inertia support react-forms#7 (Inertia), Dhivehi localization and RTL #9 (binding and old input), Blade (javaabu/forms) and Inertia React (@javaabu/forms) views #10 (errors) and Optional javaabu/translatable support #12 (parity).What's ready for the pages:
permissions::roles.{index,create,show,edit}(Blade) andpermissions::Roles/{Index,Create,Show,Edit}(Inertia), chosen byconfig('permissions.views').docs/basic-usage/managing-roles.md#pages:title,guard,routes,roles,search,role, andpermission_groupswithgrantedflags.--tag=permissions-views.The pages are thin layers over that. The permission picker from the
roles-form-and-permission-list-componentbranch (select all, per-group select, search) is the reference for the UI.I'll pick this up once forms v2's components and manifest's Inertia support are on their branches.
Add the role pages in Blade and Inertia React (work in progress)
Test the role pages in both stacks and with translatable; CI for JS a…
Document the role pages, translatable descriptions and right to left;…
n4ff4h commentedon Nov 4, 2026
Done on
next-gen(f3b6384, 75a5f46, 5fa5a41; CI green).resources/views/roles(index, create, edit, show, plus partials), built with javaabu/forms v2 components. They extendconfig('permissions.layout')/layout_sectionand work with both Onu and Bootstrap 6. A small script,permissions::roles, comes through javaabu/manifest and handles select all/none per permission group anddata-confirmon delete.resources/js/Pages/Roles/*.tsxwith@javaabu/forms, registered with manifest (->js()->pages()), resolved withresolvePage(). Reusable components are exported as@javaabu/permissions:RoleForm,PermissionGroupFields,RoleActions. The text comes translated from the server instrings, as in exports.guard,routes,urls,can, plustranslationson the forms.RoleResourcegainedcan,linksandpermissions_count.<x-translatable::text>) live in their own partial, because Blade compiles every tag in a view even inside@if.@javaabu/forms'IconNamelacks eye/pencil/trash-2/check; that's Icon parity with javaabu/forms v2: eye, pencil, trash-2, check, … react-forms#21.