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

feat: add catergory vertical list to how-tos #4045

Merged
merged 6 commits into from
Dec 18, 2024

Conversation

benfurber
Copy link
Member

@benfurber benfurber commented Dec 17, 2024

PR Checklist

PR Type

What kind of change does this PR introduce?

  • Feature (adds functionality)

What is the current behavior?

A SO BORING drop-down to select a category filter for a content type.

What is the new behavior?

  1. A beautiful shiny vertical scroll with icons.
  2. Adds back in some filtering e2e specs, including changing test DB data.
  3. Tidy-up of the how to list display styling.
  4. A generic category icon is shown if a specific glyph isn't present.
Screenshot 2024-12-17 at 11 32 26 Screenshot 2024-12-17 at 11 31 55

All the icons added:
Screenshot 2024-12-17 at 15 53 16

Does this PR introduce a breaking change?

  • No

Git Issues

Part of #4003

@benfurber benfurber added the Review allow-preview ✅ Has received manual check for malicious code and can be safely built for preview label Dec 17, 2024
@benfurber
Copy link
Member Author

@davehakkens Can be QA'd for how-tos.

Copy link

cypress bot commented Dec 17, 2024

onearmy-community-platform    Run #6690

Run Properties:  status check passed Passed #6690  •  git commit 01d79596ce: test: add how-to read specs for search and filter
Project onearmy-community-platform
Branch Review pull/4045
Run status status check passed Passed #6690
Run duration 05m 36s
Commit git commit 01d79596ce: test: add how-to read specs for search and filter
Committer Ben Furber
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 2
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 77
View all changes introduced in this branch ↗︎

@benfurber benfurber changed the title feat: add catergory vertical list feat: add catergory vertical list to how-tos Dec 17, 2024
@benfurber
Copy link
Member Author

Actually, I'll keep this PR just to how-tos.

@benfurber benfurber marked this pull request as ready for review December 17, 2024 16:10
@benfurber benfurber requested a review from a team as a code owner December 17, 2024 16:10
@benfurber benfurber merged commit 064739c into ONEARMY:master Dec 18, 2024
18 checks passed
@benfurber benfurber deleted the feat/add-catergory-vertical-list branch December 18, 2024 07:41
@onearmy-bot
Copy link
Collaborator

🎉 This PR is included in version 2.19.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@davehakkens
Copy link
Contributor

nice component!
Can we change the order of the categories?
And how do we add a new ones.
In retool, ask dev?

@benfurber
Copy link
Member Author

@davehakkens Still update through retool. Currently the order is essentially just what's in the database.

I was planning to make the order alphabetic in my next PR, does that work for you?

Other options:

  1. Loads more work - add an order field to the DB.
  2. mini-hack - Use the created date order and make that editable on retool.

@davehakkens
Copy link
Contributor

alphabetical doesnt do the trick.
Creation date sounds good!

@davehakkens
Copy link
Contributor

And is the category image also added in retool, or a dev-thing?

@benfurber
Copy link
Member Author

benfurber commented Dec 18, 2024

Dev thing. For ease I updated the existing icon list, it's based on the labels shown above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mod: HowTo 📰 released Review allow-preview ✅ Has received manual check for malicious code and can be safely built for preview
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants