@estiva-app/ui 0.115.0 → 0.115.1
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/dist/FollowSwitch.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
- package/registry.json +1 -1
- package/src/FollowSwitch.test.tsx +2 -2
- package/src/FollowSwitch.tsx +5 -3
package/package.json
CHANGED
package/registry.json
CHANGED
|
@@ -53,7 +53,7 @@ describe('FollowSwitch', () => {
|
|
|
53
53
|
const { rerender } = render(<FollowSwitch level="important" label="Item one" onChoose={() => {}} />)
|
|
54
54
|
await user.click(screen.getByRole('button', { name: /change how you follow/ }))
|
|
55
55
|
// A topic or a space (the default): what of its files it shows, then what lights (ACT-5).
|
|
56
|
-
expect((await screen.findByRole('menuitem', { name: /^Not following/ })).textContent).toContain('Shows its own conversation.
|
|
56
|
+
expect((await screen.findByRole('menuitem', { name: /^Not following/ })).textContent).toContain('Shows its own conversation. Lights only when someone names you.')
|
|
57
57
|
expect(screen.getByRole('menuitem', { name: /^Important/ }).textContent).toContain(
|
|
58
58
|
'Shows its own conversation. Lights for new conversations, replies in yours, and what names you on its files.',
|
|
59
59
|
)
|
|
@@ -62,7 +62,7 @@ describe('FollowSwitch', () => {
|
|
|
62
62
|
// A place with no files (a team's chat): only what lights.
|
|
63
63
|
rerender(<FollowSwitch level="important" label="Item one" onChoose={() => {}} files={false} people />)
|
|
64
64
|
await user.click(screen.getByRole('button', { name: /change how you follow/ }))
|
|
65
|
-
expect((await screen.findByRole('menuitem', { name: /^Not following/ })).textContent).toContain('
|
|
65
|
+
expect((await screen.findByRole('menuitem', { name: /^Not following/ })).textContent).toContain('Lights only when someone names you.')
|
|
66
66
|
expect(screen.getByRole('menuitem', { name: /^Not following/ }).textContent).not.toContain('Shows')
|
|
67
67
|
expect(screen.getByRole('menuitem', { name: /^Important/ }).textContent).toContain('Lights for new conversations and replies in yours.')
|
|
68
68
|
expect(screen.getByRole('menuitem', { name: /^All/ }).textContent).toContain('Lights for every message.')
|
package/src/FollowSwitch.tsx
CHANGED
|
@@ -53,18 +53,20 @@ const LABEL: Record<FollowLevel, string> = { important: 'Important', all: 'All'
|
|
|
53
53
|
* dot (ACT-5; the activity indicator prototype Miky approved on 10 November).
|
|
54
54
|
* A place that lists files (a topic, a space) says what of them it shows; a
|
|
55
55
|
* place with none (a team's chat) says only what lights. Important's third
|
|
56
|
-
* part restates the record on what names you on a listed file.
|
|
56
|
+
* part restates the record on what names you on a listed file. Not following
|
|
57
|
+
* says a mention still lights: a message that names you lights a place at every
|
|
58
|
+
* level (`lightsOnPlace` in @estiva-app/conversation; Miky, 13 November).
|
|
57
59
|
*
|
|
58
60
|
* why: https://github.com/estiva-app/estiva-docs/blob/main/decisions/at-important-what-names-you-on-a-listed-file-lights-the-topic.md
|
|
59
61
|
*/
|
|
60
62
|
const WORDS: Record<'files' | 'noFiles', Record<'off' | FollowLevel, string>> = {
|
|
61
63
|
files: {
|
|
62
|
-
off: 'Shows its own conversation.
|
|
64
|
+
off: 'Shows its own conversation. Lights only when someone names you.',
|
|
63
65
|
important: 'Shows its own conversation. Lights for new conversations, replies in yours, and what names you on its files.',
|
|
64
66
|
all: 'Shows its files’ threads too. Lights for all of it.',
|
|
65
67
|
},
|
|
66
68
|
noFiles: {
|
|
67
|
-
off: '
|
|
69
|
+
off: 'Lights only when someone names you.',
|
|
68
70
|
important: 'Lights for new conversations and replies in yours.',
|
|
69
71
|
all: 'Lights for every message.',
|
|
70
72
|
},
|