diff --git a/packages/frontend/editor-ui/src/components/Projects/ProjectSharing.vue b/packages/frontend/editor-ui/src/components/Projects/ProjectSharing.vue
index f303c09b78..274ca0fea3 100644
--- a/packages/frontend/editor-ui/src/components/Projects/ProjectSharing.vue
+++ b/packages/frontend/editor-ui/src/components/Projects/ProjectSharing.vue
@@ -1,15 +1,16 @@
@@ -134,7 +155,18 @@ onMounted(() => {
{{ i18n.baseText('insights.dashboard.title') }}
-
+
+
+
{
z-index: 1;
}
}
+
+.projectSelect {
+ min-width: 200px;
+ :global(.el-input--suffix .el-input__inner) {
+ padding-right: 26px;
+ }
+}
diff --git a/packages/frontend/editor-ui/src/features/insights/insights.api.ts b/packages/frontend/editor-ui/src/features/insights/insights.api.ts
index c76065ab39..25e2f14e9c 100644
--- a/packages/frontend/editor-ui/src/features/insights/insights.api.ts
+++ b/packages/frontend/editor-ui/src/features/insights/insights.api.ts
@@ -16,13 +16,13 @@ export const fetchInsightsSummary = async (
export const fetchInsightsByTime = async (
context: IRestApiContext,
- filter?: { dateRange: InsightsDateRange['key'] },
+ filter?: { dateRange: InsightsDateRange['key']; projectId?: string },
): Promise =>
await makeRestApiRequest(context, 'GET', '/insights/by-time', filter);
export const fetchInsightsTimeSaved = async (
context: IRestApiContext,
- filter?: { dateRange: InsightsDateRange['key'] },
+ filter?: { dateRange: InsightsDateRange['key']; projectId?: string },
): Promise =>
await makeRestApiRequest(context, 'GET', '/insights/by-time/time-saved', filter);
diff --git a/packages/frontend/editor-ui/src/features/insights/insights.store.ts b/packages/frontend/editor-ui/src/features/insights/insights.store.ts
index 5420add65d..cb0f4e8c5b 100644
--- a/packages/frontend/editor-ui/src/features/insights/insights.store.ts
+++ b/packages/frontend/editor-ui/src/features/insights/insights.store.ts
@@ -38,7 +38,7 @@ export const useInsightsStore = defineStore('insights', () => {
);
const summary = useAsyncState(
- async (filter?: { dateRange: InsightsDateRange['key'] }) => {
+ async (filter?: { dateRange: InsightsDateRange['key']; projectId?: string }) => {
const raw = await insightsApi.fetchInsightsSummary(rootStore.restApiContext, filter);
return transformInsightsSummary(raw);
},
@@ -47,7 +47,7 @@ export const useInsightsStore = defineStore('insights', () => {
);
const charts = useAsyncState(
- async (filter?: { dateRange: InsightsDateRange['key'] }) => {
+ async (filter?: { dateRange: InsightsDateRange['key']; projectId?: string }) => {
const dataFetcher = isDashboardEnabled.value
? insightsApi.fetchInsightsByTime
: insightsApi.fetchInsightsTimeSaved;