-
Notifications
You must be signed in to change notification settings - Fork 10
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
feat(dashboard-renderer): stub out support for EntityLink [MA-2716] #1245
Conversation
packages/analytics/dashboard-renderer/src/types/dashboard-renderer-types.ts
Show resolved
Hide resolved
export default (routeParams: string[]): string => { | ||
// TODO: may have to pass in geo from consuming app | ||
const activeGeoCode = 'us' | ||
|
||
const parsedRouteParams = routeParams.map(rp => rp.replace('{geo}', activeGeoCode)) | ||
|
||
// TODO: replace `{idTuple0}` and `{idTuple1}` with actual record ID vales | ||
|
||
return useExternalLinkCreator(parsedRouteParams) | ||
} |
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.
if this isn't going to be shared amongst other charts in the dashboard, the logic could all be stashed inside generateEntityUrl
in TopNTableRenderer most likely.
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 don't need use external link creator here
The host app is supposed to do this, the host app supplies the output of external link creator to the dashboard and the renderer replaces the appropriate ids
import type { AnalyticsExploreRecord, DisplayBlob, ExploreResultV4, QueryResponseMeta } from '@kong-ui-public/analytics-utilities' | ||
import type { AnalyticsChartColors, SimpleChartOptions } from '../../src/types' | ||
import { SeededRandom } from '../utils/SeedRandom' |
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.
@filipgutica this is my fault, I forgot to update the import in a previous PR 😬 Without this fix, the SimpleChart demo doesn't load.
13a1ff3
to
921c516
Compare
Summary
https://konghq.atlassian.net/browse/MA-2716
Resources