discourse/plugins/poll/test/javascripts
David Taylor e6edd52047
DEV: Remove widget wrapper from poll plugin (#28666)
- Uses `helper.renderGlimmer` with GJS to render the `<Poll` component without any widgets

- Moves some logic into component, so that only `@post`, `@poll` and `@titleHTML` need to be passed into the component (no more 'attrs')

- Updates `modifyClass` calls to modern syntax

- Replaces observer in `Post` model with a native setter & tracked property

- Replaced Poll EmberObject instances with TrackedObject

- Updated component tests with new arguments

- Updated some tests to qunit-dom

- Fixed up core `repliesBelow` and `repliesAbove` logic to create post models properly. Previously it was passing 'transformed' versions of posts into the model, which doesn't make sense.
2024-09-04 09:38:22 +01:00
..
acceptance FIX: make poll voter list expansion persistent (#28352) 2024-08-19 15:55:22 +10:00
component DEV: Remove widget wrapper from poll plugin (#28666) 2024-09-04 09:38:22 +01:00
helpers DEV: Sort imports 2023-10-10 21:46:54 +01:00