Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions examples/app-crm/src/reports/sales-by-account.report.ts
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2025 ObjectStack. Licensed under the Apache-2.0 license.

import type * as UI from '@objectstack/spec/ui';
import { defineReport } from '@objectstack/spec/ui';

/**
* Example report — total opportunity amount grouped by ACCOUNT.
Expand All@@ -13,12 +13,12 @@ import type * as UI from '@objectstack/spec/ui';
* `total_amount` measure (USD), this exercises both render paths — Intl
* currency formatting AND raw-value lookup drill — end to end.
*/
export const SalesByAccountReport: UI.ReportInput = {
export const SalesByAccountReport = defineReport({
name: 'crm_sales_by_account',
label: 'Sales by Account',
description: 'Total opportunity amount grouped by account (lookup-dimension drill).',
type: 'summary',
dataset: 'opportunity_metrics',
rows: ['account'],
values: ['total_amount'],
};
});