Skip to content

chore: move authz types to shared package#5711

Merged
kaposke merged 1 commit into
masterfrom
gui/NAN-5015/chore-move-auth-types-to-shared-packages
Mar 26, 2026
Merged

chore: move authz types to shared package#5711
kaposke merged 1 commit into
masterfrom
gui/NAN-5015/chore-move-auth-types-to-shared-packages

Conversation

@kaposke
Copy link
Copy Markdown
Contributor

@kaposke kaposke commented Mar 25, 2026

Proposal to move authz types to the types package. Moves permissions to a new authz package.

The authz package is very small containing only the permission definitions (for now at least).

Q: why not moving permissions to shared or utils?
A: because they are not imported by the frontend, for good reasons (they are heavy on backend specific stuff).

Lmk if you have better ideas.


It also updates server imports to consume the new authz package and wires the new package into TypeScript project references and package dependencies across the server and webapp.


This summary was automatically generated by @propel-code-bot

@kaposke kaposke requested review from a team, TBonnin and pfreixes March 25, 2026 21:42
@linear
Copy link
Copy Markdown

linear Bot commented Mar 25, 2026

NAN-5015 RBAC UI

Copy link
Copy Markdown
Contributor

@propel-code-bot propel-code-bot Bot left a comment

Choose a reason for hiding this comment

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

No issues found; changes look consistent and well-integrated.

Status: No Issues Found | Risk: Low

Review Details

📁 21 files reviewed | 💬 0 comments

Instruction Files
└── .claude/
    ├── agents/
    │   └── nango-docs-migrator.md
    └── skills

"@hookform/resolvers": "5.2.2",
"@mantine/core": "7.12.1",
"@mantine/prism": "5.10.5",
"@nangohq/authz": "file:../authz",
Copy link
Copy Markdown
Collaborator

@TBonnin TBonnin Mar 26, 2026

Choose a reason for hiding this comment

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

why do we need an authz package and not import the type from the types package directly?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Types did move to the types package. The authz package currently holds exclusively packages/authz/lib/permissions.ts which is not a type. The types package currently only emits type declarations, so I didn't want to break that rule for this. And the other shared packages (shared, utils) are backend heavy.

I agree it seems overkill but I couldn't think of another way. Accepting suggestions

@kaposke kaposke requested a review from TBonnin March 26, 2026 16:35
@kaposke kaposke added this pull request to the merge queue Mar 26, 2026
Merged via the queue into master with commit 63e01f2 Mar 26, 2026
26 checks passed
@kaposke kaposke deleted the gui/NAN-5015/chore-move-auth-types-to-shared-packages branch March 26, 2026 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants