Skip to content

Commit b3ce1fb

Browse files
committed
Merge remote-tracking branch 'origin/develop' into fb_crossSampleTypeWarnings
2 parents 014343c + d5d99a2 commit b3ce1fb

7 files changed

Lines changed: 51 additions & 11 deletions

File tree

packages/components/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@labkey/components",
3-
"version": "7.13.0-fb-crossSampleTypeWarnings.0",
3+
"version": "7.13.1",
44
"description": "Components, models, actions, and utility functions for LabKey applications and pages",
55
"sideEffects": false,
66
"files": [

packages/components/releaseNotes/components.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ Components, models, actions, and utility functions for LabKey applications and p
77
- InferDomain API call and response to include distinctValues for specified column keys
88
- EntityIdCreationModel.getSchemaQuery to include optional targetQueryName param
99

10+
### version 7.13.1
11+
*Released*: 26 January 2026
12+
- Merge from release26.1-SNAPSHOT to develop
13+
- includes changes from 7.7.5 #1926
14+
1015
### version 7.13.0
1116
*Released*: 20 January 2026
1217
- Multi value text choices
@@ -56,6 +61,10 @@ Components, models, actions, and utility functions for LabKey applications and p
5661
- Added hasMixedValue prop support across all input components (TextInput, SelectInput, CheckboxInput, DatePickerInput, FileInput, TextAreaInput, AmountUnitInput)
5762
- Updated BulkUpdateForm and BulkAddUpdateForm to pass conflicting fields information to form inputs
5863

64+
### version 7.7.5
65+
*Released*: 22 January 2026
66+
- [GitHub Issue #798](https://github.com/LabKey/internal-issues/issues/798) - add product feature flag for advanced workflow
67+
5968
### version 7.7.4
6069
*Released*: 8 January 2026
6170
- [GitHub Issue #723](https://github.com/LabKey/internal-issues/issues/723)

packages/components/src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,7 @@ import {
738738
isSharedContainer,
739739
isSourceTypeEnabled,
740740
isWorkflowEnabled,
741+
isAdvancedWorkflowEnabled,
741742
setFolderDataExclusion,
742743
setProductFolders,
743744
useMenuSectionConfigs,
@@ -853,6 +854,7 @@ import {
853854
TEST_BIO_LIMS_ENTERPRISE_MODULE_CONTEXT,
854855
TEST_BIO_LIMS_STARTER_MODULE_CONTEXT,
855856
TEST_LKS_STARTER_MODULE_CONTEXT,
857+
TEST_LK_LIMS_MODULE_CONTEXT,
856858
TEST_LKSM_PROFESSIONAL_MODULE_CONTEXT,
857859
TEST_LKSM_STARTER_AND_WORKFLOW_MODULE_CONTEXT,
858860
TEST_LKSM_STARTER_MODULE_CONTEXT,
@@ -931,6 +933,7 @@ const App = {
931933
isConditionalFormattingEnabled,
932934
isMediaEnabled,
933935
isWorkflowEnabled,
936+
isAdvancedWorkflowEnabled,
934937
isELNEnabled,
935938
isFreezerManagementEnabled,
936939
isPlatesEnabled,
@@ -1055,6 +1058,7 @@ const App = {
10551058
TEST_LKSM_STARTER_MODULE_CONTEXT,
10561059
TEST_LKSM_STARTER_AND_WORKFLOW_MODULE_CONTEXT,
10571060
TEST_LKSM_PROFESSIONAL_MODULE_CONTEXT,
1061+
TEST_LK_LIMS_MODULE_CONTEXT,
10581062
TEST_PROJECT,
10591063
TEST_PROJECT_CONTAINER,
10601064
TEST_PROJECT_CONTAINER_ADMIN,

packages/components/src/internal/app/constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ export const BASE_APP_HELP_LINK = 'https://www.labkey.org/SampleManagerHelp/wiki
120120

121121
// The enum values here should align with the ProductFeature.java enum values (some not currently used but included for completeness)
122122
export enum ProductFeature {
123+
AdvancedWorkflow = 'AdvancedWorkflow',
123124
ApiKeys = 'ApiKeys',
124125
Assay = 'Assay',
125126
AssayQC = 'AssayQC',

packages/components/src/internal/app/utils.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,13 @@ export function isWorkflowEnabled(moduleContext?: ModuleContext): boolean {
384384
);
385385
}
386386

387+
export function isAdvancedWorkflowEnabled(moduleContext?: ModuleContext): boolean {
388+
return (
389+
hasModule(SAMPLE_MANAGER_APP_PROPERTIES.moduleName, moduleContext) &&
390+
isFeatureEnabled(ProductFeature.AdvancedWorkflow, moduleContext)
391+
);
392+
}
393+
387394
export function isDataChangeCommentRequirementFeatureEnabled(moduleContext?: ModuleContext): boolean {
388395
return isFeatureEnabled(ProductFeature.DataChangeCommentRequirement, moduleContext);
389396
}

packages/components/src/internal/productFixtures.ts

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,36 @@
11
import {
22
BIOLOGICS_APP_PROPERTIES,
33
FREEZER_MANAGER_APP_PROPERTIES,
4+
LIMS_APP_PROPERTIES,
45
ProductFeature,
56
SAMPLE_MANAGER_APP_PROPERTIES,
67
} from './app/constants';
7-
import {
8-
BIOLOGICS_ENTERPRISE_PRODUCT_KEY,
9-
BIOLOGICS_PRODUCT_ID,
10-
BIOLOGICS_STARTER_PRODUCT_KEY,
11-
SAMPLE_MANAGER_PRODUCT_ID,
12-
SAMPLE_MANAGER_PROFESSIONAL_PRODUCT_KEY,
13-
SAMPLE_MANAGER_STARTER_PRODUCT_KEY
14-
} from './app/products';
8+
import { BIOLOGICS_PRODUCT_ID, LIMS_PRODUCT_ID, SAMPLE_MANAGER_PRODUCT_ID } from './app/products';
9+
10+
export const TEST_LK_LIMS_MODULE_CONTEXT = {
11+
api: {
12+
moduleNames: ['samplemanagement', 'inventory', 'assay', 'labbook'],
13+
},
14+
samplemanagement: {
15+
productId: LIMS_APP_PROPERTIES.productId,
16+
},
17+
inventory: {
18+
productId: FREEZER_MANAGER_APP_PROPERTIES.productId,
19+
},
20+
core: {
21+
productFeatures: [
22+
ProductFeature.Workflow,
23+
ProductFeature.ELN,
24+
ProductFeature.Assay,
25+
ProductFeature.ApiKeys,
26+
ProductFeature.CalculatedFields,
27+
ProductFeature.DataChangeCommentRequirement,
28+
ProductFeature.CustomImportTemplates,
29+
ProductFeature.AdvancedWorkflow,
30+
],
31+
primaryApplicationId: LIMS_PRODUCT_ID,
32+
}
33+
};
1534

1635
export const TEST_LKSM_PROFESSIONAL_MODULE_CONTEXT = {
1736
api: {

0 commit comments

Comments
 (0)