-
Notifications
You must be signed in to change notification settings - Fork 18
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
Inertia web settings page #289
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.
Awesome stuff! Left some comments
</TableHeader> | ||
|
||
<TableBody> | ||
<TableRow> |
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.
Sure you can list out the divs like this, but think about what the API returns to the web app:
https://github.com/ubclaunchpad/inertia/blob/master/common/types.go#L4
type DeploymentStatus struct {
InertiaVersion string `json:"version"`
Branch string `json:"branch"`
CommitHash string `json:"commit_hash"`
CommitMessage string `json:"commit_message"`
BuildType string `json:"build_type"`
Containers []string `json:"containers"`
BuildContainerActive bool `json:"build_active"`
}
maybe there's a cleaner way to generate this table?
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.
right the html is on the redundant side as i was trying to get a more consistent look. I'll get back to this
@@ -232,6 +233,7 @@ class MainWrapper extends React.Component { | |||
|
|||
<Link to={`${this.props.match.url}/dashboard`}>Click to go to Dashboard</Link> | |||
<Link to={`${this.props.match.url}/containers`}>Click to go to Containers</Link> | |||
<Link to={`${this.props.match.url}/settings`}>Click to go to Settings</Link> |
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 IconHeader = ({ title, type }) => ( | ||
<div className="iconheader"> | ||
const IconHeader = ({ title, type, style }) => ( | ||
<div className="iconheader" style={style}> |
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!
Codecov Report
@@ Coverage Diff @@
## master #289 +/- ##
=======================================
Coverage 38.59% 38.59%
=======================================
Files 49 49
Lines 3084 3084
=======================================
Hits 1190 1190
Misses 1744 1744
Partials 150 150 Continue to review full report at Codecov.
|
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.
Awesome work!
🎟️ Ticket(s): Closes #247
👷 Changes
two new mock button added.
🔦 Testing Instructions
point to http://localhost:7900/web/#/home/settings