-
Notifications
You must be signed in to change notification settings - Fork 1
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
Source management sorting #3
Conversation
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.
I think for this to feel complete we should add the "lastConnected" date to the inventory card. Difficult to make an educated decision since the information isn't available 🙈
fix: generate correct gui-version on build
src/api/manager/job/syncInventory.ts
Outdated
return { | ||
...inventorySource, | ||
status: apiSource.status | ||
status: apiSource.status, | ||
lastConnected: new Date() |
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.
I just learned ( yesterday ) that the API now actually stores some data about previously connected sources ( they used to just disappear... ) so we have check the status here and only update lastConnected if status !== "gone"
.
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.
See comment about when to set lastConnected. The rest of code LGTM!
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.
👏
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.
LGTM
LGTM |
This PR:
No sorting selected (in this case, the 'reverse sort order' button is disabled):
Sort on most recent is selected, reverse button NOT pressed:
Sort on most recent is selected, with the reverse button pressed: