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 830f5e4
🔍 Latest deploy log https://app.netlify.com/projects/reliable-cocada-166884/deploys/6912ea240ca0c200080392e2
😎 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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The update has been completed.

@hsy822 hsy822 force-pushed the ordering-tutorials-in-learneth branch from 0c026cb to f717126 Compare November 4, 2025 07:09
Copy link
Collaborator

@ryestew ryestew left a comment

Choose a reason for hiding this comment

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

The L1 / L2 / L3 are not needed to be visible by the user nor are the priority. Please take them out of the front end (so users don't see the stuff in the red circles).

image

@ryestew
Copy link
Collaborator

ryestew commented Nov 11, 2025

I've update the remix-workshops so that each .yml file has a priority key. So the dummy data can be removed here.

@ryestew
Copy link
Collaborator

ryestew commented Nov 11, 2025

I am not sure its in the scope of this PR, but in the description of each tutorial, the title of the tutorial is prefixing the description and it should be removed. See:
image

@hsy822 hsy822 force-pushed the ordering-tutorials-in-learneth branch from f717126 to e32b85f Compare November 11, 2025 07:01
@hsy822
Copy link
Collaborator Author

hsy822 commented Nov 11, 2025

I am not sure its in the scope of this PR, but in the description of each tutorial, the title of the tutorial is prefixing the description and it should be removed. See: image

@ryestew The description was originally read from the README file, but it has been changed to be fetched from the summary field in the .yml file.

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

4 participants