Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Reclassify entry-point composition files as app tier (#75073)

Fraser790f4d71ad8e
diff --git a/frontend/lint/module-boundaries.mjs b/frontend/lint/module-boundaries.mjs
index 3178bd8f148..75306743311 100644
--- a/frontend/lint/module-boundaries.mjs
+++ b/frontend/lint/module-boundaries.mjs
@@ -150,12 +150,17 @@ const elements = [
"frontend/src/metabase/App.styled.tsx",
"frontend/src/metabase/AppKBarProvider.tsx",
"frontend/src/metabase/reducers-main.ts",
+ "frontend/src/metabase/reducers-common.ts",
+ "frontend/src/metabase/reducers-public.ts",
"frontend/src/metabase/routes.jsx",
"frontend/src/metabase/routes-embed.tsx",
"frontend/src/metabase/route-guards.tsx",
"frontend/src/metabase/routes-public.tsx",
"frontend/src/metabase/AppThemeProvider.tsx",
"frontend/src/metabase/AppColorSchemeProvider.tsx",
+ // Entry point for the static-viz bundle (server-side chart rendering in
+ // GraalJS) - like app.js, it composes OSS + EE code for a build artifact.
+ "frontend/src/metabase/static-viz/index.tsx",
].map((path) =>
createElement({
type: "app",
@@ -170,6 +175,10 @@ const elements = [
pattern: "frontend/src/metabase/app/nav/**",
enforceOutgoing: true,
}),
+ // static-viz must come after the app entries rather than in the
+ // alphabetical shared list: its entry point (static-viz/index.tsx) is app
+ // tier, and the first matching element wins.
+ createElement({ type: "shared", name: "static-viz" }),
// catch-all for unmoduled files - must be last
createElement({
type: "shared",