-
Notifications
You must be signed in to change notification settings - Fork 1
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
130 allow users to share charts #131
Conversation
views/components/ChartList.jsx
Outdated
const { data } = await getCharts() | ||
setChartList(data) |
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.
why do we need to get charts after we share a chart?
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.
We render the sharedWith list when we open the shareChart dialog component, calling the getCharts api we have the latest available data to display.
views/components/ShareCharts.jsx
Outdated
<Button | ||
onClick={closeDialog} | ||
style={{ | ||
color: '#5790bd', |
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 these color strings be stored as constants 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.
This commit: * Replicates the configuration share feature for charts, allowing users to share charts with other users. * Adds a new attribute, sharedWith, to charts which contains an array of usernames of other users that the chart is shared with.
d26c11b
to
d814fdd
Compare
Allow users to share charts
FE
BE
Video of functionality