Skip to content

Create filter dropdown scss file in elements folder#3887

Merged
MattPereira merged 6 commits intohackforla:gh-pagesfrom
wendybarrios:create-filter-dropdown-scss-file-3256
Feb 15, 2023
Merged

Create filter dropdown scss file in elements folder#3887
MattPereira merged 6 commits intohackforla:gh-pagesfrom
wendybarrios:create-filter-dropdown-scss-file-3256

Conversation

@wendybarrios
Copy link
Contributor

@wendybarrios wendybarrios commented Jan 28, 2023

Fixes #3256

What changes did you make and why did you make them ?

  • created a new SCSS file in the elements folder called _dropdown_filters.scss
  • copied the entire contents of the _project-filter.scss file into the new _dropdown_filters.scss file
  • imported the new scss file into main.scss and deleted the original _project-filter.scss

@github-actions
Copy link

Want to review this pull request? Take a look at this documentation for a step by step guide!

From your project repository, check out a new branch and test the changes.

git checkout -b wendybarrios-create-filter-dropdown-scss-file-3256 gh-pages
git pull https://github.com/wendybarrios/website.git create-filter-dropdown-scss-file-3256

@github-actions github-actions bot added Feature: Refactor CSS Page is working fine - CSS needs changes to become consistent with other pages role: front end Tasks for front end developers Complexity: Small Take this type of issues after the successful merge of your second good first issue status: Updated No blockers and update is ready for review labels Jan 28, 2023
@d-perez-8 d-perez-8 self-requested a review January 31, 2023 22:58
@d-perez-8
Copy link
Member

Hi @wendybarrios thank you for taking this issue! I just want to know if this is fixing issue #3256 rather than #3662.

ETA: 1 hour
Availability: 2-4pm PST weekdays

Copy link
Member

@d-perez-8 d-perez-8 left a comment

Choose a reason for hiding this comment

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

Hello @wendybarrios, thank you for taking on this issue! I have noticed a couple of things when i was reviewing:

  1. There was an extra line space added to assets/css/main.scss. Please delete the extra line since it is outside the scope of the issue.
  2. I wasn't able to access the website with the changes, but I think is from an extra space at the end of the _sass/elements/_dropdown-filters.scss file. I think this is why there is a linter issue when you submitted the pull request.

Other than those 2 things, the pull request looks good!

@wendybarrios
Copy link
Contributor Author

Hello @d-perez-8, I made the requested changes.

  1. removed the extra line space added to assets/css/main.scss
  2. removed the extra space at the end of the _sass/elements/_dropdown-filters.scss file
    The lint SCSS check failed despite the new changes and I am not sure what is causing this issue.

@d-perez-8 d-perez-8 added the status: Help Wanted Internal assistance is required to make progress label Feb 4, 2023
@d-perez-8
Copy link
Member

d-perez-8 commented Feb 4, 2023

How interesting. I am going to get the merge team to take a look at this linter error.

@hackforla/website-merge
Help Wanted: Linter issue at assets/css/main.scss file. I am not sure how to help resolve this linter error because the pull request code is exactly the same as how we have it on GitHub.

Otherwise, the website is running fine.

@MattPereira MattPereira self-requested a review February 5, 2023 18:18
Copy link
Contributor

@MattPereira MattPereira left a comment

Choose a reason for hiding this comment

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

Appreciate all your hard work on this one @wendybarrios

I noticed that your PR changes the filename to _project-filter.scss , but the issue instructs the filename to be _dropdown_filters.scss. Given that your PR creation comment refers to _dropdown_filters.scss , ehlp me understand why you decided to use the - instead of _ ?

Also, I am not seeing any linting errors on my machine @d-perez-8 , could you add screenshots to this issue?

@MattPereira MattPereira requested a review from d-perez-8 February 7, 2023 22:41
@d-perez-8

This comment was marked as resolved.

@MattPereira
Copy link
Contributor

@d-perez-8 my bad I totally missed that failing "Lint SCSS" check

I'm not sure if the issue is actually in the main.scss file or if it is occurring in one of the files that are imported

I think I recall @jdingeman battling the PR Lint Checker in the past, but I have no idea how to fix this

@jdingeman
Copy link
Member

@d-perez-8 my bad I totally missed that failing "Lint SCSS" check

I'm not sure if the issue is actually in the main.scss file or if it is occurring in one of the files that are imported

I think I recall @jdingeman battling the PR Lint Checker in the past, but I have no idea how to fix this

I have not yet found out why it fails the Linter. It seems like any PR that affects the .scss files tend to fail the linter due to style errors? It'd be a good idea to investigate the linter further.

@wendybarrios
Copy link
Contributor Author

@MattPereira Regarding the name _project-filter.scss, it's a typo on my end. I was playing around with files names when I was having an issue with Docker but I could change - to _ to see if that may help with the Linter issue. But the other SCSS files under the elements folder use - rather than _ so I'm not sure sure what to use. What do you suggest?

@MattPereira
Copy link
Contributor

MattPereira commented Feb 9, 2023

@wendybarrios

In situations like this, I lean towards using the issue action items as the source of truth.

That way if it ends up being wrong you can blame the issue creator 🤣

@wendybarrios
Copy link
Contributor Author

@MattPereira Sounds good : ) I'll make the changes to match the issue action items.

@MattPereira MattPereira self-requested a review February 12, 2023 22:13
Copy link
Contributor

@MattPereira MattPereira left a comment

Choose a reason for hiding this comment

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

Fantastic work on this PR @wendybarrios ! 👍

Really appreciate all of your communication with the team and timely handling of all requested changes

Copy link
Contributor

@MattPereira MattPereira left a comment

Choose a reason for hiding this comment

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

Hey @wendybarrios

We think the Lint SCSS Error might be caused by any changes made to the assets/css/main.scss file including the spaces you added.

Please revert all changes you made to assets/css/main.scss so that your PR only shows 2 files changed _sass/main.scss and _sass/components/_dropdown_filters.scss

If that doesn't work we will merge this PR and create another issue to investigate further.

@wendybarrios
Copy link
Contributor Author

@MattPereira I reverted all changes in assets/css/main.scss to its original state. I'm not sure if I did it correctly but I'll appreciate it if you can double check if it's right. Hopefully, it fixes the lint error.

Copy link
Contributor

@MattPereira MattPereira left a comment

Choose a reason for hiding this comment

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

The linter error is fixed! 🥳

Reverting a file you already committed is not easy. Well done @wendybarrios 👍

@MattPereira MattPereira merged commit 70288ea into hackforla:gh-pages Feb 15, 2023
@wendybarrios
Copy link
Contributor Author

@MattPereira Yay!, thanks for the help on this issue Matt!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Complexity: Small Take this type of issues after the successful merge of your second good first issue Feature: Refactor CSS Page is working fine - CSS needs changes to become consistent with other pages role: front end Tasks for front end developers status: Help Wanted Internal assistance is required to make progress status: Updated No blockers and update is ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create filter_dropdown.scss File in Elements Folder

4 participants