-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Updates to site showcase #6095
Updates to site showcase #6095
Conversation
Deploy preview for gatsbygram ready! Built with commit 5a3d4b7 |
Deploy preview for using-drupal ready! Built with commit 5a3d4b7 |
www/package.json
Outdated
@@ -77,5 +78,8 @@ | |||
"develop": "gatsby develop", | |||
"serve": "gatsby serve", | |||
"test": "echo \"Error: no test specified\" && exit 1" | |||
}, | |||
"devDependencies": { | |||
"core-js": "^2.5.7" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure why this was needed suddenly, saw on issue on preset env about it 🤷♀️
location: { search }, | ||
} = this.props | ||
|
||
this.getDerivedStateFromQuery(search) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
too much? 😂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice... i use a react-router-state-manager utility if you wanna just use that
7dca72f
to
866bd6d
Compare
@sw-yx and @Thatotherperson I made some updates to site showcase if you would like to review that would be dope! |
I didn't have a chance to look through the code but one change I'd like is that when you click on a facet, it should recalculate all the other facets and only show categories that overlap with the selected facet. E.g. if a site is in two categories, blog and education, then when you click on "blog", "education" should still show and have at least 1 in it. |
Link to preview https://deploy-preview-6095--gatsbyjs.netlify.com/showcase/ |
import { style } from "glamor" | ||
|
||
import ShowcaseList from "./showcase-list" | ||
import Collapsible from "./collabsible" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh good catch, is that the filename as well, how is that working then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yea you matched your typo with another typo haha
ok comments
|
hey @sw-yx, thanks for the input!
the only files that are net new are collapsible and showcase list which were classes inside of the showcase page, the only difference between then and now I removed any styles from the declaration that were not used in the new file. Everything seems to be showing line level diffs so if there is something else specifically you were unclear about let me know!
These aren't completed yet and title hasn't been adjusted yet, those should be in before MVP but I switched focus to v2 for a bit so wanted to get these merged before they fell really far out of sync.
will add to related issue! |
I think that has the potential to cause confusion with the current implementation. We could decouple checkboxes from URL again and try to maintain what is actually set by user and what is set by relation to a selection. What I fear is getting unexpected behavior on 1) selecting filters, i.e. I click on blog to see blogs and portfolio and tech are also selected. 2) I get a showcase link for all portfolio sites but then when page loads I would only get portfolio sites but tech and blog would be selected filters. Curious to here your thoughts! |
866bd6d
to
5a3d4b7
Compare
nice work, i will update things on my end |
Updates made in this PR (related issue #5927):
Corresponding issue has been updated to reflect these changes!