discourse/plugins/poll
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
..
app FEATURE: Add Ranked Choice Voting 2024-07-17 11:49:14 +02:00
assets DEV: Remove widget wrapper from poll plugin (#28666) 2024-09-04 09:38:22 +01:00
config Update translations (#28705) 2024-09-03 11:46:50 -04:00
db DEV: Promote historic post_deploy migrations (#28128) 2024-07-30 01:14:03 +08:00
jobs/regular DEV: Apply syntax_tree formatting to plugins/* 2023-01-07 11:11:37 +00:00
lib FIX: poll ranked choice result algo majority check (#28191) 2024-08-02 08:51:26 +02:00
spec FIX: poll ranked choice result algo majority check (#28191) 2024-08-02 08:51:26 +02:00
test/javascripts DEV: Remove widget wrapper from poll plugin (#28666) 2024-09-04 09:38:22 +01:00
plugin.rb FEATURE: Add Ranked Choice Voting 2024-07-17 11:49:14 +02:00