feat(frontend-plugin-api): fix default app plugin id
Signed-off-by: Camila Belo <camilaibs@gmail.com>
This commit is contained in:
@@ -37,7 +37,7 @@ export const useAnalyticsContext = (): AnalyticsContextValue => {
|
||||
// Provide a default value if no value exists.
|
||||
if (theContext === undefined) {
|
||||
return {
|
||||
pluginId: 'root',
|
||||
pluginId: 'app',
|
||||
extensionId: 'App',
|
||||
};
|
||||
}
|
||||
|
||||
@@ -25,9 +25,6 @@ export type CommonAnalyticsContext = {
|
||||
*/
|
||||
pluginId: string;
|
||||
|
||||
/**
|
||||
* The nearest known parent extension where the event was captured.
|
||||
*/
|
||||
/**
|
||||
* The nearest known parent extension where the event was captured.
|
||||
*/
|
||||
|
||||
@@ -65,7 +65,7 @@ export function ExtensionBoundary(props: ExtensionBoundaryProps) {
|
||||
// Skipping "routeRef" attribute in the new system, the extension "id" should provide more insight
|
||||
const attributes = {
|
||||
extensionId: node.spec.id,
|
||||
pluginId: node.spec.source?.id,
|
||||
pluginId: node.spec.source?.id ?? 'app',
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user