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(client): improve SuperBlock cert claiming UX #41147
feat(client): improve SuperBlock cert claiming UX #41147
Conversation
Thanks for coming up with the implementation quickly. Since we are deviating from the current flow of calming certifications, we would need a couple of approvals/feedback to make sure everyone is on the same page. Let's finalize the discussion and implement the solution accordingly. |
I think we reached a decision on #38569's solution. Let me know if you would need help with the implementation. |
Hey @ahmadabdolsaheb , I am going to need some help finding a non-convoluted way to calculate when someone is able to claim a cert (has submitted all 5 projects). Also, currently this will not work as expected for non-English challenges (anchor elements do not work). |
@ShaunSHamilton thanks for your patience. We could use similar logic to what we are using in the settings page to check wether a cert is claimable or not (required projects have been completed or not) or simplify what we have there. Also for the path to navigate to, it seems like we would have multiple scenarios that would require navigating to different places.
|
Repost from Chat:
Essentially, I am asking if you can think of a better way to do this other than: @raisedadead Do you have any thoughts on if |
I am open to rejigging the API endpoints if needed. |
@ahmadabdolsaheb For these cases, where should the Camper be directed?
For both, should they be teleported to the next superblock (current impl)? Or, should they be taken to:
|
that makes sense |
@ahmadabdolsaheb and @raisedadead , I am encountering some issues, due to the naming system we have (the maps and types):
How can this be changed, without breaking other things? I notice the
Side note, Ahmad:
|
That is a good questions, I think @scissorsneedfoodtoo put some effort to rename and normalize the challenge. Kris, do you know why we have a discrepancy among the superBlock names? and if normalizing the superBlock names in the curriculum/challenges/_meta would cause any issues. I think you came across this issue before.
Generally speaking, we could wait for the action that updates the db to return successfully (or listen for its related action). |
Wow, thank you for all your hard work on this @ShaunSHamilton. It looks like it's coming along great. About the naming scheme in I looked through our old conversations about the changes to the flags / schema, and the consensus was that the versioning (v7, etc.) will be for internal use, and shouldn't be visible to campers in the UI or on the certifications. Instead, they'd just be in the DB and in the URL for the certification. I'm not sure if we'd be able to normalize the super blocks in the What's interesting is that the |
@scissorsneedfoodtoo Correct, but modifying it will do nothing, because it is exactly the same I will take a closer look later. |
Changing those meta files should do it, but I suspect there are some components that read and display the superblock from the meta. |
@ahmadabdolsaheb I now remember the issue with this; I was looking in the wrong place, before. The issue is with the
Ideally, the meta would contain some information about the dev side - Can I open an issue about us using the same name |
Many thanks, Oliver. This appears to work as expected. As such, other than adding tests, this PR is finally ready to go. |
Thanks @ShaunSHamilton @ojeytonwilliams, looking forward to review the final iteration when it is ready. |
@ojeytonwilliams I cannot figure out why the final test is not working: For some reason, the button is not clicked in the previous |
cypress/integration/learn/responsive-web-design/claim-cert-from-learn.js
Outdated
Show resolved
Hide resolved
cypress/integration/learn/responsive-web-design/claim-cert-from-learn.js
Outdated
Show resolved
Hide resolved
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
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.
Everything LGTM 👍 👍
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.
LGTM 🎉
Checklist:
Update index.md
)main
branch of freeCodeCamp.Closes #38569
Try to ignore the UI, and experience the UX. Same goes for the code. This is an POC
@ahmadabdolsaheb Please let me know if this is at all what you had in mind? The code is ugly, but if you like the UX, then I will continue with this, and refactor the whole component.