Edit modal - add "Category" field to "Basic information" section#3376
Edit modal - add "Category" field to "Basic information" section#3376rtibbles merged 9 commits intolearningequality:unstablefrom
Conversation
marcellamaki
left a comment
There was a problem hiding this comment.
So far, manual QA is looking good to me in terms of interactions of the chips <> checkboxes. I will do a code review tomorrow morning and also cross-reference with the Figma to make sure the interactions are aligned to the spec, but so far I have not found any unexpected edge cases 🎉 🤞
There was a problem hiding this comment.
The code read-through this morning looks good! I left a couple of comments on a couple of functions that I had to read a few times to understand. Adding comments (and for the family tree one, something about what the expect return might be) would be helpful.
I did a read through of the tests as well, but I would appreciate @rtibbles doing a closer review there since my test writing skills are very much a work in progress, and I think he would have better insight.
I know you mentioned there is one update regarding the console errors, and I am kind of assuming that is related to the perpetual "saving" state on the bottom bar. I've been able to exit the page and navigate back with state persisted, but I'm not sure if that's just in indexeddb. Looking at the networks tab, I do see /sync returning a 200 with the expected payload, so that seems good, but will again defer to @rtibbles here in case I'm missing something.
Other than that, just two notes. One re: figma specs... I remember when we were pair programming, we had the question about "Deselecting a child selects it's direct parent"
I'm not 100% sure what this means after looking at the Figma. I think when we were pairing, we decided it meant "unselect all" which is what is happening, but I'm not sure that we were right... I think you should check with @jtamiace just to confirm.
The other small bug which I happened upon by chance is that the dropdown menus seems to be traveling around when scrolling on the page, not in the menu 😄
It actually seems to be happening for all of the menus on the page, so I'm not sure this is something you did.... maybe we just never noticed before! I don't see layout changes in this PR that I think would affect this, and if you can't think of anything that you've changed in this general edit modal work that might have caused a regression, I will just open a separate issue. (I don't think this is a blocker for this, but it might be good to fix before we release the edit modal changes overall!)
contentcuration/contentcuration/frontend/channelEdit/components/edit/CategoryOptions.vue
Outdated
Show resolved
Hide resolved
contentcuration/contentcuration/frontend/channelEdit/components/edit/CategoryOptions.vue
Show resolved
Hide resolved
So, this is a long-standing issue in Vuetify (see here). I can fix it for all the fields where that is a problem in the edit modal. I will open a new PR to fix those in the existing fields, and I'll fix it on my own PRs for the new fields in the edit modal. Thanks for following up with this! |
78573b1 to
88cbe70
Compare
|
Note, I made a new commit that is related to dropdown menus being fixed in position while scrolling for dropdown menus that are not related to the category field (there is a new issue that explains why I didn't tackle category at this moment #3381 ). The fix is needed because there is a console warning that occurs (don't think it was an issue in the original PR) that says: I just added this to this PR - but I suppose I can cherry-pick this onto another branch and just add that as a separate PR. lmk |
marcellamaki
left a comment
There was a problem hiding this comment.
Thanks for adding the dockstring. I think all of the feedback that I gave was addressed, and manual QA checks out. Makes sense to me to do the dropdowns separately, since they're not really related...just something I encountered. If @rtibbles doesn't have any additional feedback, I will ✅


Summary
Description of the change(s) you made
Manual verification steps performed
Screenshots
Does this introduce any tech-debt items?
The code is pretty spaghetti-ish and could use some refactoring, particularly around the behaviors of the dropdown. It should, however, currently satisfy what is needed for an MVP. We can file follow-up issues to fix. This is a continuation of this issue #3205
Reviewer guidance
How can a reviewer test these changes?
Are there any risky areas that deserve extra testing?
It is very important to refer to the Gherkin stories and the Figma designs. There are additional scenarios that should be tested that are not described in the scenarios or in the Figma designs, but should be noted (I may also be missing some):
There are grandparents, parents, and children items
Check any item with no children
Check a parent item with no children
Check any item with children
Check any item, and then check its child
Uncheck any child with no siblings and its parent has no siblings checked
Uncheck any child with no siblings but its parent has siblings checked
Uncheck any child with siblings and its parent has no siblings checked
Uncheck any child with siblings and its parent has siblings checked
Uncheck a parent with checked children
References
Contributor's Checklist
PR process:
CHANGELOGlabel been added to this PR. Note: items with this label will be added to the CHANGELOG at a later timedocslabel has been added if this introduces a change that needs to be updated in the user docs?Studio-specifc:
pages,components, andlayoutsdirectories as described in the docsTesting:
Reviewer's Checklist
This section is for reviewers to fill out.
yarnandpip)