539-add-card-modal #604
Labels
No labels
_CRITICAL_
API
app
backEnd
Blocked, waiting for further changes
bug
cleanup
close
design
duplicate
enhancement
feature request
frontEnd
help wanted
invalid
low priority
needs input
needs review
project documentation
question
research
reviewed
script
security
SQL
style
testing
topLevel
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Andras/BoundlessFlowCampus2K!604
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "539-add-card-modal"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Modal menu used to add cards. In the pr, I only included the files for the modal and its css, so to test it, you have to add a button to eg. dashboard and map it to a useState hook used to show or hide the modal.
Import the modal

Declare useState hook

Add the modal component (I don't think it matters where you add it) with the correct props (copy the picture).
Add a button with setShowCard(true) as its onClick

When reviewing, please pay attention to the size of different parts of the modal. I tried to use vw and vh (based on screen size) for some of its size, and I don't know if it only worked on my screen... Here's how it looked for me:

To be done/Planned changes:
I will remove the old add widget button/dropdown during merge.
Review on #604
Whats done
Tested on Windows 11 using Edge
Tested Add Card modal functionality
App starts correctly
Tested responsiveness
Inspected following files
frontend/src/features/addCardModal/AddCardModal.js
frontend/src/features/addCardModal/AddCardModal.module.css
What needs to be done
frontend/src/features/addCardModal/AddCardModal.js
UI / Responsiveness
Conclusion
Looks good functionally, but final integration and the planned cleanup should be completed before final merge.
I added the necessary changes to Dashboard (and changed the light mode color to not be horrendous).
I added the button in the same div as the dropdown (that is to be removed) currently is.
The only thing left is to add the descriptions, but as these are in team 1's branch, this should be done after the weekly merge.
Will merge manually!
Merged Manually, well done!
Pull request closed