-
Notifications
You must be signed in to change notification settings - Fork 3
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
Tornjak dashboard UI- Front End[Part 1] #76
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.
initial review
tornjak-frontend/src/components/Dashboard/agents-dashboard-table.js
Outdated
Show resolved
Hide resolved
tornjak-frontend/src/components/Dashboard/agents-dashboard-table.js
Outdated
Show resolved
Hide resolved
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.
Initial review
tornjak-frontend/src/components/Dashboard/agents-dashboard-table.js
Outdated
Show resolved
Hide resolved
tornjak-frontend/src/components/Dashboard/agents-dashboard-table.js
Outdated
Show resolved
Hide resolved
tornjak-frontend/src/components/Dashboard/agents-dashboard-table.js
Outdated
Show resolved
Hide resolved
tornjak-frontend/src/components/Dashboard/agents-dashboard-table.js
Outdated
Show resolved
Hide resolved
tornjak-frontend/src/components/Dashboard/clusters-dashboard-table.js
Outdated
Show resolved
Hide resolved
tornjak-frontend/src/components/Dashboard/clusters-dashboard-table.js
Outdated
Show resolved
Hide resolved
|
||
clusterList() { | ||
if (typeof this.props.globalClustersList !== 'undefined') { | ||
return this.props.globalClustersList.map(currentCluster => { |
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 this.props.globalClustersList.map(this.cluster)
should work? give it a go.. same with other patterns like this where the lambda is just return f(x)
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.
so we can simplifying by doing this.props.globalClustersList.map(a => this.cluster(a))
, but if we just do this.props.globalClustersList.map(this.cluster)
, there is an error because the this.cluster
function uses function this.numberClusterEntries
, and it doesn't recognize this.numberClusterEntries
as a function
tornjak-frontend/src/components/Dashboard/entries-dashboard-table.js
Outdated
Show resolved
Hide resolved
tornjak-frontend/src/components/Dashboard/agents-dashboard-table.js
Outdated
Show resolved
Hide resolved
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 - just minor nits and then LGTM
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.
LGTM, thanks for the great feature @mamy-CS @maia-iyer
* tornjak dashboard design details * fix rendering bugs * fix navbar render bog on resize * taking care of initial review nits * removing title component * readding title component * dashboard data management * cluster edit update * expire time date reformat * no data to show display for banner * fixing === * material Ui version update * merging changes from dashboard data management pr * nits from review * remove Dashboard folder * renaming as dashboard lowercase * cluster create form cluster types bug fix * manager mode cluster create type bug fix * expanded view tables for dashboard * expanded view refactor tables dashboard * removing unused variables and functions * merging from dashboard frontend bug fixing pr * removing agent update gitignore * remove agent file * nits in spiffe-entry-interface Signed-off-by: Mohammed Abdi <mohammed.munir.abdi@ibm.com>
* tornjak dashboard design details * fix rendering bugs * fix navbar render bog on resize * taking care of initial review nits * removing title component * readding title component * dashboard data management * cluster edit update * expire time date reformat * no data to show display for banner * fixing === * material Ui version update * merging changes from dashboard data management pr * nits from review * remove Dashboard folder * renaming as dashboard lowercase * cluster create form cluster types bug fix * manager mode cluster create type bug fix * expanded view tables for dashboard * expanded view refactor tables dashboard * removing unused variables and functions * merging from dashboard frontend bug fixing pr * removing agent update gitignore * remove agent file * nits in spiffe-entry-interface Signed-off-by: Mohammed Abdi <mohammed.munir.abdi@ibm.com>
* tornjak dashboard design details * fix rendering bugs * fix navbar render bog on resize * taking care of initial review nits * removing title component * readding title component * dashboard data management * cluster edit update * expire time date reformat * no data to show display for banner * fixing === * material Ui version update * merging changes from dashboard data management pr * nits from review * remove Dashboard folder * renaming as dashboard lowercase * cluster create form cluster types bug fix * manager mode cluster create type bug fix * expanded view tables for dashboard * expanded view refactor tables dashboard * removing unused variables and functions * merging from dashboard frontend bug fixing pr * removing agent update gitignore * remove agent file * nits in spiffe-entry-interface Signed-off-by: Mohammed Abdi <mohammed.munir.abdi@ibm.com>
* tornjak dashboard design details * fix rendering bugs * fix navbar render bog on resize * taking care of initial review nits * removing title component * readding title component * dashboard data management * cluster edit update * expire time date reformat * no data to show display for banner * fixing === * material Ui version update * merging changes from dashboard data management pr * nits from review * remove Dashboard folder * renaming as dashboard lowercase * cluster create form cluster types bug fix * manager mode cluster create type bug fix * expanded view tables for dashboard * expanded view refactor tables dashboard * removing unused variables and functions * merging from dashboard frontend bug fixing pr * removing agent update gitignore * remove agent file * nits in spiffe-entry-interface Signed-off-by: Mohammed Abdi <48661743+mamy-CS@users.noreply.github.com>
https://github.com/lumjjb/tornjak/issues/74