@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@estiva-app/ui",
3
- "version": "0.115.0",
3
+ "version": "0.115.1",
4
4
  "description": "Estiva's design tokens (the contract) and a small set of primitives (a convenience) for every Estiva app.",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/registry.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "kind": "package",
5
5
  "repo": "estiva-ui",
6
6
  "package": "@estiva-app/ui",
7
- "packageVersion": "0.115.0",
7
+ "packageVersion": "0.115.1",
8
8
  "exports": 253,
9
9
  "typeExports": 263,
10
10
  "files": null
@@ -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. Nothing lights.')
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('Nothing lights.')
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.')
@@ -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. Nothing lights.',
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: 'Nothing lights.',
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
  },