-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add Expanded view for Time List #7378
Conversation
…ties are selected
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #7378 +/- ##
==========================================
- Coverage 55.74% 55.45% -0.30%
==========================================
Files 668 668
Lines 26723 26800 +77
Branches 2585 2606 +21
==========================================
- Hits 14897 14862 -35
- Misses 11115 11222 +107
- Partials 711 716 +5
... and 11 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
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.
Reviewed and have some comments regarding the structure of the Vue components and some anti-patterns that we ought not to proliferate due to major performance issues-- we can nip this in the bud straight away with a bit of restructuring.
This also needs tests
…le dropdown configuration in the inspector.
…list-compact-view
…o the plan plugin.
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.
Alright this is looking good! I've left a bunch of suggestions, mostly small stuff-- but we really, really ought to break those item
objects up into individual properties or we're losing out on a lot of free perf benefits.
setTimeContext() { | ||
this.stopFollowingTimeContext(); | ||
this.timeContext = this.openmct.time.getContextForView(this.path); | ||
this.followTimeContext(); | ||
}, | ||
followTimeContext() { | ||
this.timeContext.on(TIME_CONTEXT_EVENTS.tick, this.updateTimestamp); | ||
}, | ||
stopFollowingTimeContext() { | ||
if (this.timeContext) { | ||
this.timeContext.off(TIME_CONTEXT_EVENTS.tick, this.updateTimestamp); | ||
} | ||
}, |
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.
TimeContext stuff is gonna be a great candidate for a Open MCT specific Composable :D
# Conflicts fixed: # src/styles/_constants-snow.scss
… into timelist-compact-view
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.
Good stuff. Awesome job fixing the re-renders-- initial testing shows the list is much more performant 👏
This all LGTM. I have a few non-blocking comments/questions. nothing urgent:)
name: { | ||
type: String, | ||
default: '' | ||
}, | ||
start: { | ||
type: Number, | ||
default: 0 | ||
}, | ||
end: { | ||
type: Number, | ||
default: 0 | ||
}, | ||
duration: { | ||
type: Number, | ||
default: 0 | ||
}, | ||
countdown: { | ||
type: Number, | ||
default: 0 | ||
}, | ||
cssClass: { | ||
type: String, | ||
default: '' |
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.
This is great! Do you think name, start, end, duration, and countdown, should be required props?
default() { | ||
return 'notStarted'; | ||
} | ||
default: 'notStarted' |
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.
nice
let formattedValue; | ||
if (itemProperty.format) { | ||
const itemStartDate = new Date(value).toDateString(); | ||
const timestampDate = new Date(this.timestamp).toDateString(); | ||
formattedValue = itemProperty.format(value, this.item, itemProperty.key, this.openmct, { | ||
formattedValue = itemProperty.format(value, undefined, itemProperty.key, this.openmct, { |
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.
oh weird. where's this defined?
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.
Much better! Previous issues I commented on look to have been fixed.
- "Cancelled” should be removed, and "Skipped" should be brought back.
- The time context hero text (STARTS/ENDS/etc.) isn't reactive, but needs to be.
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.
We still need to fix the Activity tab issue, but that is being tracked with #7442.
Closes #7377
Describe your changes:
Adds a new component that displays the timelist view in compact mode provided an option
isCompact: true
Adds inspector configuration to set compact view enabled/disabled
TODO:
All Submissions:
Author Checklist
type:
label? Note: this is not necessarily the same as the original issue.Reviewer Checklist