@plone-collective/volto-identity 1.0.0-alpha.7 → 1.0.0-alpha.8

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.
Files changed (26) hide show
  1. package/.changelog.draft +4 -23
  2. package/CHANGELOG.md +13 -0
  3. package/locales/de/LC_MESSAGES/volto.po +279 -249
  4. package/locales/en/LC_MESSAGES/volto.po +30 -0
  5. package/locales/es/LC_MESSAGES/volto.po +276 -246
  6. package/locales/pt_BR/LC_MESSAGES/volto.po +276 -246
  7. package/locales/volto.pot +31 -1
  8. package/package.json +1 -1
  9. package/src/components/ProfileGate/ProfileGate.test.tsx +24 -20
  10. package/src/components/ProfileGate/ProfileGate.tsx +33 -21
  11. package/src/components/Widgets/OrderedListTable/OrderedListTable.scss +34 -0
  12. package/src/components/Widgets/OrderedListTable/OrderedListTable.stories.tsx +82 -0
  13. package/src/components/Widgets/OrderedListTable/OrderedListTable.test.tsx +374 -0
  14. package/src/components/Widgets/OrderedListTable/OrderedListTable.tsx +507 -0
  15. package/src/components/Widgets/OrderedObjectListWidget/OrderedObjectListWidget.stories.tsx +69 -0
  16. package/src/components/Widgets/OrderedObjectListWidget/OrderedObjectListWidget.test.tsx +147 -0
  17. package/src/components/Widgets/OrderedObjectListWidget/OrderedObjectListWidget.tsx +117 -0
  18. package/src/components/Widgets/OrderedStringListWidget/OrderedStringListWidget.stories.tsx +68 -0
  19. package/src/components/Widgets/OrderedStringListWidget/OrderedStringListWidget.test.tsx +183 -0
  20. package/src/components/Widgets/OrderedStringListWidget/OrderedStringListWidget.tsx +101 -0
  21. package/src/config/widgets.test.ts +44 -0
  22. package/src/config/widgets.ts +12 -2
  23. package/src/helpers/orderedList.test.ts +117 -0
  24. package/src/helpers/orderedList.ts +141 -0
  25. package/src/stories/fixtures.tsx +70 -0
  26. package/src/types/api.ts +9 -0
package/.changelog.draft CHANGED
@@ -1,33 +1,14 @@
1
- ## 1.0.0-alpha.7 (2026-09-12)
2
-
3
-
4
- ### Breaking
5
-
6
- - Moved the add-on's frontend settings under `config.settings.identity`. `config.settings.identityShowPloneLogin` is now `config.settings.identity.showPloneLogin`, and the old key is no longer read; `RAZZLE_IDENTITY_SHOW_PLONE_LOGIN` still overrides it. The avatar palette is configurable as `config.settings.identity.avatarColors`, and defaults to the shipped palette. A palette a project supplies is not checked for contrast. @ericof [#89](https://github.com/collective/pas-plugins-identity/issues/89)
1
+ ## 1.0.0-alpha.8 (2026-09-16)
7
2
 
8
3
 
9
4
  ### Feature
10
5
 
