Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Add theme data to EC widget Url #12279

Merged
merged 2 commits into from
Feb 26, 2024
Merged

Add theme data to EC widget Url #12279

merged 2 commits into from
Feb 26, 2024

Conversation

toger5
Copy link
Contributor

@toger5 toger5 commented Feb 21, 2024

Signed-off-by: Timo K [email protected]
Since the widget driver will replace the template variable $org.matrix.msc2873.client_theme with whatever is required as the theme this is enoght to pass ?theme=light (dark,...) to the widget as expected by element-call.

Checklist

  • Tests written for new code (and old code if feasible)
  • Linter and other CI checks pass
  • Sign-off given on the changes (see CONTRIBUTING.md)

@toger5 toger5 added the T-Enhancement New features, changes in functionality, performance boosts, user-facing improvements label Feb 21, 2024
Copy link
Member

@t3chguy t3chguy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any chance of a test?

@toger5
Copy link
Contributor Author

toger5 commented Feb 22, 2024

Any chance of a test?

I was considering it. I really feel like this is part of the widget api code. (here we really just concatenate the url props)
The actual replacement logic is part of the widget api code so a test would fit better there.
Since the widget api repo does not have any testing setup adding it here might be easiest path.

Signed-off-by: Timo K <[email protected]>
@toger5
Copy link
Contributor Author

toger5 commented Feb 22, 2024

@t3chguy I added testing this by extending the already existing url generation test.

@toger5 toger5 added this pull request to the merge queue Feb 26, 2024
Merged via the queue into develop with commit 179d2a7 Feb 26, 2024
30 checks passed
@toger5 toger5 deleted the toger5/theme-data-to-widget branch February 26, 2024 17:42
bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this pull request Mar 13, 2024
https://build.opensuse.org/request/show/1157523
by user dheidler + anag+factory
- Version 1.11.60
  ## ✨ Features
  * Refine styles of controls to match Compound (matrix-org/matrix-react-sdk#12299). Contributed by @robintown.
  * Hide the archived section (matrix-org/matrix-react-sdk#12286). Contributed by @dbkr.
  * Add theme data to EC widget Url (matrix-org/matrix-react-sdk#12279). Contributed by @toger5.
  * Update MSC2965 OIDC Discovery implementation (matrix-org/matrix-react-sdk#12245). Contributed by @t3chguy.
  * Use green dot for activity notification in `LegacyRoomHeader` (matrix-org/matrix-react-sdk#12270). Contributed by @florianduros.
  ## 🐛 Bug Fixes
  * Fix requests for senders to submit auto-rageshakes (https://github.com/matrix-org/ma
bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this pull request Mar 13, 2024
https://build.opensuse.org/request/show/1157524
by user dheidler + anag+factory
- Version 1.11.60
  ## ✨ Features
  * Refine styles of controls to match Compound (matrix-org/matrix-react-sdk#12299). Contributed by @robintown.
  * Hide the archived section (matrix-org/matrix-react-sdk#12286). Contributed by @dbkr.
  * Add theme data to EC widget Url (matrix-org/matrix-react-sdk#12279). Contributed by @toger5.
  * Update MSC2965 OIDC Discovery implementation (matrix-org/matrix-react-sdk#12245). Contributed by @t3chguy.
  * Use green dot for activity notification in `LegacyRoomHeader` (matrix-org/matrix-react-sdk#12270). Contributed by @florianduros.
  ## 🐛 Bug Fixes
  * Fix requests for senders to submit auto-rageshakes (https://github.com/matrix-org/ma
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Enhancement New features, changes in functionality, performance boosts, user-facing improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants