-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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 template variable subpage UI #11810
Conversation
bf335fe
to
00fd68c
Compare
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.
Looks good just had a few nits
} | ||
|
||
private handleChangeInput = (e: ChangeEvent<HTMLInputElement>) => { | ||
const value = e.target.value |
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.
const value = e.target.value | |
const {value, name} = e.target | |
this.setState({[name]: value}) |
} | ||
|
||
private handleCreateVariable = () => { | ||
const {onCloseModal} = this.props |
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.
const {onCloseModal} = this.props | |
this.props.onCloseModal() |
script={script} | ||
onChangeScript={this.handleChangeScript} | ||
visibility="visible" | ||
status={{text: '', type: ''}} |
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.
Maybe there could be some kind default status prop in the FluxEditor
so we don't have to specify this when we're not updating it
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 idea 👍
<OverlayContainer maxWidth={1000}> | ||
<OverlayHeading | ||
title="Create Variable" | ||
onDismiss={this.props.onCloseModal} |
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.
onDismiss={this.props.onCloseModal} | |
onDismiss={onCloseModal} |
overlayState: OverlayState | ||
} | ||
|
||
export default class Buckets extends PureComponent<Props, State> { |
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.
export default class Buckets extends PureComponent<Props, State> { | |
export default class Variables extends PureComponent<Props, State> { |
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.
😱 oops
|
||
export { | ||
TemplateType, | ||
TemplateValue, | ||
TemplateValueType, | ||
Template, | ||
OverlayState, |
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
e854c0e
to
31b3ab5
Compare
99781fe
to
08a88de
Compare
08a88de
to
d3d1fef
Compare
This syncs OSS to pro and fixes the cargo-deny errors in CI. This uses the exact same config as IOx from #11810. influxdata/influxdb_iox#11810
Closes: https://github.com/influxdata/applications-team-issues/issues/284
This PR adds a subpage to the /organizations page for template variables. The page includes a button that opens an overlay to create a new template variable. However, this UI is not currently connected to the backend.
In addition, some types are moved out of the /v2 folder to the /types folder.