-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BoxView: Add History Overlay #1038
Conversation
- compile box history logs by date - show box history timeline using history overlay
Codecov Report
@@ Coverage Diff @@
## master #1038 +/- ##
==========================================
+ Coverage 72.79% 72.84% +0.05%
==========================================
Files 284 285 +1
Lines 7373 7392 +19
Branches 1556 1562 +6
==========================================
+ Hits 5367 5385 +18
- Misses 1964 1965 +1
Partials 42 42
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Functional review
- when more than one history item is there, the button for history overlay shows and can be clicked. The overlay opens as expected, and is scrollable
- please fix the time format (e.g. 11:07 shows as 11:7)
- I found an irregularity: when I go to BoxEdit for a box that has no comment yet, and update e.g. tags there, save and return to BoxView, then the history shows "comments changed from "None" to "" " because None/null is the default in the stock table; but the FE sends "" (empty string) from the form, and then the BE detects and logs this as a change. If you know a simple way to make the FE send null instead of "" with the
updateBox
mutation, that'd be awesome; otherwise I'll adjust the BE in a separate PR
Leaving code review to @HaGuesto
Signed-off-by: Vahid Bazzaz <[email protected]>
…eature/boxview-history-overaly
Functional reviewAll mentions from @pylipp were fixed.
I saw this problem already and I believe I fixed that behavior here Otherwise, I have two more comments regarding functional review and maybe @aerinsol should decide here: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code review
Thanks for making the timeline component global.
I put in some suggestions where there is room for improvement. In general, I would ask you @Vahid to try to avoid handling undefined cases in the UI components.
But otherwise, I am happy with the code and there is only one must have that I ask you to change before you can merge this PR: Please rename the component TimelineContainer.
All other remarks from me are nice to haves and you can change them if you feel like it.
I'll approve this PR directly and I do not have to review this PR again. @vahidbazzaz you can decide when you want to merge it. I trust you that you will rename the timelineContainer before.
The PR creates a global timeline component and adds a history overlay to the box view.