-
Notifications
You must be signed in to change notification settings - Fork 102
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
refactor: reconstruct option management #659
Conversation
Nice work! It works as soon as I cancel the option button,but there is a small problem that all the options are re-selected after refreshing. Settings.-.Google.Chrome.2023-04-25.20-34-27.mp4 |
Thank you for pointing that out. Since this pr is still WIP, i will fix it in the next few commits. |
Hi @wxharry, I have learnt your code especially the "importedFeatures" part and I totally figured out the way you extracted the imported features from I learnt a lot about webpack loaders as well, finding that So I changed the code a bit, treating README.md as a module (this is how rgh does, though for now we don't extract feature list from README.md), and used |
There is still a lot of room for code improvement, working in progress... |
Actually, what I did last week (those 4 commits) didn't work right because I found several checked checkbox would be unchecked after page refresh this morning. However hours work later, I hope the option manager now works. I did:
More info for Currently this file is bundled into ContentScript and Options since both require it to access option storage. ContentScript only read options, while Options read and write options. I mentioned Hi @lhbvvvvv, could you help to test this PR again? |
@lhbvvvvv Thank you for your test! I know what causes the bug and will fix it ASAP.
Considered this, but maybe improve it later :) thanks for your suggestion! |
@lhbvvvvv fixed it, please verify if my patch works. Hi @wxharry, could you give a review on my code? |
LGTM |
It ran successfully without problems. |
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.
Brief Information
This pull request is in the type of (more info about types):
Related issues (all available keywords):
Details
feature-manager
usewebext-options-sync-per-domain
to improve the option management (?)need consistent feature ID, especially for localecache relateddocs and commentsChecklist
Others