-
Notifications
You must be signed in to change notification settings - Fork 39
fix(ui): display missing OpenAPI fields in ManageDataTables, RolesAndPermissions and Users pages #97
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
base: dev
Are you sure you want to change the base?
fix(ui): display missing OpenAPI fields in ManageDataTables, RolesAndPermissions and Users pages #97
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -193,7 +193,7 @@ | |||||||||||||
| {user.officeName} | ||||||||||||||
| </TableCell> | ||||||||||||||
| <TableCell className="px-6 py-4 text-zinc-700 dark:text-zinc-200"> | ||||||||||||||
| {'Missing in OpenApi'} | ||||||||||||||
| {(user as any).isSelfServiceUser ? 'Yes' : 'No'} | ||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avoid defaulting unknown When the field is missing/null, this currently renders “No”, which is inaccurate. Render Suggested change- {(user as any).isSelfServiceUser ? 'Yes' : 'No'}
+ {(user as any).isSelfServiceUser === true
+ ? 'Yes'
+ : (user as any).isSelfServiceUser === false
+ ? 'No'
+ : '—'}📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||
| </TableCell> | ||||||||||||||
| </TableRow> | ||||||||||||||
| ))} | ||||||||||||||
|
|
||||||||||||||
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.
Do not map unknown
disabledvalues to “Enabled” (Line 178).If
disabledis absent/undefined, the current ternary renders “Enabled”, which is a misleading status. Handle explicittrue/falseand fall back to unknown.Suggested change
📝 Committable suggestion
🤖 Prompt for AI Agents