discourse/app/assets/javascripts
David Taylor e0d8dae0b3
DEV: Improve api.decorateCookedElement implementation (#23543)
Previously, calling `decorateCookedElement` would re-open a number of components and introduce new event listeners. This kind of thing cannot be undone, and so we were forced to introduce the unique 'id' parameter. If a given decorator id had already been applied, we would skip re-applying it. This helped, but it was still problematic because all tests would be using the callback which was registered in the first test. If its closure had any references to the ApplicationInstance, then those references would be destroyed and useless in future tests.

This commit switches strategy to use `appEvents` instead of `klass.reopen`. This is a much more obvious system and, since appEvent registrations are reset for every ApplicationInstance, we can drop the requirement for unique ids on `decorateCookedElement` calls. The callback used will always be the one registered against the current ApplicationInstance.

This commit also updates our `wrapWithErrorHandler` implementation so that it throws errors in tests. This ensures that errors are not silently swallowed in CI.
2023-09-12 16:21:15 +01:00
..
admin UX: remove unsupported filterable attr from form template sample (#23535) 2023-09-12 12:20:55 -03:00
bootstrap-json DEV: Make index.html a valid html (#23289) 2023-08-28 14:44:38 +02:00
confirm-new-email DEV: Add error message styling (#21225) 2023-04-25 08:40:18 -04:00
deprecation-silencer DEV: move deprecation silencer to a shared package (#22668) 2023-07-18 19:07:20 +01:00
dialog-holder DEV: Update DButton uses (#23333) 2023-08-31 11:49:35 +02:00
discourse DEV: Improve api.decorateCookedElement implementation (#23543) 2023-09-12 16:21:15 +01:00
discourse-common Build(deps-dev): Bump the babel group (#23491) 2023-09-11 01:33:48 +02:00
discourse-hbr Build(deps-dev): Bump the babel group (#23491) 2023-09-11 01:33:48 +02:00
discourse-plugins Build(deps-dev): Bump the babel group (#23491) 2023-09-11 01:33:48 +02:00
discourse-widget-hbs Build(deps-dev): Bump the babel group (#23491) 2023-09-11 01:33:48 +02:00
docs
ember-addons
ember-cli-progress-ci
ember-production-deprecations DEV: Clean up package.json files (#22349) 2023-06-30 13:01:45 +02:00
float-kit DEV: FloatKit (#23541) 2023-09-12 15:50:26 +02:00
locales UX/DEV: Review queue redesign fixes (#20239) 2023-03-02 16:40:53 +01:00
patches DEV: introduce Embroider behind a flag, and start testing in CI (#23005) 2023-09-07 13:15:43 +01:00
pretty-text DEV: Replace _eak_seen with entries (#23507) 2023-09-11 16:03:27 +02:00
select-kit Build(deps-dev): Bump the babel group (#23491) 2023-09-11 01:33:48 +02:00
truth-helpers Build(deps-dev): Bump the babel group (#23491) 2023-09-11 01:33:48 +02:00
wizard Build(deps-dev): Bump the babel group (#23491) 2023-09-11 01:33:48 +02:00
.licensee.json DEV: Update sub-dependencies (#22325) 2023-06-29 17:08:33 +02:00
.npmrc
handlebars-shim.js
js-processor.js DEV: Enable ember-this-fallback in themes (#23384) 2023-09-05 11:16:12 +02:00
package.json DEV: FloatKit (#23541) 2023-09-12 15:50:26 +02:00
polyfills.js
service-worker.js.erb FIX: Ensure service-worker cache is cleaned correctly (#23204) 2023-08-23 13:58:32 +01:00
yarn.lock DEV: FloatKit (#23541) 2023-09-12 15:50:26 +02:00