Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
34696af
Add ChartSettingsPanel.tsx
labkey-alan Nov 20, 2025
67915e1
Update ChartFieldAggregateOptions, ChartFieldOption to use setChartCo…
labkey-alan Nov 20, 2025
14cff78
Add new types for updating ChartConfig and Report models
labkey-alan Nov 20, 2025
f602e94
TrendlineOption: use setChartConfig
labkey-alan Nov 20, 2025
3c0e98a
utils.ts: Add deepCopyChartConfig and hasTrendline
labkey-alan Nov 20, 2025
57719be
ChartFieldRangeScaleOptions: Simplify state management
labkey-alan Nov 20, 2025
8f7b358
charts.scss: Add styles for new chart builder layout
labkey-alan Nov 20, 2025
1e9b56e
ChartFieldOption: Update labels when changing measures
labkey-alan Nov 20, 2025
9edd5ba
ChartSettingsPanel: Better handle chart type changes
labkey-alan Nov 20, 2025
879f703
Improve ChartConfig type
labkey-alan Nov 20, 2025
eaad74c
Fix issue with bar chart y axis labels
labkey-alan Nov 21, 2025
377a370
ChartBuilderModal: Update layout, don't convert ChartConfig to FieldV…
labkey-alan Nov 21, 2025
ec06980
ChartFieldOption: Fix issue with default trendline type
labkey-alan Nov 21, 2025
4d2c23d
ChartBuilderModal: Fix margins for title/subtitle
labkey-alan Nov 21, 2025
3e0fe5d
ChartSettingsPanel: Improve chart type options rendering
labkey-alan Nov 21, 2025
aac25b4
First round of jest test updates to use chartConfig instead of fieldV…
cnathe Nov 25, 2025
d2b05b5
Checkbox.tsx - minor cleanup
labkey-alan Nov 25, 2025
3d0e54c
ChartSettingsPanel: Add width/height settings
labkey-alan Nov 25, 2025
5d1274d
ChartFieldAggregateOptions: Remove asOverlay option
labkey-alan Nov 25, 2025
4f73c89
ChartBuilderModal: Add trendlineParameters to chart preview query config
labkey-alan Nov 26, 2025
b88a22e
TrendlineOption: Handle clearing parameter field
labkey-alan Nov 26, 2025
39b29f9
ChartBuilderModal: set default height in preview
labkey-alan Nov 26, 2025
b1a4f6d
Add ChartFieldAdditionalOptions - renders label input, as well as sca…
labkey-alan Nov 26, 2025
a1da266
TrendlineOption: fix when options appear
labkey-alan Nov 26, 2025
a012447
ChartBuilderModal: Fix layout issues
labkey-alan Dec 1, 2025
18bfb0f
ChartSettingsPanel: let users reset height/width to empty value
labkey-alan Dec 1, 2025
dd7cb8d
ChartFieldOption: hide additional options for pie chart categories
labkey-alan Dec 1, 2025
2136b90
ChartFieldAdditionalOptions: emit label changes on blur/enter key
labkey-alan Dec 1, 2025
d6102f0
SVGChart: honor user configured height/width
labkey-alan Dec 1, 2025
0a8993f
ChartSettingsPanel: keep title margins when changing chart type
labkey-alan Dec 1, 2025
a1fb079
justfile: add comments
labkey-alan Dec 1, 2025
b4c71fb
Drop .chart-body min-height
labkey-alan Dec 1, 2025
7723a34
Use set placement to right for LabelOverlays
labkey-alan Dec 1, 2025
0e059dd
Emit label changes on blur
labkey-alan Dec 2, 2025
2784e17
PR Feedback
labkey-alan Dec 2, 2025
852ec11
Update release notes
labkey-alan Dec 2, 2025
30b8a2d
Fix broken tests, fix issues found by tests
labkey-alan Dec 2, 2025
035b69f
Prep for release
labkey-alan Dec 3, 2025
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
5 changes: 4 additions & 1 deletion packages/components/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

[private]
default:
just --list
@just --list

currentBranch := `git branch --show-current`
branchAsTag := replace(currentBranch, '_', '-')
Expand Down Expand Up @@ -129,5 +129,8 @@ patch:
publish:
npm publish

# Runs publish sleep bump
pb: publish sleep bump

# Runs publish sleep bumpApps
pba: publish sleep bumpApps
4 changes: 2 additions & 2 deletions packages/components/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@labkey/components",
"version": "7.0.0",
"version": "7.1.0",
"description": "Components, models, actions, and utility functions for LabKey applications and pages",
"sideEffects": false,
"files": [
Expand Down
8 changes: 8 additions & 0 deletions packages/components/releaseNotes/components.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# @labkey/components
Components, models, actions, and utility functions for LabKey applications and pages

### version 7.1.0
*Released*: 3 December 2025
- ChartBuilderModal
- Update to two-column layout
- Add options for axis labels
- Add options for title / subtitle
- Add options for height / width

### version 7.0.0
*Released*: 1 December 2025
- Updates for new Workflow implementation
Expand Down
3 changes: 1 addition & 2 deletions packages/components/src/internal/Checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export const CheckboxLK: FC<Props> = memo(props => {
<label>
<input
checked={checked}
className=""
disabled={disabled}
id={id}
name={name}
Expand All @@ -30,6 +29,6 @@ export const CheckboxLK: FC<Props> = memo(props => {
{children}
</label>
</div>
)
);
});
CheckboxLK.displayName = 'Checkbox';
33 changes: 19 additions & 14 deletions packages/components/src/internal/components/chart/Chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,23 +59,28 @@ interface Dimensions {
width: number;
}

const MAX_HEIGHT = 500;
const MAX_DEFAULT_HEIGHT = 500;

function computeDimensions(chartConfig: ChartConfig, measureStore, defaultWidth: number): Dimensions {
// Issue 49754: use getChartTypeBasedWidth() to determine width
const width = LABKEY_VIS.GenericChartHelper.getChartTypeBasedWidth(
chartConfig.renderType,
chartConfig.measures,
measureStore,
defaultWidth
);
const dimensions = {
width,
height: (width * 9) / 16, // 16:9 aspect ratio
};
if (dimensions.height > MAX_HEIGHT) dimensions.height = MAX_HEIGHT;
let width = chartConfig.width;
let height = chartConfig.height;

if (width === undefined) {
// Issue 49754: use getChartTypeBasedWidth() to determine width
width = LABKEY_VIS.GenericChartHelper.getChartTypeBasedWidth(
chartConfig.renderType,
chartConfig.measures,
measureStore,
defaultWidth
);
}

if (height === undefined) {
height = (width * 9) / 16; // 16:9 aspect ratio
if (height > MAX_DEFAULT_HEIGHT) height = MAX_DEFAULT_HEIGHT;
}

return dimensions;
return { height, width };
}

interface Props {
Expand Down
Loading