discourse/app/assets/javascripts
David Taylor 26db3be4dd
DEV: Improve UX when user profiles are hidden from public (#26293)
Previously, we had an instant redirect back to the homepage, and clicking avatars would do nothing. This made things feel 'broken' for anon when 'hide_user_profiles_from_public' was enabled.

This commit does a few things to resolve this:

1. Improve our 'exception' system for routes so that developers can deliberately trigger it without an ajax error

2. Improve 'exception' system so that the browser URL bar is updated correctly, and the 'back' button works as expected

3. Replace the redirect-to-home with an 'access denied' error page, with specific copy for 'You must log in to view user profiles'

4. Update user-card logic to display this new page instead of doing nothing on click
2024-03-21 17:53:52 +00:00
..
admin DEV: Add validation message to float fields in theme object editor (#26285) 2024-03-21 15:33:38 +08:00
bootstrap-json Build(deps-dev): Bump express from 4.18.3 to 4.19.0 (#26277) 2024-03-21 07:03:04 +08:00
deprecation-silencer DEV: Update ember-cli to 5.6.0 (#25886) 2024-02-27 10:48:30 +01:00
dialog-holder Build(deps-dev): Bump webpack from 5.90.3 to 5.91.0 (#26273) 2024-03-21 07:03:20 +08:00
discourse DEV: Improve UX when user profiles are hidden from public (#26293) 2024-03-21 17:53:52 +00:00
discourse-common Build(deps): Bump the babel group with 2 updates (#26272) 2024-03-21 07:03:29 +08:00
discourse-hbr Build(deps): Bump the babel group with 2 updates (#26272) 2024-03-21 07:03:29 +08:00
discourse-i18n DEV: Update ember-cli to 5.6.0 (#25886) 2024-02-27 10:48:30 +01:00
discourse-markdown-it FIX: support [code] in blockquotes (#26182) 2024-03-14 19:31:22 +01:00
discourse-plugins Build(deps): Bump the babel group with 2 updates (#26272) 2024-03-21 07:03:29 +08:00
discourse-widget-hbs Build(deps): Bump the babel group with 2 updates (#26272) 2024-03-21 07:03:29 +08:00
docs
ember-addons
ember-cli-progress-ci
ember-production-deprecations DEV: Add production-mode shim for Em deprecation (#25109) 2024-01-03 10:39:59 +00:00
float-kit Build(deps): Bump the babel group with 2 updates (#26272) 2024-03-21 07:03:29 +08:00
locales DEV: convert I18n pseudo package into real package (discourse-i18n) (#23867) 2023-10-12 14:44:01 +01:00
pretty-text Build(deps): Bump the babel group with 2 updates (#26272) 2024-03-21 07:03:29 +08:00
select-kit Build(deps): Bump the babel group with 2 updates (#26272) 2024-03-21 07:03:29 +08:00
theme-transpiler Build(deps): Bump the babel group with 2 updates (#26272) 2024-03-21 07:03:29 +08:00
truth-helpers DEV: Convert truth-helpers to a v2 addon and simplify imports (#26029) 2024-03-05 15:24:47 +00:00
.npmrc
handlebars-shim.js
polyfills.js
run-patch-package DEV: Automatically retry patch-package on failure (#23583) 2023-09-14 12:25:06 +01:00
service-worker.js.erb FIX: Service worker push notifications when cache disabled (#25610) 2024-02-08 11:55:32 +00:00