logto icon indicating copy to clipboard operation
logto copied to clipboard

refactor(console): add management api access flag for role options

Open xiaoyijun opened this issue 1 year ago • 1 comments

Summary

Add management API access flag for m2m role options for a better user experience, since it's hard to know if a m2m role has the management API access.

And per offline discussion with designers, now we don't need to display the role assginment count in the role options, since role name is unique in our system, that information seems redundant.

Testing

Before

image

After

image

Checklist

  • [ ] .changeset
  • [ ] unit tests
  • [ ] integration tests
  • [x] necessary TSDoc comments

xiaoyijun avatar May 24 '24 02:05 xiaoyijun

COMPARE TO master

Total Size Diff :warning: :chart_with_upwards_trend: +10.19 KB

Diff by File
Name Diff
packages/console/src/assets/icons/management-api-access.svg :chart_with_upwards_trend: +1.77 KB
packages/console/src/components/RolesTransfer/components/RoleInformation/index.module.scss :chart_with_upwards_trend: +229 Bytes
packages/console/src/components/RolesTransfer/components/RoleInformation/index.tsx :chart_with_upwards_trend: +899 Bytes
packages/console/src/components/RolesTransfer/index.module.scss :chart_with_upwards_trend: +164 Bytes
packages/console/src/components/RolesTransfer/index.tsx :chart_with_upwards_trend: +1.62 KB
packages/console/src/consts/env.ts :chart_with_upwards_trend: +53 Bytes
packages/console/src/hooks/use-user-preferences.ts :chart_with_upwards_trend: +79 Bytes
packages/phrases/src/locales/de/translation/admin-console/roles.ts :chart_with_upwards_trend: +373 Bytes
packages/phrases/src/locales/en/translation/admin-console/roles.ts :chart_with_upwards_trend: +341 Bytes
packages/phrases/src/locales/es/translation/admin-console/roles.ts :chart_with_upwards_trend: +379 Bytes
packages/phrases/src/locales/fr/translation/admin-console/roles.ts :chart_with_upwards_trend: +409 Bytes
packages/phrases/src/locales/it/translation/admin-console/roles.ts :chart_with_upwards_trend: +384 Bytes
packages/phrases/src/locales/ja/translation/admin-console/roles.ts :chart_with_upwards_trend: +402 Bytes
packages/phrases/src/locales/ko/translation/admin-console/roles.ts :chart_with_upwards_trend: +361 Bytes
packages/phrases/src/locales/pl-pl/translation/admin-console/roles.ts :chart_with_upwards_trend: +408 Bytes
packages/phrases/src/locales/pt-br/translation/admin-console/roles.ts :chart_with_upwards_trend: +420 Bytes
packages/phrases/src/locales/pt-pt/translation/admin-console/roles.ts :chart_with_upwards_trend: +404 Bytes
packages/phrases/src/locales/ru/translation/admin-console/roles.ts :chart_with_upwards_trend: +518 Bytes
packages/phrases/src/locales/tr-tr/translation/admin-console/roles.ts :chart_with_upwards_trend: +342 Bytes
packages/phrases/src/locales/zh-cn/translation/admin-console/roles.ts :chart_with_upwards_trend: +299 Bytes
packages/phrases/src/locales/zh-hk/translation/admin-console/roles.ts :chart_with_upwards_trend: +302 Bytes
packages/phrases/src/locales/zh-tw/translation/admin-console/roles.ts :chart_with_upwards_trend: +302 Bytes

github-actions[bot] avatar May 24 '24 02:05 github-actions[bot]