Commit e43a4ec
feat(a11y): alt text (#7163)
* feat: alt text
* action: organized translations
* fix: move alt text accessibility to button level and fix gallery height
* chore: format code and fix lint issues
* ix: stable gallery keys and forward alt text accessibility to gallery items
* fix: i18n fallbacks, alt text a11y label, stale altText on remove, and 8.4.0 boundary test
* action: organized translations
* fix: i18n
* action: organized translations
* fix: preserve caption on send, correct version gate for share extension, and translated a11y labels in gallery
* fix: alt text label
* feat: queue composer attachments inline
* feat: open attachment alt text in action sheet
* fix: remove image gallery
* action: organized translations
* feat: edit message alt text
* chore: format code and fix lint issues
* feat: backward compatibilities
* fix: edit
* remove image gallery
* fix: conflicts
* code improvements
* fix: composer
* code improvements
* fix: tests
* fix(a11y): improve image attachment accessibility labels and order
* action: organized translations
* fix: unit tests
* fix: focus
* fix: a11y labels
* chore: format code and fix lint issues
* test
* fix: merge conflicts
* feat: improve a11y experience
* fix: unlabelled on android
* fix: action sheet input keyboard
* fix: announce GIFs as interactive in ImageViewer for screen readers
* fix: ignore whitespace-only alt text in message a11y label
* refactor: extract sendAttachments helper from composer and share view
* action: organized translations
* feat: code improvements
* code improvements
* refactor: extract useImageDescriptionLabel hook and inline useAltTextSupported in Image
* fix: i18n
* action: organized translations
* refactor: stabilize FlatList renderers and harden altText checks
* fix(a11y): omit empty segments in message accessibilityLabel
* refactor: extract normalizeAttachment and preserve handler order
in useChooseMedia
* refactor: extract normalizeAttachment and preserve handler order
in useChooseMedia
* rollback prettier changes
* feat: attachment action sheet stories and test
* feat: attachment actionsheet stories and tests
* feat: announce images without description to screen readers
* action: organized translations
* fix: render Attachment file name in Thread Message preview when body is empty (#7323)
* fix: preference value changes causing reset to other option (#7313)
* fix: do not encrypt messages when workspace E2E is disabled (#7324)
* fix: snapshot test
* fix: snapshot test
* feat: unify thumbs
* efactor: rename handlePickedAttachments to handleSelectedAttachments
* fix: pass altText and isAnimated to ImageViewer in ShareView Preview
* refactor: make AltTextLabel altText optional with early return
* fix: stop leaking attachment.altText into caption rendering
* fix: if no alt text its rendering an empty absolute view
* test: cover useMessageAccessibilityLabel and keep suffix on
translated
* refactor: prefer title_link/message_link over index for Reply attachment key
* refactor: unify ShareView Thumbs and ComposerAttachments under
shared AttachmentThumbs
* feat: unify Thumbs
* remove memo of useImageDescriptionLabel
* fix: test and lint
* fix: test
* fix: i18n missing translation
* fix: fallback accessibility label when alt text is empty
* fix: remove unused code
* rollback prettier changes
* refactor: colocate useImageDescriptionLabel with message hooks
* refactor: simplify message accessibility label composition
* feat: add missing keys
* feat: use thumb as children instead of add it again
* refactor: tighten types and stable keys in message/share views
* fix: useTheme on AltTextInput
* action: organized translations
* chore: code organization
* chore: type improvement
* chore: code organization
* fix: image improvement
* code improvements
* fix: avoid undefined a11y label
* fix: altText trim and improvements
* fix: tests
* fix: use memo composer attachments
* chore: remove editAltText (not available)
* feat: standardize shareView composer
---------
Co-authored-by: OtavioStasiak <OtavioStasiak@users.noreply.github.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Rohit Bansal <40559587+Rohit3523@users.noreply.github.com>1 parent 66571ed commit e43a4ec
72 files changed
Lines changed: 3909 additions & 766 deletions
File tree
- app
- containers
- ImageViewer
- MessageComposer
- components
- Attachments
- __snapshots__
- Buttons
- hooks
- message
- Components/Attachments
- Image
- __snapshots__
- hooks
- definitions
- i18n/locales
- lib
- hooks
- methods/sendFileMessage
- services
- reducers
- views
- RoomView
- LoadMore/__snapshots__
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| 22 | + | |
| 23 | + | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
| |||
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
37 | | - | |
| 40 | + | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
| |||
131 | 134 | | |
132 | 135 | | |
133 | 136 | | |
| 137 | + | |
| 138 | + | |
134 | 139 | | |
135 | | - | |
| 140 | + | |
136 | 141 | | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
141 | 173 | | |
142 | 174 | | |
143 | 175 | | |
| |||
0 commit comments