11
- - Added the `/confirm-email` route, where a person whose profile is waiting on an address confirmation chooses which of their verified addresses this site uses for them. `ProfileGate` and the first-login route send them there instead of to the edit form, which cannot answer the question; a profile missing fields as well still goes to the form first. @ericof [#80](https://github.com/collective/pas-plugins-identity/issues/80)
12
- - Gave the providers control panel's settings, add and edit forms their own routes, so each can be linked to and reloaded, and the browser's Back button returns to the provider list. @ericof [#81](https://github.com/collective/pas-plugins-identity/issues/81)
13
- - Added export actions to the providers control panel, one per provider and one for every provider, each downloading the registry document under the filename it belongs under in a profile. The panel says beside them that the file carries client secrets in the clear, and offers them only to someone allowed to export. @ericof [#83](https://github.com/collective/pas-plugins-identity/issues/83)
14
- - Gave the providers control panel's list a Login screen column, and let its rows be dragged into the order the login page offers them. A dropped row moves at once, and goes back if the new order cannot be saved. @ericof [#84](https://github.com/collective/pas-plugins-identity/issues/84)
15
- - The provider form's Icon field shows the driver's default icon until one is uploaded. @ericof [#86](https://github.com/collective/pas-plugins-identity/issues/86)
16
- - Drew the login button of a provider on the new `keycloak` driver in the OpenID Connect colours. @ericof [#87](https://github.com/collective/pas-plugins-identity/issues/87)
17
- - Added a Sign-in block, offered inside a grid, and kept out of a page's block chooser until a project lifts its restriction. It shows a visitor the login card `/login` shows, and greets somebody signed in with a welcome message and a summary: a link to their Profile, their preferred address, what they signed in with and when they last did, each line switchable in the sidebar. The login page's store and routing moved into a `useLogin` hook the two share, and its card into `LoginCard`, which `LoginPanel` puts on a page of its own. @ericof [#99](https://github.com/collective/pas-plugins-identity/issues/99)
18
- - Made the login page's redirect to a site's only provider something a site can turn off, with `config.settings.identity.redirectToSoleProvider` or, at run time, `RAZZLE_IDENTITY_REDIRECT_TO_SOLE_PROVIDER`. It stays on by default. Even when on, it no longer fires for a visitor who arrived already signed in, which looped against a provider that still had a session, or for `/login?choose=1`, which the callback page now links to when a sign-in fails. @ericof [#100](https://github.com/collective/pas-plugins-identity/issues/100)
6
+ - Translated the add-on's messages into Brazilian Portuguese, German and Spanish, and gave the German catalogue the charset and plural rule its header was missing. @ericof [#102](https://github.com/collective/pas-plugins-identity/issues/102)
7
+ - Added two widgets that edit an ordered list as a table, the way the providers control panel lists providers: `identity_string_list` for a list of strings, and `identity_object_list` for a list of objects an item schema describes. Each row drags by a handle, Edit opens the entry in a dialog, and Delete asks first; a `columns` prop picks which fields an object list shows. @ericof [#103](https://github.com/collective/pas-plugins-identity/issues/103)
19
8
 
20
9
 
21
10
  ### Bugfix
22
11
 
23
- - Gave the Plone site driver's login button the Plone colours. Its class is `identity-provider--plone-identity`, and the stylesheet knew only `identity-provider--plone`, which the password button keeps. @ericof [#86](https://github.com/collective/pas-plugins-identity/issues/86)
24
- - Darkened the first colour of the avatar palette from `#0083be` to `#007db6`. At 4.21:1 against the white initials it was the one shipped colour below WCAG AA; `#007db6` is the lightest colour of its hue that clears 4.5:1. @ericof [#89](https://github.com/collective/pas-plugins-identity/issues/89)
25
- - Linked the groups listed under "Groups in this group" and "Part of" on a group's page to their own pages, the way members are linked to their Profiles. A group the site has no page for is shown as text. @ericof [#90](https://github.com/collective/pas-plugins-identity/issues/90)
26
-
27
-
28
- ### Internal
29
-
30
- - Moved the Storybook decorators `withPage` and `withUserMenu` from `src/storybook` to `src/stories`, beside the fixtures, so Storybook's support code lives in one directory. @ericof [#88](https://github.com/collective/pas-plugins-identity/issues/88)
31
- - Moved the `IdentitySettings` type, and the augmentation that adds `identity` to Volto's settings, from `config/settings` to `types/settings`, beside the package's other types. It is exported from `types` like them. @ericof [#98](https://github.com/collective/pas-plugins-identity/issues/98)
12
+ - The profile gate now explains itself where somebody can see it. It dispatched Volto's `addMessage`, and Volto 19 mounts no component that renders those, so the explanation reached the store and nothing else; it is a toast now. It also speaks up on every redirect rather than once per destination, so being sent back to the same form says why again, and it names each field by the label the form gives it rather than by its schema name. @ericof [#105](https://github.com/collective/pas-plugins-identity/issues/105)
32
13
 
33
14
 
package/CHANGELOG.md CHANGED
@@ -8,6 +8,19 @@
8
8
 
9
9
  <!-- towncrier release notes start -->
10
10
 
11
+ ## 1.0.0-alpha.8 (2026-09-16)
12
+
13
+
14
+ ### Feature
15
+
16
+ - Translated the add-on's messages into Brazilian Portuguese, German and Spanish, and gave the German catalogue the charset and plural rule its header was missing. @ericof [#102](https://github.com/collective/pas-plugins-identity/issues/102)
17
+ - Added two widgets that edit an ordered list as a table, the way the providers control panel lists providers: `identity_string_list` for a list of strings, and `identity_object_list` for a list of objects an item schema describes. Each row drags by a handle, Edit opens the entry in a dialog, and Delete asks first; a `columns` prop picks which fields an object list shows. @ericof [#103](https://github.com/collective/pas-plugins-identity/issues/103)
18
+
19
+
20
+ ### Bugfix
21
+
22
+ - The profile gate now explains itself where somebody can see it. It dispatched Volto's `addMessage`, and Volto 19 mounts no component that renders those, so the explanation reached the store and nothing else; it is a toast now. It also speaks up on every redirect rather than once per destination, so being sent back to the same form says why again, and it names each field by the label the form gives it rather than by its schema name. @ericof [#105](https://github.com/collective/pas-plugins-identity/issues/105)
23
+
11
24
  ## 1.0.0-alpha.7 (2026-09-12)
12
25
 
13
26