-
Notifications
You must be signed in to change notification settings - Fork 51
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
[WIP] Implement the importing of optics #167
[WIP] Implement the importing of optics #167
Conversation
That failure is odd, I can't seem to recreate it locally. |
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.
Thank you, this is a great first pass! I fully agree the Ranked
enum is more readable, and nice catch with the axum return type.
I think there is a weird non-deterministic bug in the test that failed in the CI. I re-ran it and everything seems to be fine. I'll look into it a bit more thoroughly next week and see if I can track it down.
Alright, new updates and I think I covered most of my bases. wasm was a great call, made life so much easier in terms of optic parsing. New TLDR:
Let me know what you think! Only issue I saw was there's an issue when it comes to importing the |
also kept the |
gahhh this killed me tonight. Running the CI scripts locally all is passing. Throwing in the towel for now - the only issue that's left is that the CSP typing doesn't allow The wasm-pack has this awful build log though (that's pretty well complained about) that I can't seem to suppress either. |
./scripts/ci/check seems to fail if it tries to install wasm-pack while it is already installed (at least on my machine). as it is already added as a step in CONTRIBUTING.md we can assume it has been installed on the system
…ted in the frontend. adapted from StractOrg#109
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.
Thank you so much for the work on this! I had a few minor changes, especially related to migrating a vite plugin from #109 which improves the development experience by automatically updating the package when changes are made to it, and makes sure this gets reloaded in the frontend. They were a bit difficult to explain so I hope it's okay that I just went ahead and implemented them.
I totally agree that the best structure is to have a single wasm crate that we can extend with further functionality when needed, so we don't have to duplicate all the glue code.
LGTM 🚀
Thank you so much for the assist! I completely missed #109! That would've been a fantastic resource if I had found it. did you see my comment regarding the blocked sites? Not sure if you had a different experience:
I can write-up an issue if needed. Cheers! |
Oh, I totally forgot about that! You are completely right. I think the best solution is to add a special check for these rules when No need to open an issue, I'll fix it right away. |
Closes #148. This is a rough first pass at handling the importing of blocked/liked/disliked sites via
.optic
files from previous exports or other means.Changes TLDR:
.optic
files (all optic file parsing is client side)Ranked
type with an enum to (hopefully?) simplify some readability & programmatic things now/down the line. If this is undesired it can totally be flipped back.SiteRakings
->SiteRankings
Screenshots:
disclaimer: no beef or love for any of these websites, first ones to come up searches
Needs more cleaning up, commenting and to be a bit more robust but wanted to snag some early feedback before committing to it more. Are y'all doing JSDoc? I just did inline comments for now but planned to go back with docstrings.
Cheers!