This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/templates
Martin Brennan b8b29e79ad
FIX: Improve user timezone saving (#9230)
Based on issues identified in https://meta.discourse.org/t/improved-bookmarks-with-reminders/144542/20

* Implement the resolvedTimezone() function on the user model where we return the user's timezone if it has been set, or we guess it using moment and save it to the user using an update call if it has not yet been set. This covers the cases of users who do not log out/in often who will not get their timezone set via login. This also makes sure the guess + save is done in a non-obtrusive way not on every page -- only when it is needed.

* Before if a user's timezone was blank when they visited their profile page we were autofilling the dropdown with the guessed timezone from moment. However this was confusing as it would appear you have that timezone saved in the DB when you really didn't. Now we do not autofill the dropdown and added a button to automatically guess the current timezone to make everything more explicit.
2020-03-24 11:39:09 +10:00
..
account-created FIX: prevents i18n helper to return a SafeString (#9191) 2020-03-12 16:50:20 +01:00
badges DEV: enforces ember-template-lint: no-triple-curlies (#9165) 2020-03-11 09:23:10 +01:00
components UX: display avatar flair in categories route topic list items (#9197) 2020-03-24 01:13:25 +05:30
composer DEV: enforces ember-template-lint: no-triple-curlies (#9165) 2020-03-11 09:23:10 +01:00
discovery DEV: enforces no-invalid-interactive linting rule (#8907) 2020-02-11 15:55:16 +01:00
group FEATURE: add support for group members visibility level (#8004) 2019-08-14 19:00:04 +05:30
groups DEV: enforces ember-template-lint: no-triple-curlies (#9165) 2020-03-11 09:23:10 +01:00
invites DEV: enforces ember-template-lint: no-triple-curlies (#9165) 2020-03-11 09:23:10 +01:00
list DEV: enforces ember-template-lint: no-triple-curlies (#9165) 2020-03-11 09:23:10 +01:00
mobile UX: display avatar flair in categories route topic list items (#9197) 2020-03-24 01:13:25 +05:30
modal FEATURE: automatically delete replies on a topic after N days. (#9209) 2020-03-19 21:06:31 +05:30
navigation DEV: enforces ember-template-lint: no-triple-curlies (#9165) 2020-03-11 09:23:10 +01:00
post DEV: Use .hbr for raw template file extension (#8883) 2020-02-11 13:38:12 -06:00
preferences FIX: Improve user timezone saving (#9230) 2020-03-24 11:39:09 +10:00
tags DEV: enforces no-invalid-interactive linting rule (#8907) 2020-02-11 15:55:16 +01:00
user FEATURE: MVP Bookmarks with reminders user list changes (#8999) 2020-03-12 15:20:56 +10:00
about.hbs DEV: enforces ember-template-lint: no-triple-curlies (#9165) 2020-03-11 09:23:10 +01:00
account-created.hbs FEATURE: Allow users to resend/update email from confirmation page 2017-05-03 11:18:01 -04:00
application.hbs FEATURE: Incorporate PWA install prompt into Discourse UI (#8013) 2019-08-19 14:09:21 -03:00
badge-selector-autocomplete.hbr DEV: Use .hbr for raw template file extension (#8883) 2020-02-11 13:38:12 -06:00
bulk-tag.hbs FEATURE: replaces tag-chooser/tag-group-chooser with select-kit component 2018-02-26 11:42:57 +01:00
category-selector-autocomplete.hbr DEV: Use .hbr for raw template file extension (#8883) 2020-02-11 13:38:12 -06:00
category-tag-autocomplete.hbr DEV: Use .hbr for raw template file extension (#8883) 2020-02-11 13:38:12 -06:00
composer.hbs DEV: enforces ember-template-lint: no-triple-curlies (#9165) 2020-03-11 09:23:10 +01:00
discovery.hbs DEV: enforces ember-template-lint: no-triple-curlies (#9165) 2020-03-11 09:23:10 +01:00
email-login.hbs FIX: Allow submitting various forms via keyboard (#8866) 2020-02-05 15:23:35 +01:00
emoji-picker-recent.hbr DEV: Use .hbr for raw template file extension (#8883) 2020-02-11 13:38:12 -06:00
emoji-picker.hbr.erb DEV: Use .hbr for raw template file extension (#8883) 2020-02-11 13:38:12 -06:00
emoji-selector-autocomplete.hbr DEV: Use .hbr for raw template file extension (#8883) 2020-02-11 13:38:12 -06:00
exception.hbs REFACTOR: Replace some fa-* uses with helpers 2017-07-27 14:55:41 -04:00
flat-button.hbr DEV: Use .hbr for raw template file extension (#8883) 2020-02-11 13:38:12 -06:00
full-page-search.hbs DEV: enforces ember-template-lint: no-triple-curlies (#9165) 2020-03-11 09:23:10 +01:00
group-activity-posts.hbs DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
group-activity-topics.hbs DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
group-index.hbs DEV: select-kit 2 (#7998) 2020-02-03 14:22:14 +01:00
group-requests.hbs FIX: Group requests page missing wrapper 2019-04-15 14:16:02 -04:00
group-selector-autocomplete.hbr DEV: Use .hbr for raw template file extension (#8883) 2020-02-11 13:38:12 -06:00
group.hbs DEV: enforces ember-template-lint: no-triple-curlies (#9165) 2020-03-11 09:23:10 +01:00
hide-modal.hbs FIX: Remove more of those pesky View classes 2016-11-11 17:03:15 -05:00
invites.hbs FEATURE: new invite acceptance page, where username can be chosen and password can be set 2017-02-15 16:51:57 -05:00
loading.hbs FIX: Remove more of those pesky View classes 2016-11-11 17:03:15 -05:00
login-preferences.hbs FIX: Login page that redirects to preferences was broken 2019-12-05 22:36:11 +01:00
modal.hbs [WIP] FEATURE: merge share and invite actions together (#7021) 2019-02-20 15:42:44 +01:00
outlet-list.hbs DEV: enforces ember-template-lint: no-unbound (#9147) 2020-03-09 15:28:31 +01:00
password-reset.hbs DEV: enforce ember-template-lint: no-unnecessary-concat (#9133) 2020-03-07 12:58:48 +01:00
preferences-email.hbs FIX: Allow submitting various forms via keyboard (#8866) 2020-02-05 15:23:35 +01:00
preferences-second-factor.hbs FIX: prevents i18n helper to return a SafeString (#9191) 2020-03-12 16:50:20 +01:00
preferences-username.hbs FIX: Allow submitting various forms via keyboard (#8866) 2020-02-05 15:23:35 +01:00
preferences.hbs pass model to above-user-preferences outlet (#8084) 2019-09-11 10:24:22 -04:00
review-index.hbs FIX: makes user-selector use real booleans (#8909) 2020-02-11 20:20:12 +01:00
review-settings.hbs DEV: select-kit 2 (#7998) 2020-02-03 14:22:14 +01:00
review-show.hbs FEATURE: New 'Reviewable' model to make reviewable items generic 2019-03-28 12:45:10 -04:00
review-topics.hbs DEV: enforces link-rel-noopener linting rule (#8936) 2020-03-06 11:35:18 -05:00
review.hbs FEATURE: Allow users to customize bonuses for reviewable types 2019-04-03 11:18:34 -04:00
selected-posts.hbs DEV: enforces ember-template-lint: no-partial (#9173) 2020-03-11 15:30:14 +01:00
static.hbs DEV: enforces ember-template-lint: no-triple-curlies (#9165) 2020-03-11 09:23:10 +01:00
tag-groups-edit.hbs DEV: Tag group improvements (#8252) 2019-10-30 16:57:13 +01:00
tag-groups-index.hbs FEATURE: tag groups 2016-06-06 14:18:48 -04:00
tag-groups-new.hbs DEV: Tag group improvements (#8252) 2019-10-30 16:57:13 +01:00
tag-groups.hbs DEV: enforces no self-closing-void-elements (#8879) 2020-02-06 17:26:06 +01:00
tags.hbs Fixing HTML structure of tag filtered topic list 2018-08-15 19:45:37 -04:00
topic-list-header-column.hbr DEV: Use .hbr for raw template file extension (#8883) 2020-02-11 13:38:12 -06:00
topic-list-header.hbr DEV: Use .hbr for raw template file extension (#8883) 2020-02-11 13:38:12 -06:00
topic-post-badges.hbr DEV: Use .hbr for raw template file extension (#8883) 2020-02-11 13:38:12 -06:00
topic-status.hbr DEV: Use .hbr for raw template file extension (#8883) 2020-02-11 13:38:12 -06:00
topic.hbs FIX: prevents i18n helper to return a SafeString (#9191) 2020-03-12 16:50:20 +01:00
unknown.hbs DEV: enforces ember-template-lint: no-triple-curlies (#9165) 2020-03-11 09:23:10 +01:00
user-card.hbs DEV: uses private API for currentPath (#7911) 2019-07-18 17:00:39 -04:00
user-invited-show.hbs FIX: prevents i18n helper to return a SafeString (#9191) 2020-03-12 16:50:20 +01:00
user-private-messages-tags.hbs DEV: enforces no-invalid-interactive linting rule (#8907) 2020-02-11 15:55:16 +01:00
user-selector-autocomplete.hbr DEV: Use .hbr for raw template file extension (#8883) 2020-02-11 13:38:12 -06:00
user-topics-list.hbs FEATURE: Remember scroll position in private message lists (#8212) 2019-10-18 13:16:52 -05:00
user.hbs FIX: consistency to show mute/ignore menu in user profile 2020-03-17 11:22:34 -07:00
users.hbs DEV: select-kit 2 (#7998) 2020-02-03 14:22:14 +01:00