Commit 7c978a9
authored
fix: change class names to reflect component renames (#3035)
### π― Goal
# Class Name Renames (SCSS + TSX)
## ChannelListItem/styling/ChannelListItem.scss
| Old Class Name | New Class Name |
| --------------------------------------------------------- |
----------------------------------------------------------- |
| `.str-chat__channel-preview-container` |
`.str-chat__channel-list-item-container` |
| `.str-chat__channel-preview__action-buttons--active` |
`.str-chat__channel-list-item__action-buttons--active` |
| `.str-chat__channel-preview__action-buttons` |
`.str-chat__channel-list-item__action-buttons` |
| `.str-chat__channel-preview__action-buttons-context-menu` |
`.str-chat__channel-list-item__action-buttons-context-menu` |
| `.str-chat__channel-preview` | `.str-chat__channel-list-item` |
| `.str-chat__channel-preview-data` |
`.str-chat__channel-list-item-data` |
| `.str-chat__channel-preview-data__first-row` |
`.str-chat__channel-list-item-data__first-row` |
| `.str-chat__channel-preview-data__title` |
`.str-chat__channel-list-item-data__title` |
| `.str-chat__channel-preview-data__timestamp-and-badge` |
`.str-chat__channel-list-item-data__timestamp-and-badge` |
| `.str-chat__channel-preview-timestamp` |
`.str-chat__channel-list-item-timestamp` |
## Loading/styling/LoadingChannels.scss
| Old Class Name | New Class Name |
| ------------------------------------------ |
-------------------------------------------- |
| `.str-chat__channel-preview--loading` |
`.str-chat__channel-list-item--loading` |
| `.str-chat__channel-preview-data--loading` |
`.str-chat__channel-list-item-data--loading` |
## Message/styling/Message.scss
| Old Class Name | New Class Name |
| ----------------------------------------- |
----------------------------------- |
| `.str-chat__message-simple-name` | `.str-chat__message-metadata__name`
|
| `.str-chat__simple-message--error-failed` |
`.str-chat__message-inner--error` |
## MessageComposer/styling/MessageComposer.scss
| Old Class Name | New Class Name |
| ----------------------------------- |
-------------------------------------- |
| `.str-chat__message-input-cooldown` |
`.str-chat__message-composer-cooldown` |
## Additional TSX-only class names
| Old Class Name | New Class Name | File(s) |
| ----------------------------------------- |
---------------------------------------- |
--------------------------------- |
| `.str-chat__message-simple` | removed | MessageUI.tsx,
MessageBlocked.tsx |
| `.str-chat__message-simple--me` | removed | MessageUI.tsx,
MessageBlocked.tsx |
| `.str-chat__message-simple-name` | `.str-chat__message-metadata__name`
| MessageUI.tsx |
| `.str-chat__message-simple-timestamp` |
`.str-chat__message-metadata__timestamp` | MessageUI.tsx |
| `.str-chat__simple-message--error-failed` |
`.str-chat__message-inner--error` | MessageUI.tsx |
| `.str-chat__channel-preview--unread` |
`.str-chat__channel-list-item--unread` | ChannelListItemUI.tsx |
| `.str-chat__channel-preview--muted` |
`.str-chat__channel-list-item--muted` | ChannelListItemUI.tsx |
## Removed class names (no replacement)
| Removed Class Name | File |
| ----------------------------------------------------- |
---------------------------------------- |
| `.str-chat__message-simple__actions__action` |
MessageActionsWrapper.tsx (file deleted) |
| `.str-chat__message-simple__actions__action--options` |
MessageActionsWrapper.tsx (file deleted) |
BREAKING CHANGE: All `str-chat__channel-preview*` CSS classes have been
renamed to `str-chat__channel-list-item*` (e.g.
`.str-chat__channel-preview-container` β
`.str-chat__channel-list-item-container`);
`.str-chat__message-input-cooldown` has been renamed to
`.str-chat__message-composer-cooldown`; `.str-chat__message-simple-name`
has been renamed to `.str-chat__message-metadata__name`;
`.str-chat__simple-message--error-failed` has been renamed to
`.str-chat__message-inner--error`; `.str-chat__message-simple-timestamp`
has been renamed to `.str-chat__message-metadata__timestamp`. Removed
`.str-chat__message-simple` and `.str-chat__message-simple--me` root
class names from `MessageUI` and `MessageBlocked` components. Component
`MessageActionsWrapper` has been dropped.1 parent 7806658 commit 7c978a9
12 files changed
Lines changed: 52 additions & 82 deletions
File tree
- src/components
- ChannelListItem
- styling
- Loading
- styling
- MessageActions
- MessageComposer
- styling
- Message
- styling
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
| 47 | + | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
60 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
76 | | - | |
77 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
Lines changed: 11 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
| 29 | + | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | 142 | | |
150 | 143 | | |
151 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
152 | 148 | | |
153 | 149 | | |
154 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
| 204 | + | |
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
| 248 | + | |
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | | - | |
| 252 | + | |
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
510 | 510 | | |
511 | 511 | | |
512 | 512 | | |
513 | | - | |
| 513 | + | |
514 | 514 | | |
515 | 515 | | |
516 | 516 | | |
| |||
559 | 559 | | |
560 | 560 | | |
561 | 561 | | |
562 | | - | |
| 562 | + | |
563 | 563 | | |
564 | 564 | | |
565 | 565 | | |
| |||
Lines changed: 0 additions & 30 deletions
This file was deleted.
0 commit comments