Commit graph

38 commits

Author SHA1 Message Date
Benoit Marty
4338d821e5 Konsist: improve test about no default value for State classes, and fix new detected issues. 2023-10-10 21:42:18 +02:00
Marco Romano
2e6581a5ad
Show poll creator view in timeline (#1429)
- Shows edit/end poll buttons when the user is the creator of the poll.
- Only the end poll button is wired right now as there is no "edit poll" screen yet.
2023-09-26 11:19:24 +02:00
Benoit Marty
d8fbf216f1
Merge pull request #1419 from vector-im/sync-localazy
Sync Strings
2023-09-26 10:05:46 +02:00
Marco Romano
f4b46aa2bb
Push TimelineEvents further down the UI tree. (#1424)
So that timeline items don't have to route their callback all the way down to TimelinePresenter.
2023-09-25 15:31:10 +00:00
bmarty
c72bb92ef2 Sync Strings from Localazy 2023-09-25 00:09:17 +00:00
bmarty
a7ce12d91d Sync Strings from Localazy 2023-09-21 15:51:21 +00:00
Benoit Marty
0e4c146e87 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
03d69146aa Remove unused resource, and use compound icons when possible. 2023-09-20 16:45:38 +02:00
Benoit Marty
c652606f56 Remove VectorIcons object, inline the values. 2023-09-20 16:44:59 +02:00
Benoit Marty
0453ea5904 Localazy sync 2023-09-18 16:42:35 +02:00
bmarty
d2f9b02bbf Sync Strings from Localazy 2023-09-18 00:09:19 +00:00
Marco Romano
50c7892eab Make PollContentView a11y friendly
Improves a bit how screen readers read polls in the timeline.
- Adds a few `contentDescription` so that talkback reads “poll” or “ended poll” before the poll question.
- Changes the compose structure of the answers so that they are properly scanned by the screen reader. This meant getting rid of the `IconToggleButton` which was made redundant by the use of the `selectable`.
2023-09-15 09:53:17 +02:00
ganfra
b382993cbb Sync Strings from Localazy 2023-09-14 14:38:49 +00:00
Marco Romano
819b82533d
Change "anonymous" copy in the create poll screen (#1325) 2023-09-14 12:12:49 +02:00
Marco Romano
49c723e3b2
Poll Creation: Switch focus to newly added option field when clicking "Add option". #1294
Poll Creation: Switch focus to newly added option field when clicking "Add option".
2023-09-13 16:59:17 +02:00
Jorge Martín
f456eea0e4 Request focus after adding an answer 2023-09-13 16:35:32 +02:00
Marco Romano
7fdd83bf91 GRemove the @JvmField annotation whenever using WarmUpRule. 2023-09-13 15:19:26 +02:00
Marco Romano
21e25e93e1 Poll Creation: Switch focus to newly added option field when clicking "Add option".
- Also scrolls the list to make the "Add option" button visible for further additions.
2023-09-13 14:12:58 +02:00
Marco Romano
9932bc7ed3 Improve ListItem logical item grouping 2023-09-13 13:43:54 +02:00
Marco Romano
b960892f09
Set proper progress indicator track color on polls (#1295)
Not yet a semantic color, so hardcoding it.
2023-09-13 11:51:29 +02:00
Marco Romano
8abaee8708
Polls analytics (#1285)
Send poll analytics event (creation, vote, end) where appropriate.
2023-09-12 16:03:40 +02:00
Marco Romano
a4c9c55a8b
New icons for Poll and Poll end (#1280)
Now both icons come from our designs and have a consistent size and padding (previously the poll one was coming from the material icons).
2023-09-12 13:35:26 +02:00
jonnyandrew
9e5b46200b
Reduce test flakiness by warming up molecule tests (#1226) 2023-09-06 10:08:21 +00:00
jmartinesp
74b2ddebfd Sync Strings from Localazy 2023-09-05 06:37:36 +00:00
Marco Romano
00828b6714
New icon for "poll end" in both action menu and timeline item. (#1203)
- Also fixes preview of action list (reply is included as it will soon be added).
2023-08-31 15:40:51 +02:00
Marco Romano
3a920f1a9d
Poll end (#1182)
- Adds an "End Poll" item in the action list long press menu.
  - Shows only on remote polls that have not ended yet and only if the user is the creator or has redact powers.

Closes https://github.com/vector-im/element-meta/issues/2026
2023-08-31 14:39:11 +02:00
Marco Romano
50869d7b28
Focus on question field when opening screen. (#1194) 2023-08-31 12:08:21 +02:00
Marco Romano
f0bed85458
Poll vote (#1181)
- Adds sendPollVote rust room API (still not operational, need to wait for a rust sdk release)
- Adds an optional EventId in TimelineItemPollContent
- Wires the poll answer click listeners all the way to the TimelinePresenter in order to call the new room API
- Shows question as message summary in long press menu

Closes https://github.com/vector-im/element-meta/issues/2025
2023-08-30 15:05:11 +00:00
Marco Romano
633d5282d6
"Create poll" UI (#1143)
NB: This is missing analytics, which will be added once https://github.com/matrix-org/matrix-analytics-events/pull/85 is merged.

Closes https://github.com/vector-im/element-meta/issues/2011
2023-08-29 22:31:21 +02:00
Benoit Marty
55255735d7
Merge branch 'develop' into feature/bma/dataObject 2023-08-28 10:56:02 +02:00
Benoit Marty
7083abcf09 migrate object to data object (#1135) 2023-08-24 09:32:44 +02:00
Florian Renaud
29cd8f287f Add missing modifier 2023-08-22 16:11:57 +02:00
Florian Renaud
8657a5dfac Rename previews 2023-08-22 10:55:18 +02:00
Florian Renaud
bb2f5a1330 Render ended poll with winning answers 2023-08-22 10:55:18 +02:00
Florian Renaud
d59349184f Rename progress variable to percentage 2023-08-22 10:55:18 +02:00
Florian Renaud
81051295a4 Use custom RadioButton 2023-08-22 10:55:17 +02:00
Florian Renaud
079d89ace5 Update UI for poll in the timeline 2023-08-22 10:55:17 +02:00
Florian Renaud
8a62abe93e
"View only" polls in the timeline (#1031)
* Handle poll events from the sdk

* Render started poll event in the timeline

* Create poll module

* Check poll kind before revealing the results

* Check if user has voted before revealing the results

* Add active poll previews

* Minor cleanup

* Update todos

* Fix CI

* Remove hardcoded string

* Update preview

* changelog file

* Update screenshots

* Use CommonPlurals

* Set poll root view as selectableGroup

* Improve poll result rendering

* Update screenshots

* Add missing showkase processor

* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-08-16 14:19:12 +00:00