Skip to content
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

Cleanup 2 #117

Merged
merged 9 commits into from
Nov 18, 2024
Merged

Cleanup 2 #117

merged 9 commits into from
Nov 18, 2024

Conversation

jdudley1123
Copy link
Member

Changes in this PR

This PR does some cleanup:

  • Removes unused files
  • Tidies up CSS to make it more manageable
  • Simplifies some code

We've used Stimulus for other JS, and this makes functionality clearer.
There's no good reason to keep these as separate files, and combining them makes it easier to see what's going on.
This partial doesn't appear to be used anywhere. I think it's a leftover from an early prototype.
Wed on't need to wrap the location selector in another partial. This saves us a file.
We can take advantage of Rails' defaults to write the rendering calls for partials more succinctly.
The footer navigation was just called 'navigation' which made it easy to confuse with the header navigation
Rather than specifying the colours in the forecast tabs and the colours in the DAQI scale separately, we can define them all in CSS and then apply the same styles in both cases. This will make them easier to update in future.
We can simplify the tab component quite a bit to make it easier to manage.
Move the Tailwind class styles from individual elements to the stylesheet. This makes the HTML easier to understand.

Eventually we may replace Tailwind entirely.
@jdudley1123 jdudley1123 merged commit a8cf0eb into develop Nov 18, 2024
2 checks passed
@jdudley1123 jdudley1123 deleted the cleanup-2 branch November 18, 2024 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant