discourse/app/assets/javascripts
David Taylor dfe94ba118
DEV: Move all scroll position reset/remember logic to a shared service (#22552)
Previously we were implementing scroll reset/memorization on a per-page basis. Many of these approaches relied on the `didInsertElement` hook, which is no longer appropriate since Discourse changed to use the 'loading slider' strategy for page transitions.

This commit rips out all of our custom scroll resetting/memorizing, and implements those things in a generic service. There are two features:

1. After every route transition, scroll to the top of the page
2. When using browser back/forward buttons, restore the last known scroll position for those routes

To opt-out of the behaviour, individual routes can add a scrollOnTransition boolean to their RouteInfo metadata using Ember's `buildRouteInfoMetadata` hook.
2023-07-13 13:40:08 +01:00
..
admin Build(deps-dev): Bump @babel/core in /app/assets/javascripts (#22578) 2023-07-13 12:11:54 +02:00
bootstrap-json DEV: Improve ember-cli 'LOAD_PLUGINS' behavior (#22590) 2023-07-13 11:27:29 +01:00
confirm-new-email DEV: Add error message styling (#21225) 2023-04-25 08:40:18 -04:00
dialog-holder FIX: Ensure dialogs are still rendered if triggered during boot (#22511) 2023-07-10 11:29:04 +01:00
discourse DEV: Move all scroll position reset/remember logic to a shared service (#22552) 2023-07-13 13:40:08 +01:00
discourse-common Build(deps-dev): Bump @babel/core in /app/assets/javascripts (#22578) 2023-07-13 12:11:54 +02:00
discourse-hbr Build(deps-dev): Bump @babel/core in /app/assets/javascripts (#22578) 2023-07-13 12:11:54 +02:00
discourse-plugins DEV: Improve ember-cli 'LOAD_PLUGINS' behavior (#22590) 2023-07-13 11:27:29 +01:00
discourse-widget-hbs Build(deps-dev): Bump @babel/core in /app/assets/javascripts (#22578) 2023-07-13 12:11:54 +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
locales UX/DEV: Review queue redesign fixes (#20239) 2023-03-02 16:40:53 +01:00
patches DEV: Update ember-cli to 5.0.0 (#22280) 2023-06-26 17:15:59 +02:00
pretty-text Build(deps-dev): Bump @babel/core in /app/assets/javascripts (#22578) 2023-07-13 12:11:54 +02:00
select-kit Build(deps-dev): Bump @babel/core in /app/assets/javascripts (#22578) 2023-07-13 12:11:54 +02:00
truth-helpers Build(deps-dev): Bump @babel/core in /app/assets/javascripts (#22578) 2023-07-13 12:11:54 +02:00
wizard Build(deps-dev): Bump @babel/core in /app/assets/javascripts (#22578) 2023-07-13 12:11:54 +02:00
.licensee.json DEV: Update sub-dependencies (#22325) 2023-06-29 17:08:33 +02:00
.npmrc
discourse-js-processor.js DEV: Update ember-cli-htmlbars to 6.2.0 (#20467) 2023-02-27 18:43:28 +01:00
handlebars-shim.js
package.json Build(deps-dev): Bump patch-package in /app/assets/javascripts (#22577) 2023-07-13 11:10:33 +02:00
polyfills.js Drop support for iOS < 15.7 (#19847) 2023-01-16 17:28:59 +00:00
service-worker.js.erb FIX: Attempt to reconnect to server when browser visibilty changes (#22259) 2023-06-23 11:32:34 -05:00
yarn.lock Build(deps-dev): Bump @babel/core in /app/assets/javascripts (#22578) 2023-07-13 12:11:54 +02:00