Skip to content

Addition of filtering by spool type#40

Merged
jtrmal merged 2 commits into
jtrmal:mainfrom
ssddanbrown:main
Jan 31, 2026
Merged

Addition of filtering by spool type#40
jtrmal merged 2 commits into
jtrmal:mainfrom
ssddanbrown:main

Conversation

@ssddanbrown
Copy link
Copy Markdown
Contributor

As per #39, this adds the ability to filter by general type of spool material/color:

  • Cardboard
  • Dark Plastic
  • Light/Clear Plastic

Each existing spool has been updated with a new spool_type param, which is then used in dynamic filtering using JavaScript on the portfolio page. I've made sure this filtering works with URL/history handling, so users can use back/forward controls to navigate between filter states and, if changed page, will return to the page in the previously filtered state.

I also designed some custom icons for the options, which are shown alone when in mobile view to keep things compact.

I've tested this against Firefox and Chromium (Brave).

This also applies a minor design tweak to existing content, by reducing the padding of lists on the home portfolio cards to provide a little more space and closer align them to the titles. I can remove this from the PR if desired though.

Previews

Desktop Preview

Screen Shot 2026-01-31 at 13 18 32

Mobile Preview

Screen Shot 2026-01-31 at 13 18 50

@jtrmal
Copy link
Copy Markdown
Owner

jtrmal commented Jan 31, 2026

very cool, let me know when you think it's ready to be merged.

@ssddanbrown
Copy link
Copy Markdown
Contributor Author

@jtrmal Thanks, I'd say it's ready now unless you feel there's anything left to refine/add.

@jtrmal jtrmal merged commit d246269 into jtrmal:main Jan 31, 2026
1 check passed
@ssddanbrown ssddanbrown mentioned this pull request Jan 31, 2026
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.

2 participants