Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In this PR I'm removing the ionic3 code (the ionic5 app was released on 2021 so it should be safe to remove it).
I also created a new latest template to use the new Ionic syntax for ion-select. The old syntax still works in the 4.4 version of the app (ionic 7), but it will stop working in the 4.5 version (ionic 8) and the ion-select would be wrongly aligned without these changes. To make it easier to review the code, in the first commit I duplicate the template (no changes done in the HTML) and then I apply the changes in a new commit.
Finally, I also removed the usage of deprecated components and classes.
Important: I didn't review the CSS because there is a lot, it should be adapted to the 4.4 version of the app. The ionic 3 styles can be deleted, and ideally the ionic 5 styles should be adapted to work both in ionic 5 and ionic 7 (the ionic 7 upgrade wasn't as breaking as the ionic 5 upgrade). We recommend to avoid using ionic7 class for the ionic 7 specific styles, because in the 4.5 version of the app we'll update to ionic 8 so all styles using the ionic7 class will stop working.
Related to the above, we have plans to limit the CSS of plugins so they can only style the plugin's HTML (see MOBILE-3730). We still have to decide when will this change be applied, but we recommend that all your CSS rules only use selectors that are inside your template (e.g. avoid using selectors like "html", "body", etc. unless strictly needed), that way you won't need to change as much CSS code when MOBILE-3730 lands.