Skip to content

Conversation

@hsy822
Copy link
Collaborator

@hsy822 hsy822 commented Oct 30, 2025

fixes #6501

This PR implements the new sorting logic for LearnEth tutorials as requested and sets the filter panel to be open by default.

Key Changes

  • New Sorting Logic (Home/index.tsx):
    1. By Level (asc)
    2. By priority (asc, lower numbers first)
    3. By name (alphabetical)
    • Items without a priority are sorted last, alphabetically by name.
  • Filter Panel Default State (Home/index.tsx):
    • Changed the default state of showFilters to true.
  • Mock Data for Testing (workshop.ts):
    • Since the remote .yml files are not yet updated with the priority field, I have added mock data in workshop.ts to allow for immediate testing.
    • The original loadRepo function is commented out, and a temporary loadRepo is used to inject this mock data.
    • Once the real .yml files are updated and deployed, workshop.ts can be easily reverted (uncomment original function, delete mock data).

@ryestew Please review the new sorting logic and the default filter state.

@hsy822 hsy822 requested a review from ryestew October 30, 2025 04:05
@hsy822 hsy822 added the WIP label Oct 30, 2025
@netlify
Copy link

netlify bot commented Oct 30, 2025

Deploy Preview for reliable-cocada-166884 ready!

Name Link
🔨 Latest commit f717126
🔍 Latest deploy log https://app.netlify.com/projects/reliable-cocada-166884/deploys/6909a6956805de00088544db
😎 Deploy Preview https://deploy-preview-6504--reliable-cocada-166884.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

},
},
effects: {
*loadRepo({ payload }, { put, select }) {
Copy link
Contributor

Choose a reason for hiding this comment

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

That should be rollbacked.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That’s right. This was written temporarily to use mock data, so please just check the priority logic. I’ll roll it back later.

@hsy822 hsy822 force-pushed the ordering-tutorials-in-learneth branch from 0c026cb to f717126 Compare November 4, 2025 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ordering Tutorials in LearnEth

3 participants