-
Notifications
You must be signed in to change notification settings - Fork 650
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove old, unused modals code #5068
Conversation
cc @iriberri we'll probably need to do a smoke test on this one. in theory, it's only code related to old modals, but considering the amount of removed code better to be on the safe side. |
@@ -1,6 +1,7 @@ | |||
@import "../../variables/mixins"; | |||
@import "../../variables/colors"; | |||
@import "../../variables/sizes"; | |||
@import "../../map/map-sprite"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No more sprites please, let's try to leave and they are and if we need images, create them separately.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was migrated from app/assets/stylesheets/map/scratch_dialog.css.scss (now deleted) as it was. cc @javierarce
, let's try to leave and they are and if we need images
Not sure I understand the sentence entirely, do we leave it as it is for now or you want to change it? What would be the proper way of writing these rules?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leave compass sprites as they are because we are still using it in the editor, but we shouldn't add more icons to them due to the fact that we will remove them when we have the new editor layout.
I've checked that we have two modernizr files in vendor/assets/javascripts/... |
Questions:
cc @CartoDB/frontend |
Seems like we forgot to remove old geocoding model, in table.js: ...
// TODO: remove when new_modals is enabled for everybody
this.geocoder = new cdb.admin.Geocoding();
... And of course, their bindings, for example: // Geocoder binding
this.options.geocoder.bind('geocodingComplete geocodingError geocodingCanceled', function() {
this.notice(_t('loaded'));
}, this);
this.add_related_model(this.options.geocoder); There are some of this type. |
In general terms, 🇺🇸, but it is difficult to evaluate the PR file by file. I encourage to pass all smoke tests related with editor view. |
Is using the .min.js one so no point in having this file around
Geocoding is still used in table/header/options_menu.js, to check |
No, doesn't look like it, removing.
It's still used in a handful of places (Search for new Spinner). Strangely enough, also used in cartodb.js: src/geo/ui/infowindow.js#L529, is it provided there or is some kind of implicit/hidden dependency for that view? |
Conflicts: app/assets/stylesheets/common/sync_dialog.css.scss package.json
Conflicts: package.json
This reverts commit 37321a4.
Like in the other usages in the same view, cc @javierarce
Ping me if you need my help. |
Using font values from last time they were corrected, #4920. - Had to leave the type values as-is since also used for local storage keys. - Added a new attr for the iconfont. - Renamed is—new => is-new (single hyphen) to adhere to style guide. - Removed iconFont-custom rules since that type is not used (anymore) - Moved line height to the general rule since applies to all Fixes #5126 cc @xavijam @MariaCheca
Fixes #4673
This 🔥 🔥 🔥 code related to the now deprecated old modals.
Also removes a lot of implicit CSS, images, templates, models, views etc. that are no longer used.
Also saw some things that possibly could be removed too:
@xavijam can you review?
cc @CartoDB/frontend + regarding the questions listed ☝️