Skip to content

Conversation

@carlhaggren
Copy link
Collaborator

Mer användbar, not beautiful, but readable.

@davidagardh davidagardh self-requested a review January 20, 2026 16:06
@davidagardh davidagardh moved this from 🆕 New to 📝In review in CPU Jan 20, 2026
@davidagardh davidagardh linked an issue Jan 20, 2026 that may be closed by this pull request
Copy link
Contributor

@davidagardh davidagardh left a 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
Copy link
Contributor

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 {
Copy link
Contributor

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)

Copy link
Contributor

@davidagardh davidagardh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@carlhaggren carlhaggren merged commit 853ee6e into main Jan 21, 2026
4 checks passed
@carlhaggren carlhaggren deleted the 1049-Uggo-Access-Gui branch January 21, 2026 13:23
@github-project-automation github-project-automation bot moved this from 📝In review to ✅ Done in CPU Jan 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

Access GUI uggo, make beautiful :)

3 participants