#668-Add-preview-header #696
Labels
No labels
_CRITICAL_
API
app
backEnd
Blocked-waiting-for-further-changes
bug
bug-only-on-server-for-mobile-not-webpage
Bug-Report-After-Merge
cleanup
close
design
duplicate
enhancement
feature request
frontEnd
further-changes-needed
future-problem-not-fixint-this-period
help wanted
invalid
last-week-issue-to-fix
library
low-priority
needs input
needs review
not-implemented.
project documentation
question
research
reviewed
Script
security
SQL
style
Team 1
Team 2
team leaders
test-creation
testing
topLevel
unassigned
Under-review
wontfix
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Andras/BoundlessFlowCampus2K!696
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "#668-Add-preview-header"
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?
Adds "Preview" over the selected view.
Review on #668
Whats done
Tested on Windos using Chrome
+No crashes when opening Add Card modal
Inspected following files
indentation is ok
Naming convention
+Acceptable level of comments
+Code is readable and structured clearly
+Naming convention
+Missing comment for new rule set
+Styling is simple and understandable
[What needs to be done
+styles.previewHeader
+CSS defines:
+These must match for CSS modules to apply styling correctly
+Rename CSS class to .previewHeader or update JSX to styles[preview-header]
+AddCardModal.module.css
+Add descriptive comment above the preview header rule set
Conclusion
+Feature works as intended in the UI
+However, styling works due to existing layout, not the new CSS class
Thank you for the review!
I have updated AddCardModal.js to match the naming convention and I have also added comments to AddCardModal.module.css.
On a quick overview, the code looks good.
Will now look over it properly in the editor.
Re-Review on #668
Whats done
Tested on cachyOs (Arch Linux) and Brave browser.
Inspected the following files
frontend/src/features/addCardModal/AddCardModal.js:
frontend/src/features/addCardModal/AddCardModal.module.css:
"Have descriptive comments for every rule set". But the problem with that statement is that the parts that go against the conventions aren't added in this PR and already exist. So, it is a question if that is something to fix in this PR or later?.
What needs to be done
Nothing need to be done with the code created for this Issue and PR.
But since there are several issues with, let's be honest, most code conventions in the overall "AddCardModal.module.css" file, it is worth contemplating if it should be fixed before merging.
Conclusion
The code can be merged if the issues in "AddCardModal.module.css" can be ignored .
Nothing need to be done with the code created for this Issue and PR.
But since there are several issues with, let's be honest, most code conventions in the overall "AddCardModal.module.css" file, it is worth contemplating if it should be fixed before merging.
Unfortunately we don't have time to fix the overall code convention in AddCardModal.module.css before weekly merge. I will create a issue on this.