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
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
..
admin FIX: Broken computing of userHasTimezone in bookmark modal and missing tap-tile templates for regular users (#9229) 2020-03-18 11:12:23 +10:00
confirm-new-email Support for transpiling .js files (#9160) 2020-03-11 09:43:55 -04:00
discourse FIX: Improve user timezone saving (#9230) 2020-03-24 11:39:09 +10:00
discourse-common Migrate discourse-common from es6 -> js 2020-03-23 15:05:58 -04:00
docs Ember Upgrade: 1.0 2013-10-01 11:16:27 -04:00
ember-addons DEV: Deprecate ember module imports (#9011) 2020-02-21 15:56:49 +01:00
locales Run prettier on a couple of files 2020-03-12 14:07:38 -04:00
pretty-text Migrate pretty-text to .js extensions (#9243) 2020-03-20 09:55:42 -04:00
select-kit Convert select-kit from es6 to js (#9246) 2020-03-20 12:40:32 -04:00
wizard FIX: Wizard tests were missing 2020-03-23 14:25:25 -04:00
activate-account.js.es6 Support for transpiling .js files (#9160) 2020-03-11 09:43:55 -04:00
admin.js.erb Add support for plugins to declare ES6 in the admin bundle 2015-08-17 15:03:55 -04:00
application.js REFACTOR: Remove InputValidation which was simply an Ember.Object 2019-11-11 15:48:56 -05:00
auto-redirect.js.es6 Support for transpiling .js files (#9160) 2020-03-11 09:43:55 -04:00
deprecated.js Run prettier on a couple of files 2020-03-12 14:07:38 -04:00
discourse-loader.js DEV: Clean up Ember imports (#8979) 2020-03-06 23:49:28 +01:00
discourse-objects.js Scaffold for new Wizard - Rails / Ember / Tests 2016-09-22 09:48:58 -04:00
discourse.js.es6 DEV: Clean up Ember imports (#8979) 2020-03-06 23:49:28 +01:00
embed-application.js.es6 Support for transpiling .js files (#9160) 2020-03-11 09:43:55 -04:00
ember_include.js.erb move template compiler into vendor for now 2015-11-25 15:54:54 +11:00
ember_jquery.js DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
ember-shim.js DEV: Deprecate ember module imports (#9011) 2020-02-21 15:56:49 +01:00
env.js FIX: attempts to fix an error with EXTEND_PROTOTYPES (#7067) 2019-02-26 11:04:05 +01:00
google-tag-manager.js.es6 Support for transpiling .js files (#9160) 2020-03-11 09:43:55 -04:00
google-universal-analytics.js.es6 Support for transpiling .js files (#9160) 2020-03-11 09:43:55 -04:00
main_include_admin.js FEATURE: handle bounced emails 2016-05-02 23:15:32 +02:00
markdown-it-bundle.js REFACTOR: Attach resize controls to images from the markdown pipeline (#8314) 2019-11-12 17:32:37 -03:00
onpopstate-handler.js.es6 Support for transpiling .js files (#9160) 2020-03-11 09:43:55 -04:00
polyfills.js FIX: moves back padStart/padEnd to core polyfills (#8714) 2020-01-14 10:54:39 +01:00
preload-application-data.js.es6 Support for transpiling .js files (#9160) 2020-03-11 09:43:55 -04:00
preload-store.js.es6 FIX: More Promise uses that were not imported 2019-11-19 15:58:40 -05:00
pretty-text-bundle.js DEV: Remove pretty_text import hack & still work server-side (#8266) 2019-10-31 11:54:46 -05:00
print-page.js CSP - extract all other inline JavaScripts (#6528) 2018-10-25 09:52:01 -04:00
service-worker.js.erb DEV: Bump uglifyjs (#7834) 2019-10-09 10:02:49 -03:00
set-prototype-polyfill.js DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
template_include.js DEV: Remove unsafe-eval from development CSP (#8569) 2019-12-30 12:17:12 +00:00
template_include.js.erb DEV: Remove unsafe-eval from development CSP (#8569) 2019-12-30 12:17:12 +00:00
vendor.js DEV: Remove unused BreakString class (#8942) 2020-02-14 15:32:59 -03:00
wizard-application.js DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
wizard-start.js.es6 Support for transpiling .js files (#9160) 2020-03-11 09:43:55 -04:00
wizard-vendor.js FIX: ensure s2 is working with wizard (#8886) 2020-02-07 10:00:39 +01:00