website icon indicating copy to clipboard operation
website copied to clipboard

Update toolkit yml files to include a new fields

Open tunglinn opened this issue 2 years ago • 12 comments

Fixes #3357

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

In all the files in /_guide-pages and in the file /_data/internal/toolkitresources.yml

  • changed category to practice-area, provider-link to resource-url
  • added tools, contributors, recommended-by
  • deleted short-description, link-svg (this also required some changes in /pages/toolkit.html)
  • for _guide-pages, changed status to work in progress, completed, or depreciated

In /_includes/guide-card.html

  • changed logic for displaying guide cards links
  • changed "coming soon" to "work in progress"

In /pages/toolkit.html

  • removed external-resource-container (otherwise the external resource cards would be centered, take a look at this comment)

In /_sass/components/_toolkit.scss

  • deleted external-resource-container

Overall, changes were made to add/update card fields and make sure the website does not change unless specified. For the field information, check this comment and others in the issue.

The wiki templates can be found under File Templates in the Wiki.

Purpose is to implement new design/features for the Toolkit page.

Screenshots of Proposed Changes Of The Website (if any, please do not screen shot code changes)

Visuals before changes are applied

image

Visuals after changes are applied

image

tunglinn avatar Jul 27 '22 01:07 tunglinn

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 tunglinn-update-toolkit-yml-3357 gh-pages
git pull https://github.com/tunglinn/website.git update-toolkit-yml-3357

github-actions[bot] avatar Jul 27 '22 01:07 github-actions[bot]

Availability: 7/28-7/30 ETA: 6 hours

poorvi4 avatar Jul 27 '22 02:07 poorvi4

ETA:7/27 Availability: Anytime

Zak234 avatar Jul 27 '22 19:07 Zak234

I seem to be having some issues with VS Code which will delay my review.

Zak234 avatar Jul 28 '22 01:07 Zak234

Availability: 6 Hours ETA: EOD 2022-07-29

arpitapandya avatar Jul 28 '22 20:07 arpitapandya

Reverted the last commit. The branch should look normal now. I'll have to fix the lint errors, but don't know how without causing those weird formatting issue.

tunglinn avatar Jul 31 '22 17:07 tunglinn

Yup, the text formatting looks normal now. Can't say much on how to resolve the lint issues as I'm not too familiar with it.

poorvi4 avatar Jul 31 '22 20:07 poorvi4

@Zak234 How do you test for other types (i.e. tablet, phone, etc)?

tunglinn avatar Aug 02 '22 21:08 tunglinn

Right click the page and click inspect. Then in the inspect window click the toggle device toolbar button, it looks like this: Screen Shot 2022-08-03 at 11 52 11 AM and is in the top left corner of the inspect screen. Then go to the new toolbar and click dimensions. There should be a dropdown menu with a bunch of different device's screen dimensions. We usually use IPhone 12 for mobile and Ipad mini for tablet.

Zak234 avatar Aug 03 '22 18:08 Zak234

I might have to ask the design team how they want the tablet "External Resources" title to be formatted because right now, it is the same as guides.

Like this

image

The changes I made makes External Resources filterable by practice areas (Development, Design, etc). If there's only 1 resource, you get there undesirable formatting. The current site doesn't filter for External Resources, so all three were being shown on each practice area tab which never causes the odd formatting.

tunglinn avatar Aug 04 '22 20:08 tunglinn

I'm not sure exactly what is causing the issue. I think it may just be due to there only being one project card as opposed to two under the External Resources which messes with the spacing. I'm pretty sure this is the case as when put into mobile view, which only has one project card under External Resources, the HFLA site has the same weird formatting.

Zak234 avatar Aug 05 '22 08:08 Zak234

Talked to Bonnie. The Guides and External Resources heading on tablet should not be centered. I will adjust the code for that.

More additions to this issue will be discussed on Friday at Guides meeting and commented in #3357.

tunglinn avatar Aug 09 '22 20:08 tunglinn

I'll be MIA for the next 3 days, picked up some extra shifts. I'll add the additional functionalities and fix the lint issues on Monday.

tunglinn avatar Aug 19 '22 03:08 tunglinn

I've updated the first pull request comment to reflect the new changes. Pushed new commits, will fix lint issues after.

tunglinn avatar Aug 23 '22 21:08 tunglinn

ETA: End of Day on 8/31 Availability: 2 Hours

kathrynsilvaconway avatar Aug 28 '22 03:08 kathrynsilvaconway

@kathrynsilvaconway I don't see this visual when I run the branch locally. I'll be at tonight's meeting to hopefully resolve this with you.

tunglinn avatar Aug 30 '22 22:08 tunglinn

ETA: EOD 2022-09-05 Availability: 6hrs

arpitapandya avatar Sep 06 '22 02:09 arpitapandya

I fixed the merge conflict, which was due to a recent refactoring of the toolkit.html file.

@arpitapandya I fixed the Lint issue before and the check is successful. Which Lint issue were you referring to?

tunglinn avatar Sep 06 '22 04:09 tunglinn

I fixed the merge conflict, which was due to a recent refactoring of the toolkit.html file.

@arpitapandya I fixed the Lint issue before and the check is successful. Which Lint issue were you referring to?

When I picked up this PR to review there was a merge conflict in toolkit.html, and I found there was the lines of which @kathrynsilvaconway mentioned with the red markers. I think those were because of few lines were overwritten because somebody might have worked on the same file. I was seeing 143 lines of code in that file when I was reviewing but now that you just pushed commit, Everything seems to be fixed and there's 91 lines of code in toolkit.html. I also don't see the console error with .js which I was seeing earlier. Everything looks clean now and doesn't break anything now so I would approve this.

arpitapandya avatar Sep 06 '22 14:09 arpitapandya