rbondesson
83d732d60e
Refactor className and children to component properties instead och view model snapshots in shared components ( #32711 )
...
* Refactor className? to component property in EncryptionEventView
* Refactor extraClassNames to default react className as component property for DecryptionFailureBodyView
* Refactor className to component property for MessageTimestampView
* Refactor className and children to component properties for ReactionsRowButton
* Refactor className to component property for DisambiguatedProfile
* Refactor className to a component property in DateSeparatorView
* Fix for lint errors and EncryptionEventView unsupported icon color
* EncryptionEventView fix for icon color css specificity/order
2026-03-05 08:36:45 +00:00
Zack
fe84501e95
Move ReactionRow To Shared Components MVVM ( #32634 )
...
* Init shared component structure
* Storybook implementation
* Add snapshots of storybook examples
* ViewModel Creation + Implementation In EventTile.tsx
* Prettier
* Update HTML snapshot
* Add onhover pointer on bottons
* Added compound web tooltip
* Removed possible of undefined on label
* Update snapshots
* Update setters to use merge instead of updating full snapshot
* adapt view model test for setters change
* Actions should be passed to viewmodel fix
* replace ReactionsRowWrapper forceRender with explicit reaction state
* Update snapshot
2026-03-02 13:59:04 +00:00
Zack
e26cbba541
Refactor Reactions Row Button to shared-components ( #31993 )
...
* Refactoring of ReactionRowButton to shared component MVVM
* Removal of old component and creation of unit tests
* Update
* Update tests
* Update tests to mimic VM
* Update Lint Spacing
* Added onKeyDown to follow wcag rules
* Remove Unused code
* Update screenshots
* Removal of unessecery test and story
* Update snapshot
* Refactor reactions row VMs to granular setters and merge cheap snapshot updates
* Elist Fix
* Revert ReactionRowButtonToolTip Test
* Fix ReactionsRowButtonViewModel tooltip sync to use tooltip setProps
* Add dedicated ReactionsRowButtonViewModel unit tests for setters, tooltip sync, and click actions
* Better Wording On Functions
* Update snapshot
* Update packages/shared-components/src/message-body/ReactionsRowButton/ReactionsRowButtonView.tsx
Co-authored-by: Florian Duros <florian.duros@ormaz.fr>
* use native button and tighten view model
* Update Snapshots + small fixes on reactionrow
* Removal of Null on viewmodel and adapting ReactionRow
* Update test and removal of unused test since me MVVMD ReactionRowButton
* align assertions with refactored update behavior
* FIx issue with classNames component
* Update snapshot
* Removal of old test snapshot
* Update Snapshot
* Implement Css + Snapshot Updates
* Update Snapshot and css to match old component style
* restore MatrixClientContext fallback in ReactionsRow for export/test rendering
* restore client fallback in ReactionsRow to preserve export rendering
* Remove Unused Pcss FIle
* Update Css
* Update misstake always having button default to disabled render
* Remove unsimiler css to original component
* Update Snapshot to reflect css adjustments
* Update css
* Update font to compund
* Update css to reflect old component
* Update css to compund
* Update Snapshot and css
* Update css
* Update HTML snapshot
* Update css
* Update Css
* Update snapshots
* Update HTML snapshot
* Update css + snapshot
* Update HTML snapshot
* Removal of mx css
* Update snapshot based on css removal
* Update Html snapshot
* Apply suggestion from @florianduros
Co-authored-by: Florian Duros <florian.duros@ormaz.fr>
* remove setContext from ReactionsRowButtonViewModel
* Update packages/shared-components/src/message-body/ReactionsRowButton/ReactionsRowButtonView.tsx
Co-authored-by: Florian Duros <florian.duros@ormaz.fr>
* add tooltipVm to ReactionsRowButtonViewSnapshot
* added compound token variables
* remove className from content and count inner elements
* use useMatrixClientContext() directly for ReactionsRowButtonViewModel
* Update snapshots
* Update snapshot + fix Typescript error on test file
* Removal of line-height in css
* Added line-height back and removed font: inherit;
* derive ReactionsRowButton className/ariaLabel types from HTML button attrs
* Update packages/shared-components/src/message-body/ReactionsRowButton/ReactionsRowButtonView.tsx
Co-authored-by: Florian Duros <florian.duros@ormaz.fr>
* Update src/viewmodels/message-body/ReactionsRowButtonViewModel.ts
Co-authored-by: Florian Duros <florian.duros@ormaz.fr>
* Update src/viewmodels/message-body/ReactionsRowButtonViewModel.ts
Co-authored-by: Florian Duros <florian.duros@ormaz.fr>
* Update test/viewmodels/message-body/ReactionsRowButtonViewModel-test.tsx
Co-authored-by: Florian Duros <florian.duros@ormaz.fr>
* Update snapshots and lint issues
* Update model to respond to changes
* Update aria label on view
---------
Co-authored-by: Florian Duros <florian.duros@ormaz.fr>
2026-02-25 11:18:03 +00:00
Michael Telatynski
91a3cb03c1
mv element.io @types __mocks__/ debian docker module_system/ playwright res src test webapp Dockerfile .dockerignore .eslintignore .stylelintrc.cjs babel.config.cjs recorder-worklet-loader.cjs .modernizr.json components.json config.json config.sample.json package.json project.json tsconfig.json tsconfig.module_system.json jest.config.ts playwright.config.ts webpack.config.ts build_config.sample.yaml apps/web/
...
mkdir apps/web/scripts
mv scripts/{cleanup.sh,ci_package.sh,copy-res.ts,deploy.py,package.sh} apps/web/scripts
And a couple of gitignore tweaks
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2026-02-24 15:43:58 +00:00