@things-factory/apptool-ui 10.1.257 → 10.1.259
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/package.json +4 -4
- package/tests/user-menu.test.ts +13 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/apptool-ui",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.259",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "dist-client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"@operato/layout": "^10.29.43",
|
|
33
33
|
"@operato/shell": "^10.29.60",
|
|
34
34
|
"@operato/utils": "^10.29.43",
|
|
35
|
-
"@things-factory/apptool-base": "^10.1.
|
|
36
|
-
"@things-factory/setting-base": "^10.1.
|
|
35
|
+
"@things-factory/apptool-base": "^10.1.259",
|
|
36
|
+
"@things-factory/setting-base": "^10.1.259"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "e7283779ee700b4b124226f0ad22d7c1e4063ae7"
|
|
39
39
|
}
|
package/tests/user-menu.test.ts
CHANGED
|
@@ -144,19 +144,28 @@ describe('the person\'s entries are registered once, to the user menu', () => {
|
|
|
144
144
|
)
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
it('★ profile, one\'s gallery, settings, the about page
|
|
147
|
+
it('★ profile, one\'s gallery, settings, the about page, sign-out, writing an inquiry and the regulations are user menu entries, each from the module that owns it', () => {
|
|
148
148
|
const named = registrations('ADD_USER_MENU').map(({ file, call }) => `${file.split(path.sep)[0]}:${/name: '([\w-]+)'/.exec(call)?.[1]}`)
|
|
149
149
|
|
|
150
|
-
|
|
150
|
+
/* inquiry: ADR-0184 decision 9. regulations: ADR-0187 decision 10, added only for an employee of the domain. */
|
|
151
|
+
expect(named.sort()).toEqual([
|
|
152
|
+
'auth-ui:profile',
|
|
153
|
+
'auth-ui:sign-out',
|
|
154
|
+
'compliance:regulations',
|
|
155
|
+
'gallery:my-gallery',
|
|
156
|
+
'inquiry:inquiry',
|
|
157
|
+
'setting-ui:setting',
|
|
158
|
+
'system:about-system'
|
|
159
|
+
])
|
|
151
160
|
})
|
|
152
161
|
|
|
153
|
-
it('★ the registered entries show as profile, one\'s gallery, sign-out, settings, the about page (user, 2026-10-25; gallery right after the profile, ADR-0165 decision 6)', () => {
|
|
162
|
+
it('★ the registered entries show as profile, one\'s gallery, sign-out, settings, inquiry, regulations, the about page (user, 2026-10-25; gallery right after the profile, ADR-0165 decision 6)', () => {
|
|
154
163
|
const entries = registrations('ADD_USER_MENU').map(({ call }) => ({
|
|
155
164
|
name: /name: '([\w-]+)'/.exec(call)![1],
|
|
156
165
|
order: Number(/order: (\d+)/.exec(call)![1])
|
|
157
166
|
}))
|
|
158
167
|
|
|
159
|
-
expect(menuEntries(entries).map(entry => entry.name)).toEqual(['profile', 'my-gallery', 'sign-out', 'setting', 'about-system'])
|
|
168
|
+
expect(menuEntries(entries).map(entry => entry.name)).toEqual(['profile', 'my-gallery', 'sign-out', 'setting', 'inquiry', 'regulations', 'about-system'])
|
|
160
169
|
})
|
|
161
170
|
|
|
162
171
|
it('★ none of them is a morenda any more', () => {
|