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

ui: Use top-level 'named index files' instead of in folder index files #8274

Merged
merged 2 commits into from
Jul 9, 2020

Conversation

johncowen
Copy link
Contributor

@johncowen johncowen commented Jul 9, 2020

This PR moves our folder-name/index.scss files to top level 'named index files':

/styles/collection-of-things/index.scss >> /styles/collection-of-things.scss

With this change it feels a lot easier to find the ‘index’ files at the top level rather than digging into the folders and trying to spot the index file.

It's even harder if you don’t know the codebase and you don’t even know we rollup/import the folder contents up in an index file within the folder itself.

Hopefully this make things more obvious:

  1. What 'collections' make up the UI.
  2. Where to start digging into whatever it is you need to dig into, even if you aren't familiar with our codebase.

Slight side note, we found some dead code (the old phrase editor component) so we removed this whilst we were here.

@johncowen johncowen added theme/ui Anything related to the UI backport/1.8 labels Jul 9, 2020
@johncowen johncowen requested a review from kaxcode July 9, 2020 12:57
Copy link
Contributor

@kaxcode kaxcode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

♻️ LGTM!

@johncowen johncowen merged commit 7edb3ec into master Jul 9, 2020
@johncowen johncowen deleted the ui/chore/css-file-moving branch July 9, 2020 13:51
@hashicorp-ci
Copy link
Contributor

🍒✅ Cherry pick of commit 7edb3ec onto release/1.8.x succeeded!

hashicorp-ci pushed a commit that referenced this pull request Jul 9, 2020
#8274)

* Remove unused phrase-editor CSS

* Move index.scss files to top-level named files to make them more obvious
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme/ui Anything related to the UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants