mirror of
https://github.com/discourse/discourse.git
synced 2026-08-06 13:08:40 +08:00
Previously, an exception in a single section's loader failed the entire admin dashboard request, so one broken section left admins with no dashboard at all. This change rescues and logs per-section build errors in `AdminDashboardSectionLoader` and returns `error: true` for the affected section, so the rest of the dashboard renders normally while the failed section shows an inline "couldn't load" message. Dashboard when the whole endpoint is 404 <img width="1388" height="1307" alt="Screenshot 2026-07-15 at 10 17 25 am" src="https://github.com/user-attachments/assets/a6a0c0ea-53eb-402f-b940-ecf4015e1757" /> Dashboard when 2 sections are broken <img width="1456" height="1489" alt="Screenshot 2026-07-15 at 10 43 14 am" src="https://github.com/user-attachments/assets/46e11855-bcc3-41b1-ad45-aa3a80dd367a" /> |
||
|---|---|---|
| .. | ||
| environments | ||
| imagemagick | ||
| initializers | ||
| locales | ||
| application.rb | ||
| boot.rb | ||
| cdn.yml.sample | ||
| database.yml | ||
| deploy.rb.sample | ||
| dev_defaults.yml | ||
| discourse.config.sample | ||
| discourse.pill.sample | ||
| discourse_defaults.conf | ||
| environment.rb | ||
| logrotate.conf | ||
| multisite.yml.production-sample | ||
| nginx.sample.conf | ||
| official_plugins.json | ||
| pitchfork.conf.rb | ||
| projections.json | ||
| routes.rb | ||
| sidekiq.yml | ||
| site_settings.yml | ||
| spring.rb | ||
| thin.yml.sample | ||
| unicorn_launcher | ||