[JS Addons] list addons from addons directory
Pull Request template
Purpose / Description
This is UI for addons listing in recycler view from addons directory. The list in view will contains details, remove and toggle switch button.
Also addons menu added to side bar but it will be hidden till all the PR merged.
The implementation will be used in next PR when addons listed from network for download and install.

Fixes
Fixes #7959
Approach
-
distpackage.json made empty when package.json loaded from local directory. - Popup window class created to show info related the current clicked addons
- Added a class to list addons from directory, the validated AddonModel added to adapter
- Each view in list have three buttons
details button- show popup with addons info like name, author, version etc.remove button- remove the addons from directorytoggle switch- used to enable/disable addons, for enabled addons, the content will be added to reviewer or note editor
How Has This Been Tested?
Tested on emulator and devices. (Test will be added in next PR)
- Listing of empty folder
- Listing when one addon added manually (currently manually, in next PR download and install will be implemented)
- Info popup window test
- Toggle switch test
- Delete test
https://user-images.githubusercontent.com/12841290/164175561-6990f859-a3f0-4ed4-b61d-f0b2d174c4ee.mp4
Learning (optional, can help others)
Checklist
Please, go through these checks before submitting the PR.
- [x] You have not changed whitespace unnecessarily (it makes diffs hard to read)
- [x] You have a descriptive commit message with a short title (first line, max 50 chars).
- [x] Your code follows the style of the project (e.g. never omit braces in
ifstatements) - [x] You have commented your code, particularly in hard-to-understand areas
- [x] You have performed a self-review of your own code
- [x] UI changes: include screenshots of all affected screens (in particular showing any new or changed strings)
- [x] UI Changes: You have tested your change using the Google Accessibility Scanner
I think this is good idea to handle the addons related file/folder related from a centralized class. I will do refactor in next PR. (Added to TODO)
I'm going to move this to draft just as a strategy to manage the PR review queue, and because I know you are focused on exams right now (as you should be!). Cheers
I will update the PR later.
Hello 👋, this PR has been opened for more than 2 months with no activity on it. If you think this is a mistake please comment and ping a maintainer to get this merged ASAP! Thanks for contributing! You have 7 days until this gets closed automatically
Hello 👋, this PR has been opened for more than 2 months with no activity on it. If you think this is a mistake please comment and ping a maintainer to get this merged ASAP! Thanks for contributing! You have 7 days until this gets closed automatically
Not stale - dormant because of too much work on my end and prioritizing scoped storage but this will all happen. JS addons are the future and this is the infrastructure...
Hello 👋, this PR has been opened for more than 2 months with no activity on it. If you think this is a mistake please comment and ping a maintainer to get this merged ASAP! Thanks for contributing! You have 7 days until this gets closed automatically
Hello 👋, this PR has had no activity for more than 2 weeks and needs a reply from the author. If you think this is a mistake please comment and ping a maintainer to get this merged ASAP! Thanks for contributing! You have 7 days until this gets closed automatically
The JS AddOn series needs to stay open. It is perfect for 2.17 once storage is finally done
The JS AddOn series needs to stay open. It is perfect for 2.17 once storage is finally done
I will start implementing this after scope storage.