discourse/spec/system/page_objects/components
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
..
navigation_menu UX: Remove section heading for community section (#22405) 2023-07-11 09:40:37 +08:00
ace_editor.rb DEV: Create form templates (#20189) 2023-02-08 11:21:39 -08:00
base.rb DEV: Change sidebar header dropdown to use wait_for_animation (#20627) 2023-03-10 14:54:57 +10:00
category_list.rb FIX: update unread and new count for categories (#22145) 2023-06-21 13:42:30 +10:00
composer.rb DEV: Add diffhtml composer preview specs (#22333) 2023-06-29 09:37:44 +02:00
dialog.rb FIX: Blank dialog when auto-join selected in channel creation modal (#20405) 2023-02-22 17:38:54 +10:00
emoji_picker.rb DEV: Speed up core system tests (#21394) 2023-05-05 07:45:53 +08:00
fast_editor.rb FIX: Fast edit doesn’t work on content with certain characters (#20410) 2023-02-23 11:30:16 +08:00
legacy_header_dropdown.rb FIX: Override navigation menu to "legacy" via query param not working (#20402) 2023-02-22 06:43:14 +08:00
select_kit.rb DEV: Show form templates in the composer (#21190) 2023-05-29 14:47:18 -07:00
sidebar_header_dropdown.rb UX: Remove section heading for community section (#22405) 2023-07-11 09:40:37 +08:00
topic_list_controls.rb FIX: Dismissing unread posts did not publish changes to other clients (#22584) 2023-07-13 18:05:56 +08:00
topic_list.rb DEV: Move all scroll position reset/remember logic to a shared service (#22552) 2023-07-13 13:40:08 +01:00
topic_query_filter.rb UX: Styling adjustments for filters page (#20768) 2023-03-23 06:28:47 +08:00
user_menu.rb UX: Move group mentions notifications into the reply tab (#22562) 2023-07-13 06:52:03 +08:00