-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Visualizations customizable settings #4793
Conversation
77c0877
to
7335d45
Compare
7335d45
to
be8666a
Compare
@@ -42,12 +43,17 @@ export default function VisualizationRenderer(props) { | |||
setFilters(combineFilters(filtersRef.current, props.filters)); | |||
}, [props.filters]); | |||
|
|||
const cleanColumnNames = useMemo( | |||
() => map(data.columns, col => ({ ...col, name: getColumnCleanName(col.friendly_name) })), |
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.
@kravets-levko it seemed to make sense to move getColumnCleanName
out of Table vis and rather apply it to all visualizations, do you see any problems may happen with this change? (that method is used to remove ::filter
from column names for example)
choroplethAvailableMaps: { | ||
countries: { | ||
name: "Countries", | ||
url: countriesDataUrl, | ||
}, | ||
subdiv_japan: { | ||
name: "Japan/Prefectures", | ||
url: subdivJapanDataUrl, | ||
}, | ||
}, |
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 tried to go in the direction of #4599 as it has a complementary code to this.
@@ -1,25 +1,16 @@ | |||
import { omit, merge } from "lodash"; | |||
import { omit, merge, get } from "lodash"; | |||
import axios from "axios"; |
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.
No reason to add a service axios dependency instead of using the base one.
What type of PR is this? (check all applicable)
Description
Reorganize visualization components folder
Components related to Redash app were removed from
visualizations/components
folder (EditVisualizationDialog and VisualizationRenderer). Also created a general Renderer and Editor that takes thetype
and select it from the list.Add customizable settings
Creates a mutable object with options (currently only one from the HelpTrigger, soon others from clientConfig options).
Update HelpTrigger
HelpTrigger now alternatively receives a link and a title in replacement for the type constant. Also it renders a regular
<a>
when link is not inside redash.io (adds an External icon in such case).clientConfig options
Were all put into visualization settings.
Related Tickets & Documents
--
Mobile & Desktop Screenshots/Recordings (if there are UI changes)
--