-
Notifications
You must be signed in to change notification settings - Fork 40
1049 uggo access gui #1053
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1049 uggo access gui #1053
Conversation
davidagardh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice redesign! See comments for requested code change
| const bgClass = depth % 2 === 0 ? "bg-base-200" : "bg-base-200/60"; | ||
| const isLeaf = !!node.fullPath && Object.keys(node.children).length === 0; | ||
| // faktisk policy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nits: comments in english
| return root; | ||
| })(); | ||
| function render(node: PolicyNode, depth = 0): string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs fix: magic html string is not nice for development experience or safety. Rewrite using Svelte snippets or create a component. (A component could maybe be shared between access and positions pages)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Mer användbar, not beautiful, but readable.