@nocobase/app-template-default 1.0.0-beta.82 → 1.0.0-beta.84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/rules/build-and-deploy.md +1 -1
- package/.agents/rules/shell.md +4 -0
- package/AGENTS.md +9 -1
- package/README.MD +10 -2
- package/client/components/back-button.tsx +3 -5
- package/client/components/default-access-editor.tsx +13 -2
- package/client/components/feedback-form.tsx +474 -0
- package/client/components/lifecycle-diagram.tsx +10 -10
- package/client/components/permission-editor.tsx +396 -210
- package/client/extensions/nocobase-auth-forms/password-login-form.tsx +17 -6
- package/client/extensions/nocobase-auth-forms/password-registration-form.tsx +24 -7
- package/client/extensions/nocobase-auth-forms/password-reset-form.tsx +19 -7
- package/client/extensions/nocobase-auth-forms/password-reset-request-form.tsx +15 -7
- package/client/extensions/nocobase-device-approval/device-approval.tsx +7 -2
- package/client/extensions/nocobase-device-approval/locales/en-US.ts +16 -0
- package/client/extensions/nocobase-device-approval/locales/zh-CN.ts +7 -0
- package/client/extensions/nocobase-file-component-ui/components/file-preview-dialog.tsx +20 -17
- package/client/hooks/use-list-data.ts +77 -0
- package/client/hooks/use-list-location.ts +23 -0
- package/client/hooks/use-list-tabs.ts +42 -0
- package/client/hooks/use-table-url-state.ts +143 -30
- package/client/locales/system/en-US.ts +10 -0
- package/client/locales/system/settings-en-US.ts +8 -0
- package/client/locales/system/settings-zh-CN.ts +8 -0
- package/client/locales/system/zh-CN.ts +8 -0
- package/client/pages/settings/default-access-form.tsx +44 -26
- package/client/pages/settings/default-access.tsx +56 -27
- package/client/pages/settings/hooks.tsx +4 -59
- package/client/pages/settings/page-permissions.ts +17 -0
- package/client/pages/settings/permissions-model.ts +54 -58
- package/client/pages/settings/role-form.tsx +98 -56
- package/client/pages/settings/roles.tsx +11 -3
- package/client/pages/settings/shared.tsx +43 -33
- package/client/pages/settings/user-form.tsx +51 -30
- package/client/pages/settings/users.tsx +39 -27
- package/client/routing/session-preparation.tsx +10 -3
- package/database/main/migrations/202611020002_create_mutation_receipts.ts +19 -0
- package/package.json +13 -12
- package/server/providers/index.ts +4 -1
- package/server/providers/submission.ts +61 -0
- package/tests/client/auth-i18n.test.tsx +9 -0
- package/tests/client/back-button.test.tsx +3 -3
- package/tests/client/default-access.test.tsx +60 -4
- package/tests/client/form-feedback.test.tsx +589 -0
- package/tests/client/list-recovery.test.tsx +373 -0
- package/tests/client/list-tabs.test.tsx +121 -0
- package/tests/client/page-permission-navigation.test.ts +8 -0
- package/tests/client/permission-editor.test.tsx +191 -21
- package/tests/client/permission-filter-binding.test.tsx +1 -1
- package/tests/client/role-return.test.tsx +2 -1
- package/tests/client/session-preparation.test.tsx +24 -1
- package/tests/client/settings-continuity.test.tsx +5 -4
- package/tests/client/settings-feedback.test.tsx +25 -0
- package/tests/client/settings-permissions.test.ts +35 -0
- package/tests/client/settings.test.tsx +2 -1
- package/tests/client/table-url-state.test.tsx +117 -3
- package/tests/client/user-drawer.test.tsx +2 -1
- package/tests/client/user-permissions.test.tsx +30 -5
- package/tests/database/mutation-receipts.test.ts +45 -0
- package/tests/fixtures/form-feedback/README.md +33 -0
- package/tests/fixtures/form-feedback/equipment-detail.tsx +11 -0
- package/tests/fixtures/form-feedback/equipment-layout.tsx +15 -0
- package/tests/fixtures/form-feedback/equipment-migration.ts +27 -0
- package/tests/fixtures/form-feedback/equipment-server.ts +197 -0
- package/tests/fixtures/form-feedback/equipment-validation.tsx +94 -0
- package/tests/fixtures/form-feedback/equipment.tsx +369 -0
- package/tests/fixtures/form-feedback/verify-inline.mjs +174 -0
- package/tests/fixtures/form-feedback/verify.mjs +373 -0
- package/tests/fixtures/submission/README.md +35 -0
- package/tests/fixtures/submission/browser.test.ts +478 -0
- package/tests/fixtures/submission/migration.ts +61 -0
- package/tests/fixtures/submission/page.tsx +138 -0
- package/tests/fixtures/submission/playwright.config.ts +11 -0
- package/tests/fixtures/submission/routes.ts +208 -0
- package/tests/helpers/settings-client.tsx +31 -0
- package/tests/server/member-role.test.ts +7 -1
- package/tests/server/submission-settings.test.ts +241 -0
|
@@ -362,22 +362,23 @@ function NodeConfigurationActions({
|
|
|
362
362
|
const choices = direct ? selections.slice(1) : selections;
|
|
363
363
|
const label = t('flowDiagram.configure', { defaultValue: 'Configure' });
|
|
364
364
|
const className =
|
|
365
|
-
'
|
|
365
|
+
'shrink-0 border border-primary/15 bg-primary/5 text-primary hover:bg-primary/10';
|
|
366
366
|
return (
|
|
367
367
|
<>
|
|
368
368
|
{direct && (
|
|
369
369
|
<Button
|
|
370
370
|
type='button'
|
|
371
371
|
variant='ghost'
|
|
372
|
-
size='
|
|
372
|
+
size='icon-xs'
|
|
373
373
|
className={className}
|
|
374
|
+
aria-label={configuration.label(direct.target)}
|
|
375
|
+
title={configuration.label(direct.target)}
|
|
374
376
|
onClick={(event) => {
|
|
375
377
|
event.stopPropagation();
|
|
376
378
|
configuration.onConfigure(direct);
|
|
377
379
|
}}
|
|
378
380
|
>
|
|
379
381
|
<Settings2Icon aria-hidden />
|
|
380
|
-
{configuration.label(direct.target)}
|
|
381
382
|
</Button>
|
|
382
383
|
)}
|
|
383
384
|
{choices.length > 0 && (
|
|
@@ -402,20 +403,19 @@ function NodeConfigurationActions({
|
|
|
402
403
|
<Button
|
|
403
404
|
type='button'
|
|
404
405
|
variant='ghost'
|
|
405
|
-
size='
|
|
406
|
+
size='icon-xs'
|
|
406
407
|
className={className}
|
|
407
408
|
aria-label={`${label}: ${title(state)}`}
|
|
409
|
+
title={`${label}: ${title(state)}`}
|
|
408
410
|
onClick={(event) => event.stopPropagation()}
|
|
409
411
|
/>
|
|
410
412
|
}
|
|
411
413
|
>
|
|
412
|
-
{
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
</>
|
|
414
|
+
{direct ? (
|
|
415
|
+
<ChevronDownIcon aria-hidden />
|
|
416
|
+
) : (
|
|
417
|
+
<Settings2Icon aria-hidden />
|
|
417
418
|
)}
|
|
418
|
-
<ChevronDownIcon aria-hidden />
|
|
419
419
|
</PopoverTrigger>
|
|
420
420
|
<PopoverContent
|
|
421
421
|
align='end'
|