discourse/app/assets/javascripts
David Taylor bdec564d14
DEV: Refactor header topic-info handling (#27989)
- Move topic-title on-screen detection to intersection-observer (via new modifier), and add a boolean to header service which indicates whether it's on-screen

- Move scroll-direction from Mixin to dedicated service. Teach it to pause scroll monitoring while transitions are in progress, to avoid reporting false changes in scroll direction. Also resets to a 'neutral' state after each navigation, which indicates the the user has not yet scrolled

- When entering a topic view, notify the header service which post is being targeted. It can then make an educated guess about whether the topic title is likely to be in-view

- Update header service `topicInfoVisible` to be a declarative getter, based on the three refactored sources of truth mentioned above

- Update legacy widget header to use the header service for topic info

All of these changes mean that the header no longer 'flickers' when navigating into topics on mobile. As well as the improved UX, this should also improve our Cumulative Layout Shift (CLS) web vital metrics.
2024-07-23 10:24:44 +01:00
..
admin FIX: Missing model return in admin-backups route (#28035) 2024-07-23 16:24:29 +10:00
custom-proxy Build(deps-dev): Bump glob from 10.4.2 to 10.4.3 (#27751) 2024-07-08 08:40:31 +08:00
deprecation-silencer DEV: Silence whitespace-eating-comment warnings (#27129) 2024-05-22 16:21:51 +02:00
dialog-holder Build(deps-dev): Bump webpack from 5.92.1 to 5.93.0 (#27882) 2024-07-12 01:30:31 +02:00
discourse DEV: Refactor header topic-info handling (#27989) 2024-07-23 10:24:44 +01:00
discourse-common Build(deps): Bump the babel group across 1 directory with 2 updates (#27943) 2024-07-17 11:41:52 +01:00
discourse-hbr DEV: Convert discourse-hbr to a regular package (#26562) 2024-04-08 20:00:34 +01:00
discourse-i18n DEV: Upgrade the MessageFormat library (JS) 2024-07-10 09:51:25 +02:00
discourse-markdown-it DEV: Add case-converter common lib and use with AdminPlugin (#27725) 2024-07-05 13:22:48 +10:00
discourse-plugins Build(deps): Bump the babel group across 1 directory with 2 updates (#27943) 2024-07-17 11:41:52 +01:00
discourse-widget-hbs Build(deps): Bump the babel group across 1 directory with 2 updates (#27943) 2024-07-17 11:41:52 +01:00
docs
ember-addons
ember-cli-progress-ci PERF: Improve production JS build in low-memory environments (#26849) 2024-05-02 11:43:59 +01:00
ember-production-deprecations DEV: Drop unused shims for Ember 3 deprecations (#26563) 2024-04-09 09:22:37 +01:00
float-kit Build(deps): Bump the babel group across 1 directory with 2 updates (#27943) 2024-07-17 11:41:52 +01:00
locales FEATURE: Add Uyghur language (#27183) 2024-05-27 09:58:18 +02:00
pretty-text Build(deps): Bump the babel group across 1 directory with 2 updates (#27943) 2024-07-17 11:41:52 +01:00
select-kit Build(deps): Bump the babel group across 1 directory with 2 updates (#27943) 2024-07-17 11:41:52 +01:00
theme-transpiler Build(deps): Bump terser from 5.31.2 to 5.31.3 (#27944) 2024-07-17 11:42:10 +01:00
truth-helpers Build(deps): Bump ember-auto-import from 2.7.3 to 2.7.4 (#27615) 2024-06-26 01:35:06 +02:00
.npmrc
handlebars-shim.js
polyfills.js
run-patch-package
service-worker.js.erb DEV: Drop workbox dependency (#26735) 2024-04-24 10:19:12 +01:00