MVVM WidgetContextMenu component to shared component (#31190)

* Create WidgetContextMenu component in shared-components

* Modify WidgetMenuContext call (apptile, extensioncard, widgetcard), test and stories

* Correctly use new widgetcontextmenu component

* WidgetContextMenuViewModel unit test

* Lint and add comments

* Finalize widgetcontextmenuviewmodel test

* fix lint errors

* Fix test error

* Update playwright screenshots

* add userWidget in widgetcontexstmenu props

* Fix some a11y issues on playwright

* fix linter error widget card

* Use new i18n way for share component widget context menu

* Add i18n context provider for widget context menu

* chore: lint and update snapshot widgetcontextmenu
This commit is contained in:
Marc
2026-01-29 11:22:47 +01:00
committed by GitHub
parent 8769165e88
commit 8bb1cb5e63
20 changed files with 1176 additions and 155 deletions
@@ -5,6 +5,7 @@
"action": {
"delete": "Delete",
"dismiss": "Dismiss",
"edit": "Edit",
"explore_rooms": "Explore rooms",
"invite": "Invite",
"new_conversation": "New conversation",
@@ -13,6 +14,7 @@
"open_menu": "Open menu",
"pause": "Pause",
"play": "Play",
"remove": "Remove",
"retry": "Retry",
"search": "Search",
"start_chat": "Start chat"
@@ -83,5 +85,15 @@
"error_downloading_audio": "Error downloading audio",
"unnamed_audio": "Unnamed audio"
}
},
"widget": {
"context_menu": {
"move_left": "Move left",
"move_right": "Move right",
"remove": "Remove for everyone",
"revoke": "Revoke permissions",
"screenshot": "Take a picture",
"start_audio_stream": "Start audio stream"
}
}
}