discourse/app/assets/javascripts/admin/addon/templates
Ted Johansson 9915236e42
FEATURE: Warn about outdated translation overrides in admin dashboard (#22384)
This PR adds a feature to help admins stay up-to-date with their translations. We already have protections preventing admins from problems when they update their overrides. This change adds some protection in the other direction (where translations change in core due to an upgrade) by creating a notice for admins when defaults have changed.

Terms:

- In the case where Discourse core changes the default translation, the translation override is considered "outdated".
- In the case above where interpolation keys were changed from the ones the override is using, it is considered "invalid".
- If none of the above applies, the override is considered "up to date".

How does it work?

There are a few pieces that makes this work:

- When an admin creates or updates a translation override, we store the original translation at the time of write. (This is used to detect changes later on.)
- There is a background job that runs once every day and checks for outdated and invalid overrides, and marks them as such.
- When there are any outdated or invalid overrides, a notice is shown in admin dashboard with a link to the text customization page.

Known limitations

The link from the dashboard links to the default locale text customization page. Given there might be invalid overrides in multiple languages, I'm not sure what we could do here. Consideration for future improvement.
2023-07-10 10:06:40 +08:00
..
admin-badges UX: User badges tweaks (#20408) 2023-02-23 03:21:26 +01:00
logs DEV: Update admin controllers to native class syntax (#20674) 2023-03-15 09:42:12 +00:00
modal DEV: Define form template field inputs (#20430) 2023-03-01 11:07:13 -08:00
admin-badges.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
admin.hbs DEV: Only show plugin tab for admin (#20841) 2023-03-27 16:08:16 +08:00
api-keys-index.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
api-keys-new.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
api-keys-show.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
api.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
backups-index.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
backups-logs.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
backups.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
customize-colors-index.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
customize-colors-show.hbs DEV: Correct hbs prettier violations 2023-02-02 13:03:11 +00:00
customize-colors.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
customize-email-style-edit.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
customize-email-style.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
customize-email-templates-edit.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
customize-email-templates.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
customize-form-templates-edit.hbs DEV: Create form templates (#20189) 2023-02-08 11:21:39 -08:00
customize-form-templates-index.hbs DEV: Show active categories in form templates customize table (#20498) 2023-03-01 12:37:14 -08:00
customize-form-templates-new.hbs DEV: Create form templates (#20189) 2023-02-08 11:21:39 -08:00
customize-robots-txt.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
customize-themes-edit.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
customize-themes-index.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
customize-themes-show.hbs DEV: Update admin controllers to native class syntax (#20674) 2023-03-15 09:42:12 +00:00
customize-themes.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
customize.hbs DEV: Create form templates (#20189) 2023-02-08 11:21:39 -08:00
dashboard.hbs DEV: Remove use of PluginOutlet `@tagName` argument in core 2023-01-31 12:15:37 +00:00
dashboard_general.hbs DEV: Remove use of PluginOutlet `@tagName` argument in core 2023-01-31 12:15:37 +00:00
dashboard_moderation.hbs DEV: Rename all uses of PluginOutlet `@args` in core 2023-01-31 13:51:25 +00:00
dashboard_reports.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
dashboard_security.hbs DEV: Remove use of PluginOutlet `@tagName` argument in core 2023-01-31 12:15:37 +00:00
email-advanced-test.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
email-bounced.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
email-index.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
email-preview-digest.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
email-received.hbs DEV: Add extra whitespace to tidy up prettified templates 2022-12-28 13:11:12 +00:00
email-rejected.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
email-sent.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
email-skipped.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
email.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
embedding.hbs FEATURE: Update topic/comment embedding parameters (#20181) 2023-02-28 14:31:59 +02:00
emojis.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
logs.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
permalinks.hbs DEV: Update admin controllers to native class syntax (#20674) 2023-03-15 09:42:12 +00:00
plugins-index.hbs FEATURE: display commit hash for each plugin on `/admin/plugins` page. (#22176) 2023-06-26 10:09:57 +05:30
plugins.hbs UX: move vertical admin plugin nav to horizontal overflow nav (#20319) 2023-02-17 10:21:30 -05:00
reports-show.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
search-logs-index.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
search-logs-term.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
site-settings-category.hbs FEATURE: Fuzzy search in site settings and raise limit to 100 matches (#21572) 2023-05-16 18:23:05 +10:00
site-settings.hbs UX: Show titles on site settings navigation menu items (#20794) 2023-03-24 20:46:10 +04:00
site-text-edit.hbs FEATURE: Show available interpolation keys when overriding translations (#22220) 2023-06-28 19:03:04 +08:00
site-text-index.hbs FEATURE: Warn about outdated translation overrides in admin dashboard (#22384) 2023-07-10 10:06:40 +08:00
site-text.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
user-badges.hbs FIX: Badge granting recursion error (#20750) 2023-03-20 21:07:21 +00:00
user-fields.hbs DEV: Update admin controllers to native class syntax (#20674) 2023-03-15 09:42:12 +00:00
user-index.hbs DEV: Update admin controllers to native class syntax (#20674) 2023-03-15 09:42:12 +00:00
user-tl3-requirements.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
user.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
users-list-show.hbs FIX: update LoadMore selector for user tables (#20676) 2023-03-14 11:10:51 -04:00
users-list.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
watched-words-action.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
watched-words.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
web-hooks-edit.hbs DEV: Rename all uses of PluginOutlet `@args` in core 2023-01-31 13:51:25 +00:00
web-hooks-index.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
web-hooks-show.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
web-hooks.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00