Skip to content
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

Time Travel 3.0 #2703

Merged
merged 31 commits into from
Jul 27, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
7757bd2
Experimental.
fbarl Jul 10, 2017
cb7d770
Getting somewhere.
fbarl Jul 19, 2017
558f1a2
Good zooming behaviour.
fbarl Jul 19, 2017
906f0b0
Working timeline zooming & panning.
fbarl Jul 19, 2017
4d064c6
Clickable timestamps.
fbarl Jul 19, 2017
449544b
Dragging cursor
fbarl Jul 19, 2017
9172788
Timeline panning buttons.
fbarl Jul 19, 2017
6967c3f
Capping at current time.
fbarl Jul 19, 2017
dea9daa
Scale limits.
fbarl Jul 19, 2017
b16dac9
Better ticks.
fbarl Jul 21, 2017
f4e35c6
Time tags fading in smoothly.
fbarl Jul 21, 2017
0401bbb
Removed seconds.
fbarl Jul 21, 2017
a67733e
Better tick spacing.
fbarl Jul 21, 2017
282ce20
Vertical panning as zooming.
fbarl Jul 21, 2017
c5e8f92
Organizing the code..
fbarl Jul 21, 2017
d566b3a
Replaced d3-zoom with native events.
fbarl Jul 21, 2017
a614551
Got rid of scaleX
fbarl Jul 21, 2017
3ab7e82
More code beautified.
fbarl Jul 23, 2017
df0ca09
Almost done polishing the code.
fbarl Jul 24, 2017
4d79b22
Some cleanup.
fbarl Jul 24, 2017
c47e1da
Better request triggers.
fbarl Jul 25, 2017
9bbb261
More cleaning up.
fbarl Jul 25, 2017
d104a68
Styled the timestamp input.
fbarl Jul 25, 2017
85ac85b
Final cleanup.
fbarl Jul 25, 2017
74d0915
Update yarn.lock
fbarl Jul 25, 2017
846e7d5
Zoom tracking.
fbarl Jul 25, 2017
8e16491
Animate timeline translations.
fbarl Jul 25, 2017
e80fe6b
Fixed the PAUSE button glitch and updating the time control info.
fbarl Jul 25, 2017
5e3a0a1
Opacity fix and timeline arrows removed.
fbarl Jul 27, 2017
07aff05
Fixed the red vertical bar.
fbarl Jul 27, 2017
4b19216
Use preventDefault() on timeline scrolling.
fbarl Jul 27, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions client/app/scripts/actions/app-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,16 @@ export function clickNode(nodeId, label, origin, topologyId = null) {
}

export function pauseTimeAtNow() {
return {
type: ActionTypes.PAUSE_TIME_AT_NOW
return (dispatch, getState) => {
dispatch({
type: ActionTypes.PAUSE_TIME_AT_NOW
});
if (!getState().get('nodesLoaded')) {
getNodes(getState, dispatch);
if (isResourceViewModeSelector(getState())) {
getResourceViewNodesSnapshot(getState(), dispatch);
}
}
};
}

Expand Down
11 changes: 11 additions & 0 deletions client/app/scripts/components/time-control.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import TimeTravelButton from './time-travel-button';
import { trackMixpanelEvent } from '../utils/tracking-utils';
import { pauseTimeAtNow, resumeTime, startTimeTravel } from '../actions/app-actions';

import { TIMELINE_TICK_INTERVAL } from '../constants/timer';


const className = isSelected => (
classNames('time-control-action', { 'time-control-action-selected': isSelected })
Expand All @@ -23,6 +25,15 @@ class TimeControl extends React.Component {
this.getTrackingMetadata = this.getTrackingMetadata.bind(this);
}

componentDidMount() {
// Force periodic for the paused info.
this.timer = setInterval(() => { this.forceUpdate(); }, TIMELINE_TICK_INTERVAL);
}

componentWillUnmount() {
clearInterval(this.timer);
}

getTrackingMetadata(data = {}) {
const { currentTopology } = this.props;
return {
Expand Down
Loading