discourse/plugins/poll/test/javascripts/component
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
..
poll-buttons-dropdown-test.js FEATURE: Absolute Numbers in Poll (#28240) 2024-08-07 11:46:29 +02:00
poll-info-test.js DEV: Clean up imports (#28060) 2024-07-25 15:09:06 +02:00
poll-options-test.js UX: explain choices priorities (#28574) 2024-08-27 13:03:48 +02:00
poll-results-pie-test.js DEV: Check for poll element presence (#27765) 2024-07-08 13:58:35 +02:00
poll-results-ranked-choice-test.js DEV: Clean up imports (#28060) 2024-07-25 15:09:06 +02:00
poll-results-standard-test.js FEATURE: Absolute Numbers in Poll (#28240) 2024-08-07 11:46:29 +02:00
poll-results-tabs-test.js FEATURE: Add Ranked Choice Voting 2024-07-17 11:49:14 +02:00
poll-test.js DEV: Remove widget wrapper from poll plugin (#28666) 2024-09-04 09:38:22 +01:00
poll-ui-builder-test.js FEATURE: Configure poll 'public' default via site setting (#24348) 2023-11-13 18:54:21 +00:00