This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/app
David Taylor 78c6fc6e43 DEV: Use Ember router to determine currentURL
This means that our DiscourseURL logic will work consistently in tests, where `window.location` doesn't get updated.

To make it work properly, our `replaceState` implementation needed to be updated so that it writes the new URL to Ember's router, rather than bypassing the router and going straight to the `location` API.

A couple of tests needed updating following this fix:
- the composer-test was asserting that the new reply should be missing from the DOM... when really it **should** be in the DOM, and this fix to the test environment makes it so
- the topic-test was making a fake topic fixture based on the data from a topic with a different id. This was causing the topic route to get confused, and 'fix' the currentURL. This commit updates it to use a fixture with consistent data.

This commit also removes the feature detection of `window.history`. It's feature-detected within `discourse-location`. Plus, we don't support any browsers without it.
2022-01-12 12:18:37 +00:00
..
adapters FEATURE: Display pending posts on user’s page 2021-11-29 10:26:33 +01:00
components FEATURE: Show warning if user won't be mentioned (#15339) 2022-01-11 09:16:20 +02:00
controllers FEATURE: Show warning if user won't be mentioned (#15339) 2022-01-11 09:16:20 +02:00
helpers DEV: Re-use main app registry for raw HBS view lookups (#15456) 2022-01-05 22:22:13 +00:00
initializers DEV: Allow click-interceptor in tests and add navigation test (#15499) 2022-01-10 15:45:44 +00:00
lib DEV: Use Ember router to determine currentURL 2022-01-12 12:18:37 +00:00
mixins DEV: Skip timers when loading topic route in tests (#15500) 2022-01-10 10:51:18 +00:00
models DEV: Add composer-open class to body element when compsoer is open (#15420) 2021-12-28 15:25:53 -06:00
pre-initializers DEV: Correct method name in theme-errors-handler pre-initializer (#15501) 2022-01-10 10:51:40 +00:00
raw-views DEV: Use method definition syntax consistently (#14915) 2021-11-13 14:01:55 +01:00
routes FIX: Handling of /p/### URLs within Ember (#15536) 2022-01-11 13:10:46 +00:00
services DEV: correctly notify property changes of emoji store (#15389) 2021-12-22 10:59:41 +01:00
styles DEV: Migrate to Ember CLI (#11932) 2021-02-03 14:22:20 -05:00
templates DEV: add invite-page class (#15546) 2022-01-11 17:05:13 -05:00
widgets FEATURE: Allow topic pin toggle when header is docked (#15438) 2022-01-03 15:21:06 +03:00
app.js FEATURE: Catch decorateCooked errors from themes/plugins (#15450) 2022-01-04 21:59:52 +00:00
index.html FIX: Ember CLI was always loading the admin payload in dev mode 2021-10-05 08:34:10 -04:00
mapping-router.js DEV: Improve and document __container__ workaround in tests (#15498) 2022-01-10 10:34:08 +00:00