Repository navigation
feat(ui): show technical details and readable permissions - #13
Merged
Merged
Conversation
Technical details were hidden behind a summary with no expand marker. Permissions are now described per module and role, with rootfull shown first, in all five languages.
Malformed labels now show raw instead of being dropped, and only self:selfadm is hidden. Lookups ignore Object.prototype keys. IDs wrap after @ and : so the table fits between 601 and 800px.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The technical details block was folded behind a summary with no expand marker, so people did not see they could click on it. I made it always visible. It is short and it holds what an admin wants to check before installing: root or not, permissions, ports.
I also reworked how permissions are described, using the approach of NethServer/ns8-core#1395. Each permission is now looked up by module and role pair, so routeadm on nethvoice-proxy no longer reads as a Traefik permission. Labels with several roles like node:fwadm,portsadm are split. A rootfull app gets an extra red row on top. self:selfadm is hidden since core grants it to every app. Unknown roles fall back to "Role X on Y".
Permissions are shown as a two-column table, raw ID on the left and the explanation on the right. I added the strings in all five languages. The French, Italian, German and Spanish ones would benefit from a native reader.