discourse/app/assets/javascripts/select-kit/addon/components
Alan Guo Xiang Tan 038de393ed
DEV: Raise an error in test env when I18n interpolate argument is missing (#23527)
Why this change?

We have been bitten by bugs where tests are not catching missing
interpolate argument in our client side code because the JavaScript
tests are also using `I18n.translate` to assert that the right message
is shown. Before this change, `I18n.interpolate` will just replace the
missing interpolation argument in the final translation with some
placeholder. As a result, we ended up comparing a broken translation
with another broken translation in the test environment.

Why does this change do?

This change introduces the `I18n.testing` property which when set to
`true` will cause `I18n.translate` to throw an error when an interpolate
argument is missing. With this commit, we also set `I18n.testing = true`
when running qunit acceptance test.
2023-09-13 10:53:48 +08:00
..
category-drop DEV: Co-locate select-kit component templates (#20779) 2023-05-02 14:10:53 +01:00
color-palettes DEV: Co-locate select-kit component templates (#20779) 2023-05-02 14:10:53 +01:00
combo-box DEV: Update DButton uses (#23333) 2023-08-31 11:49:35 +02:00
dropdown-select-box FEATURE: Allow users to manually track threads without replying (#22100) 2023-06-16 12:08:26 +10:00
future-date-input-selector DEV: Co-locate select-kit component templates (#20779) 2023-05-02 14:10:53 +01:00
mini-tag-chooser DEV: Update DButton uses (#23333) 2023-08-31 11:49:35 +02:00
multi-select UX: Minor change to compact tag chooser (#22796) 2023-07-26 11:43:46 -04:00
notifications-button DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
notifications-filter DEV: Co-locate select-kit component templates (#20779) 2023-05-02 14:10:53 +01:00
period-chooser DEV: Update ember-template-lint (#22242) 2023-06-22 22:54:46 +02:00
select-kit UX: Compact option for multi-selects (#22239) 2023-07-25 11:00:02 -04:00
tag-drop DEV: Co-locate select-kit component templates (#20779) 2023-05-02 14:10:53 +01:00
toolbar-popup-menu-options DEV: Co-locate select-kit component templates (#20779) 2023-05-02 14:10:53 +01:00
user-chooser DEV: Co-locate select-kit component templates (#20779) 2023-05-02 14:10:53 +01:00
categories-admin-dropdown.js DEV: Fix typos and other spell-checker warnings (#17554) 2022-07-19 10:27:10 +08:00
category-chooser.js FEATURE: Default Composer Category Site Setting (#18967) 2022-11-14 11:09:57 -07:00
category-drop.js DEV: Remove 'htmlSafe' string prototype extensions (#16766) 2022-05-13 14:58:26 -05:00
category-notifications-button.js A11Y: Add labels to some search fields, category notification selector (#14430) 2021-09-23 14:52:34 -04:00
category-row.hbs DEV: Co-locate select-kit component templates (#20779) 2023-05-02 14:10:53 +01:00
category-row.js DEV: Co-locate select-kit component templates (#20779) 2023-05-02 14:10:53 +01:00
category-selector.js DEV: Fix typos and other spell-checker warnings (#17554) 2022-07-19 10:27:10 +08:00
color-palettes.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
combo-box.js DEV: Remove use of run-loop-and-computed-dot-access (#17113) 2022-06-17 09:43:13 -05:00
composer-actions.js DEV: Remove OpenComposer mixin and refactor related logic (#23015) 2023-08-11 09:53:44 +01:00
create-color-row.hbs DEV: Co-locate select-kit component templates (#20779) 2023-05-02 14:10:53 +01:00
create-color-row.js DEV: Co-locate select-kit component templates (#20779) 2023-05-02 14:10:53 +01:00
dropdown-select-box.js FIX: ensures minimum tags logic is correct and shared (#14723) 2021-11-12 14:04:48 +01:00
email-group-user-chooser-filter.js FIX: fixes few regressions in select-kit (#17453) 2022-07-12 21:38:17 +02:00
email-group-user-chooser-row.hbs DEV: Co-locate select-kit component templates (#20779) 2023-05-02 14:10:53 +01:00
email-group-user-chooser-row.js DEV: Co-locate select-kit component templates (#20779) 2023-05-02 14:10:53 +01:00
email-group-user-chooser.js DEV: Use object spread instead of Object.assign({}, …) (#23167) 2023-08-21 14:28:16 +02:00
flair-chooser.js FIX: Do not show invalid option in flair chooser (#13725) 2021-07-13 19:22:39 +03:00
flair-row.hbs DEV: Co-locate select-kit component templates (#20779) 2023-05-02 14:10:53 +01:00
flair-row.js DEV: Co-locate select-kit component templates (#20779) 2023-05-02 14:10:53 +01:00
form-template-chooser.js DEV: Show form templates in the composer (#21190) 2023-05-29 14:47:18 -07:00
future-date-input-selector.js DEV: Remove user options from current user serializer (#19089) 2022-12-05 18:25:30 +02:00
group-chooser.js
group-dropdown.js DEV: select-kit third major update with focus on accessibility (#13303) 2021-08-23 10:44:19 +02:00
group-notifications-button.js
icon-picker.js FIX: IconPicker option to display only available icons (#20235) 2023-02-13 09:24:47 +11:00
list-setting.js DEV: Extensively use includes() (#17541) 2022-07-17 20:48:36 +02:00
mini-tag-chooser.js UX: Compact option for multi-selects (#22239) 2023-07-25 11:00:02 -04:00
multi-select.hbs UX: Compact option for multi-selects (#22239) 2023-07-25 11:00:02 -04:00
multi-select.js UX: Compact option for multi-selects (#22239) 2023-07-25 11:00:02 -04:00
none-category-row.hbs DEV: Co-locate select-kit component templates (#20779) 2023-05-02 14:10:53 +01:00
none-category-row.js DEV: Co-locate select-kit component templates (#20779) 2023-05-02 14:10:53 +01:00
notifications-button.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
notifications-filter.js DEV: Raise an error in test env when I18n interpolate argument is missing (#23527) 2023-09-13 10:53:48 +08:00
period-chooser.js A11Y: Fix several minor issues (#14436) 2021-09-24 11:52:07 -04:00
pinned-button.hbs DEV: Co-locate select-kit component templates (#20779) 2023-05-02 14:10:53 +01:00
pinned-button.js DEV: Co-locate select-kit component templates (#20779) 2023-05-02 14:10:53 +01:00
pinned-options.js DEV: Remove 'htmlSafe' string prototype extensions (#16766) 2022-05-13 14:58:26 -05:00
search-advanced-category-chooser.js
select-kit.js FIX: do not mutate this.attrs and this.actions (#23125) 2023-08-17 18:07:06 +02:00
selected-choice-category.hbs DEV: Co-locate select-kit component templates (#20779) 2023-05-02 14:10:53 +01:00
selected-choice-category.js DEV: Co-locate select-kit component templates (#20779) 2023-05-02 14:10:53 +01:00
selected-choice-color.js DEV: select-kit third major update with focus on accessibility (#13303) 2021-08-23 10:44:19 +02:00
selected-choice.hbs DEV: Update DButton uses (#23333) 2023-08-31 11:49:35 +02:00
selected-choice.js DEV: Co-locate select-kit component templates (#20779) 2023-05-02 14:10:53 +01:00
selected-color.js DEV: select-kit third major update with focus on accessibility (#13303) 2021-08-23 10:44:19 +02:00
selected-flair.hbs DEV: Co-locate select-kit component templates (#20779) 2023-05-02 14:10:53 +01:00
selected-flair.js DEV: Co-locate select-kit component templates (#20779) 2023-05-02 14:10:53 +01:00
selected-name.hbs DEV: Update DButton uses (#23333) 2023-08-31 11:49:35 +02:00
selected-name.js DEV: Co-locate select-kit component templates (#20779) 2023-05-02 14:10:53 +01:00
single-select.hbs UX: loading slider for select-kit filter (#21401) 2023-05-08 14:56:46 -04:00
single-select.js DEV: Co-locate select-kit component templates (#20779) 2023-05-02 14:10:53 +01:00
tag-chooser-row.hbs DEV: Co-locate select-kit component templates (#20779) 2023-05-02 14:10:53 +01:00
tag-chooser-row.js DEV: Co-locate select-kit component templates (#20779) 2023-05-02 14:10:53 +01:00
tag-chooser.js FEATURE: add new tags from edit tag synonyms page (#20553) 2023-03-08 14:26:20 +08:00
tag-drop.js FIX: Hide tag count in tag filter when in a category context (#16327) 2022-03-31 12:57:27 +11:00
tag-group-chooser.js DEV: Convert SiteSettings to a tracked object (#19015) 2022-11-17 18:44:23 +01:00
tag-notifications-button.js
tag-row.hbs DEV: Co-locate select-kit component templates (#20779) 2023-05-02 14:10:53 +01:00
tag-row.js DEV: Co-locate select-kit component templates (#20779) 2023-05-02 14:10:53 +01:00
tags-intersection-chooser.js UX: implements a new tags-intersection-chooser (#12139) 2021-02-19 13:46:02 +01:00
timezone-input.js FIX: Regression in timezone name localizations (#15761) 2022-02-02 23:41:42 +01:00
toolbar-popup-menu-options.js DEV: Some select-box headers don't need a class (#12992) 2021-05-20 16:00:45 +10:00
topic-chooser.js FEATURE: Use new topic-chooser for invite modal (#15884) 2022-02-14 13:43:52 +02:00
topic-footer-mobile-dropdown.js
topic-notifications-button.hbs DEV: Co-locate select-kit component templates (#20779) 2023-05-02 14:10:53 +01:00
topic-notifications-button.js DEV: Co-locate select-kit component templates (#20779) 2023-05-02 14:10:53 +01:00
topic-notifications-options.js DEV: Remove duplicate (and deprecated) SK option (#11435) 2020-12-08 13:21:02 -05:00
topic-row.hbs DEV: Co-locate select-kit component templates (#20779) 2023-05-02 14:10:53 +01:00
topic-row.js DEV: Co-locate select-kit component templates (#20779) 2023-05-02 14:10:53 +01:00
user-chooser.js DEV: Remove {{user-selector}} (#17753) 2023-03-29 11:49:47 +03:00
user-notifications-dropdown.js DEV: Consolidate ignore user modals (#22754) 2023-07-25 09:04:28 +08:00