Benoit Marty
e97e21e785
Move `content` @Composable to the end of the parameter list.
...
A @Composable `content` parameter should be moved to be the trailing lambda in a composable function.
5 months ago
Benoit Marty
37d9a9f5a9
Lambda parameters in a composable function should be in present tense, not past tense.
...
https://mrmans0n.github.io/compose-rules/rules/#naming-parameters-properly
5 months ago
Benoit Marty
414e2bb3f1
UseLet
5 months ago
Benoit Marty
79057678d7
supportingContent should be null if there is nothing to display.
5 months ago
Benoit Marty
f743934e0f
trailingContent and supportingContent should be null if there is nothing to display.
5 months ago
Benoit Marty
ef4cf42b71
No Composable if subtitle is null
5 months ago
Benoit Marty
cf057310b4
Add preview without subtitle
5 months ago
Benoit Marty
8eeb95e867
Remove unused parameter.
5 months ago
Benoit Marty
e74f82b640
Fix formatting issue.
5 months ago
Benoit Marty
b30076ecca
Fix test by making the whole ListItem clickable.
...
Also improve height of View to let the test see the View.
5 months ago
Benoit Marty
34f7819702
Let Preference composables use ListItem.
...
Let PreferenceCheckbox use ListItem and add missing previews.
Let PreferenceCategory use ListSectionHeader
Let PreferenceSlide use ListItem
Let PreferenceRow use ListItem
Let PreferenceText use ListItem
5 months ago
Benoit Marty
25b46ee230
Suppress warning for ModifierComposed (detekt)
6 months ago
Benoit Marty
07ca064ac4
Supress warning `ModifierComposed` for autofill, there is a low risk of performance issue here.
6 months ago
Benoit Marty
000bcb448c
Rework Modifier.applyIf.
...
It was using `Modifier.composed` which is not good for performance and detekt is warning about this.
6 months ago
Benoit Marty
193081a554
Migrate AvatarActionBottomSheet to Material3 BottomSheet
...
Also correctly handle the back press when this bottom sheet is opened, previously it was leaving the room edition screen.
ModalBottomSheetLayout can now be deleted.
6 months ago
Jorge Martin Espinosa
48bb0f4122
Add room badges ( #2822 )
...
* Add room badges
* Remove no longer used `onShareRoomMember` callback
* Update screenshots
* Add changelog
---------
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
6 months ago
Jorge Martin Espinosa
46b22d7db7
UX cleanup: room details ( #2816 )
...
* UX cleanup: room details screen
Add new CTA buttons for Invite and Call actions
* Update screenshots
* Fix maestro
---------
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
6 months ago
Benoit Marty
b8cb2d92e9
Add missing color preview.
6 months ago
Benoit Marty
300d3e34b1
Format and cleanup files
6 months ago
Benoit Marty
ce7bb11724
Ensure roomId are not rendered in the UI.
...
Add preview to see the effect.
Use RoomAvatar data fallback everywhere, to not use roomId (`!` char) for the avatar initial, but rather `#`.
6 months ago
Benoit Marty
2c2bf7c687
Add screen to render Spaces (they are not supported yet)
6 months ago
Benoit Marty
132b4e87ea
Avoid rendering roomId on screen.
6 months ago
ganfra
20e172c2a6
Timeline permalink : add focused event modifier
6 months ago
Benoit Marty
d06ec9099b
Add Ui test on DeveloperSettingsView
6 months ago
Benoit Marty
6b2a4f8cc0
Move OnboardingBackground to a sub package
6 months ago
Benoit Marty
52f7b29577
Fix missing background issue.
6 months ago
Benoit Marty
74a9a54719
Rename Preview to follow code convention
6 months ago
Benoit Marty
f1668b8abe
Update doc.
7 months ago
Benoit Marty
4489df1085
Apply Gradient Background to JoinRoomView and RoomAliasResolverView.
7 months ago
Benoit Marty
57870fa624
Gradient Background
7 months ago
Benoit Marty
9c7c66b222
Fix padding issue on `RoomPreviewMembersCountMolecule`
7 months ago
Benoit Marty
b7d4fa655e
Readability
7 months ago
Benoit Marty
7528bb7ffa
Add Modifier and preview for RoomPreviewMembersCountMolecule. Also increase end padding to ensure that rendering is correct for big numbers.
7 months ago
Benoit Marty
1b8dd2cded
Create Atom and Molecule for RoomPreview screens
7 months ago
Benoit Marty
d0fdaaeb86
Move ContentScaffold to design system and rename to RoomPreviewOrganism
7 months ago
Benoit Marty
88b3c33eaf
Format
7 months ago
Benoit Marty
933263ee96
Remove unnecessary Box wrapping.
7 months ago
Jorge Martín
efde2af29e
Compound: add `SuperButton` and `GradientFloatingActionButton` components
...
Also add `ButtonSize.Small` and adjust existing `Button` component
7 months ago
ganfra
11979167c5
Room navigation : some clean up
7 months ago
ganfra
a2329fc7df
Join room : change state and view
7 months ago
Jorge Martin Espinosa
6db513c125
Improve designs of FTUE analytics opt-in screen ( #2684 )
...
* Improve designs of FTUE analytics opt-in screen
* Update screenshots
---------
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
7 months ago
Jorge Martin Espinosa
cf072fa1e1
Improve session recovery screens ( #2657 )
...
* Improve enter recovery key screen UI
* Add instructions to reset the encryption of the logged in account.
* Update screenshots
* Fix maestro flow
---------
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
7 months ago
Benoit Marty
16d289e180
Exclude `fun ContentToPreview()` from coverage, this is not production code.
7 months ago
Jorge Martin Espinosa
b6ceb8c697
Improve UI for notification permission screen in onboarding ( #2660 )
...
* Improve UI for notification permission screen in onboarding
* Update screenshots
---------
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
7 months ago
SpiritCroc
e4b76e0e89
Add back debugPlaceholderAvatar for inspection mode
7 months ago
SpiritCroc
f704cca678
Fall back to initials avatar when image avatar doesn't work
...
Initially I had it implemented such that it would only fallback on
error, but actually it's nice to have also while loading if it takes
a while to load the avatar.
7 months ago
ganfra
cdadd19e6a
Room navigation : introduce the JoinRoomNode
7 months ago
Benoit Marty
b4582564ab
Remove unused circularReveal Modifier.
7 months ago
Jorge Martin Espinosa
41287c5f59
Move session verification to FTUE flow, make it mandatory ( #2594 )
...
* Move session verification to the FTUE
* Allow session verification flow to be restarted
* Use `EncryptionService` to display session verification faster
* Remove session verification item from settings
* Remove session verification banner from room list
* Remove 'verification needed' variant from the `TimelineEncryptedHistoryBanner`
* Improve verification flow UI and UX
* Remove 'verification successful' snackbar message
* Only register push provider after the session has been verified
* Hide room list while the session hasn't been verified
* Prevent deep links from changing the navigation if the session isn't verified
* Update screenshots
* Renamed `FtueState` to `FtueService`, created an actual `FtueState`.
---------
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
7 months ago
Benoit Marty
3f85d4e566
Add trophy icon next the the winner vote in polls.
7 months ago