Commit Graph

107 Commits

Author SHA1 Message Date
bmarty
cd0a0f7c9a Sync Strings from Localazy 2023-10-02 00:09:47 +00:00
bmarty
e9a7c7bbaf Sync Strings from Localazy 2023-09-25 00:09:17 +00:00
Benoit Marty
d2ca528679 Detekt: Rename DayNightPreviews to PreviewsDayNight to follow naming convention.
MultiPreview annotations should start with `Previews` as prefix
2023-09-21 08:30:36 +02:00
Benoit Marty
d6ea21da22 Migrate other icons to compound icons. 2023-09-20 16:44:59 +02:00
Benoit Marty
d3d9367feb Localazy sync 2023-09-18 16:42:35 +02:00
bmarty
6e5e538724 Sync Strings from Localazy 2023-09-18 00:09:19 +00:00
ganfra
455d39c629 Sync Strings from Localazy 2023-09-14 14:38:49 +00:00
Marco Romano
b860bd30bd GRemove the @JvmField annotation whenever using WarmUpRule. 2023-09-13 15:19:26 +02:00
Benoit Marty
04a132373a Fix and add test. 2023-09-11 12:12:48 +02:00
Benoit Marty
d4f286a821 Reorder params. 2023-09-11 10:40:49 +02:00
Benoit Marty
6864b65962 Add a way to configure tracing when the session does not exist yet. 2023-09-11 09:58:40 +02:00
jonnyandrew
301e49c3a3 Reduce test flakiness by warming up molecule tests (#1226) 2023-09-06 10:08:21 +00:00
ElementBot
5ecafeb49f Sync Strings from Localazy (#1032)
Co-authored-by: Florian14 <Florian14@users.noreply.github.com>
2023-08-11 14:34:05 +00:00
Jorge Martin Espinosa
af932b31c4 [Compound] Implement components (Button) (#1021)
* Create `CompoundButton`

* Some fixes

* Lint fixes

* Start replacing existing `Button` usages

* Replace button usages

* Remove previous Button composable

* Rename `CompoundButton` to `Button`

* Fix emphasized button being displayed as Text

* Fix cancel button in `WaitListView`

* Update screenshots

* Add shorthand functions for `OutlinedButton` and `TextButton`

* Add changelog

* Fix wrong size used for emphasized button in dialog

* Create a private `ButtonInternal` implementation with the shared logic.

- Make `ButtonStyle` private.
- Rename `title` to `text`.
- Rename `buttonStyle` and `buttonSize` to just `style` and `size`.

* Fix several warnings and lint issues.

* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-08-08 16:11:37 +00:00
Benoit Marty
d3cea1e69c Sync strings. 2023-07-27 12:16:04 +02:00
Benoit Marty
ac1d355f65 Cleanup: there are no androidTest on those modules. 2023-07-24 12:41:02 +02:00
renovate[bot]
6d3b816bf5 Update dependency app.cash.molecule:molecule-runtime to v1 (#925)
* Update dependency app.cash.molecule:molecule-runtime to v1

* Replace `RecompositionClock` with `RecompositionMode`

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2023-07-20 07:36:19 +02:00
Benoit Marty
56691ed753 Use Large and remove Huge. 2023-07-18 14:58:09 +02:00
Benoit Marty
1897dd258d Use ElementLogoAtom instead of png. Fixes #894 2023-07-18 12:13:48 +02:00
Benoit Marty
06de1291af Use DayNightPreviews for correct rendering in AndroidStudio. 2023-07-18 11:19:46 +02:00
ElementBot
045d957f91 Sync Strings (#882)
* Sync Strings from Localazy

* Update screenshots

---------

Co-authored-by: bmarty <bmarty@users.noreply.github.com>
2023-07-17 10:22:15 +02:00
Benoit Marty
16f30db20e Move TypographyAliases next to ColorAliases 2023-07-11 11:29:56 +02:00
Benoit Marty
84fad3e7f3 Create alias for typography (more semantic name). aliasButtonText 2023-07-11 10:29:06 +02:00
Marco Romano
f33561c25d Revert "Auto generate dark mode previews and screenshots (#776)" (#784)
This reverts commit 79b529193c.
2023-07-05 15:47:53 +02:00
Marco Romano
79b529193c Auto generate dark mode previews and screenshots (#776)
With this change, composable previews and screenshots should be created with just:
```
@ElementPreviews
@Composable
fun MyViewPreview() {
    ElementPreview { 
        MyView()
    }
}
```

- Adds `@ElementPreviews` which is a shorthand for:
```
@Preview(name = "D")
@Preview(name = "N", uiMode = Configuration.UI_MODE_NIGHT_YES)
```
Should be used in connection with the now public `fun ElementPreview()` composable.

- Adds ElementPreviews to previewAnnotations in dangerfile
- Screenshots of night mode previews are now rendered with night mode
- Replaces `ElementPreviewLight` and `ElementThemedPreview` with `ElementPreview`
- Deprecates `ElementPreviewDark` which should be removed.
- Remaining usages of `ElementPreviewDark` are now ignored during screenshot tests
2023-07-05 13:58:24 +02:00
Benoit Marty
9e5c009dda Merge pull request #752 from vector-im/feature/bma/onBoardingIteration
Desing: onboarding iteration
2023-07-03 20:28:16 +02:00
Benoit Marty
712a4780b1 Change font of on barding button to fontBodyLgMedium. 2023-07-03 14:04:48 +02:00
Benoit Marty
dcfd4f093c Fix wrong modifier usage. 2023-07-03 13:10:41 +02:00
Benoit Marty
b1bcae251c Iterate design on on boarding screen. 2023-07-03 12:11:55 +02:00
bmarty
bd3dd76039 Sync Strings from Localazy 2023-07-03 00:11:17 +00:00
Benoit Marty
4cb9843415 Now that the composer as been removed, we do not need element resource module anymore. 2023-06-27 13:34:55 +02:00
bmarty
9c5c578c67 Sync Strings from Localazy 2023-06-26 00:10:53 +00:00
Jorge Martin Espinosa
95f65e2031 [Message Actions] Copy events to clipboard (#665)
* Add `Copy` action for text events

* Remove 'Copy' action from the list for non-text events

* Use `@ContributesBinding` to inject `AndroidClipboardHelper`.
2023-06-23 14:39:07 +00:00
github-actions[bot]
3f7738c001 Sync Strings (#630)
* Sync Strings from Localazy

* Update strings, remove broken German translation

* Update screenshots

---------

Co-authored-by: bmarty <bmarty@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-06-19 11:18:01 +00:00
Benoit Marty
0dd4109d21 Use function ref. 2023-06-09 17:45:51 +02:00
Benoit Marty
06297bb792 Update strings. 2023-06-09 16:34:22 +02:00
Benoit Marty
9809969b64 Account provider screen. - Crashing 2023-06-07 09:00:20 +02:00
Benoit Marty
6b264a6397 Merge pull request #527 from vector-im/feature/bma/designSystem
Preparatory work to integrate new FTUE screen
2023-06-07 08:59:13 +02:00
github-actions[bot]
03c28ac52d Sync Strings (#522)
Sync Strings from Localazy
2023-06-05 15:26:50 +00:00
Benoit Marty
b89bca4ca9 Introduce ButtonColumnMolecule and ButtonRowMolecule. 2023-06-05 12:21:50 +02:00
Benoit Marty
1e6f52466f Ignore OnBoardingPresenter regarding code coverage. 2023-06-02 09:57:02 +02:00
Benoit Marty
78e5bf6f78 Add test for new presenter. 2023-06-01 18:26:04 +02:00
Benoit Marty
43df6cfbb8 Create a presenter and a state for OnBoarding screen. 2023-06-01 17:53:58 +02:00
Benoit Marty
f05dea79c4 Fix quality 2023-06-01 11:49:35 +02:00
Benoit Marty
c00da8ee1e Fix alignment issue and content cropping 2023-06-01 10:51:03 +02:00
Benoit Marty
72050b2a59 Hide login with Qrcode and create account for now. 2023-06-01 10:51:03 +02:00
Benoit Marty
9ec987f993 Introduce pages in our design system. 2023-06-01 10:51:03 +02:00
Benoit Marty
baa90c6742 Design iteration 2023-06-01 10:51:03 +02:00
Benoit Marty
041e1fc368 Iterate on onboarding screen - WIP 2023-06-01 10:51:03 +02:00
bmarty
3daea29a82 Sync Strings from Localazy 2023-05-29 00:09:47 +00:00