-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
fix(flow): some refactor for flows #2164
Conversation
@@ -119,7 +119,7 @@ class LoggerView extends Component { | |||
<ul className={styles.events}>{logs}</ul> | |||
</div> | |||
{canLoadMore && ( | |||
<div href="#" className={styles['logs-panel-footer']} onClick={this.loadMore}> | |||
<div className={styles['logs-panel-footer']} onClick={this.loadMore}> |
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 we can get rid of this file entirely
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'll remove it in a subsequent PR, I removed the # because it caused issue with baseurl, but it was unnecessary
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.
can't wait to try this out !
src/bp/common/typings.ts
Outdated
links: NodeLinkView[] | ||
} | ||
|
||
export type NodeLinkView = { |
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.
In a traditional graph, that would be called an edge
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.
Existing typings that i've moved, I didn't thought much about renaming them
import _ from 'lodash' | ||
import Mustache from 'mustache' | ||
import React, { Component } from 'react' | ||
import { OverlayTrigger, Popover, Well } from 'react-bootstrap' |
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.
can't we use blueprint components instead ?
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.
It's existing code that i've copy-pasted, since we're gonna change all that soon I didn't bother to convert it. It keeps the same look as old nodes (since they are temporary)
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.
ok cool but let's add a TODO because we're going to migrate the styling to blueprint before we get rid of the nodes
<a href="#" onClick={this.markAllAsRead}> | ||
Mark all as read | ||
</a> | ||
<a onClick={this.markAllAsRead}>Mark all as read</a> |
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.
is the notification hub even working ? I mean do we even send notification somewhere ?
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.
Yeah, still used in HITL for now
showActionModalForm: false | ||
} | ||
|
||
itemToOptions(item) { |
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.
that's some parsing magic, I'm totally out of context I know but do you think we could eventually get rid of this ?
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.
Not the way nodes are done in flow v1. I've copied the code from ActionModalForm but made it into a smaller component for that purpose, but all this is throwable
import _ from 'lodash' | ||
import Mustache from 'mustache' | ||
import React, { Component } from 'react' | ||
import { OverlayTrigger, Popover, Well } from 'react-bootstrap' |
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.
ok cool but let's add a TODO because we're going to migrate the styling to blueprint before we get rid of the nodes
Added basis for new node types. Also fixes some issues left of my pr of custom URL that i've encountered..