Problem/Motivation
They are structurally very similar, the main differences are added information depending on the value of toggleView. This has me wondering if it's possible to just have hidden attributes based on the value of toggleView. A little bit of conditional logic added that would make it possible to remove an entire component.
Aside from less code to maintain, this consolidation would eliminate the risk of of the two view drifting out of sync.
Steps to reproduce
Proposed resolution
Remaining tasks
- ✅ File an issue about this project
- ☐ Manual Testing
- ☐ Code Review
- ☐ Accessibility Review
- ☐ Automated tests needed/written?
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | Screen Shot 2022-06-09 at 1.16.13 PM.png | 95.61 KB | bnjmnm |
Issue fork project_browser-3284325
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
narendrarComment #5
narendrarComment #6
bnjmnmThis looks great. I spotted one tiny style difference with the icons padding that should probably get addressed.
I'll go over the MR just to be sure, but this it looking like a welcome simplification.
Comment #7
narendrarComment #8
bnjmnmLooks good!
Comment #9
bnjmnmSetting to NW to surface the error spotted in the MR by tim.
Comment #10
narendrarComment #11
srishtiiee commentedLooks good.
Comment #14
tim.plunkettThis is a great refactor, thanks!