Skip to content
Merged
Show file tree
Hide file tree
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
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.7.4",
"version": "7.7.5",
"description": "Components, models, actions, and utility functions for LabKey applications and pages",
"sideEffects": false,
"files": [
Expand Down
4 changes: 4 additions & 0 deletions packages/components/releaseNotes/components.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# @labkey/components
Components, models, actions, and utility functions for LabKey applications and pages

### version 7.7.5
*Released*: 22 January 2026
- [GitHub Issue #798](https://github.com/LabKey/internal-issues/issues/798) - add product feature flag for advanced workflow

### version 7.7.4
*Released*: 8 January 2026
- [GitHub Issue #723](https://github.com/LabKey/internal-issues/issues/723)
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,7 @@ import {
isSharedContainer,
isSourceTypeEnabled,
isWorkflowEnabled,
isAdvancedWorkflowEnabled,
setFolderDataExclusion,
setProductFolders,
useMenuSectionConfigs,
Expand Down Expand Up @@ -853,6 +854,7 @@ import {
TEST_BIO_LIMS_ENTERPRISE_MODULE_CONTEXT,
TEST_BIO_LIMS_STARTER_MODULE_CONTEXT,
TEST_LKS_STARTER_MODULE_CONTEXT,
TEST_LK_LIMS_MODULE_CONTEXT,
TEST_LKSM_PROFESSIONAL_MODULE_CONTEXT,
TEST_LKSM_STARTER_AND_WORKFLOW_MODULE_CONTEXT,
TEST_LKSM_STARTER_MODULE_CONTEXT,
Expand Down Expand Up @@ -931,6 +933,7 @@ const App = {
isConditionalFormattingEnabled,
isMediaEnabled,
isWorkflowEnabled,
isAdvancedWorkflowEnabled,
isELNEnabled,
isFreezerManagementEnabled,
isPlatesEnabled,
Expand Down Expand Up @@ -1055,6 +1058,7 @@ const App = {
TEST_LKSM_STARTER_MODULE_CONTEXT,
TEST_LKSM_STARTER_AND_WORKFLOW_MODULE_CONTEXT,
TEST_LKSM_PROFESSIONAL_MODULE_CONTEXT,
TEST_LK_LIMS_MODULE_CONTEXT,
TEST_PROJECT,
TEST_PROJECT_CONTAINER,
TEST_PROJECT_CONTAINER_ADMIN,
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/internal/app/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ export const BASE_APP_HELP_LINK = 'https://www.labkey.org/SampleManagerHelp/wiki

// The enum values here should align with the ProductFeature.java enum values (some not currently used but included for completeness)
export enum ProductFeature {
AdvancedWorkflow = 'AdvancedWorkflow',
ApiKeys = 'ApiKeys',
Assay = 'Assay',
AssayQC = 'AssayQC',
Expand Down
7 changes: 7 additions & 0 deletions packages/components/src/internal/app/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,13 @@ export function isWorkflowEnabled(moduleContext?: ModuleContext): boolean {
);
}

export function isAdvancedWorkflowEnabled(moduleContext?: ModuleContext): boolean {
return (
hasModule(SAMPLE_MANAGER_APP_PROPERTIES.moduleName, moduleContext) &&
isFeatureEnabled(ProductFeature.AdvancedWorkflow, moduleContext)
);
}

export function isDataChangeCommentRequirementFeatureEnabled(moduleContext?: ModuleContext): boolean {
return isFeatureEnabled(ProductFeature.DataChangeCommentRequirement, moduleContext);
}
Expand Down
35 changes: 27 additions & 8 deletions packages/components/src/internal/productFixtures.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,36 @@
import {
BIOLOGICS_APP_PROPERTIES,
FREEZER_MANAGER_APP_PROPERTIES,
LIMS_APP_PROPERTIES,
ProductFeature,
SAMPLE_MANAGER_APP_PROPERTIES,
} from './app/constants';
import {
BIOLOGICS_ENTERPRISE_PRODUCT_KEY,
BIOLOGICS_PRODUCT_ID,
BIOLOGICS_STARTER_PRODUCT_KEY,
SAMPLE_MANAGER_PRODUCT_ID,
SAMPLE_MANAGER_PROFESSIONAL_PRODUCT_KEY,
SAMPLE_MANAGER_STARTER_PRODUCT_KEY
} from './app/products';
import { BIOLOGICS_PRODUCT_ID, LIMS_PRODUCT_ID, SAMPLE_MANAGER_PRODUCT_ID } from './app/products';

export const TEST_LK_LIMS_MODULE_CONTEXT = {
api: {
moduleNames: ['samplemanagement', 'inventory', 'assay', 'labbook'],
},
samplemanagement: {
productId: LIMS_APP_PROPERTIES.productId,
},
inventory: {
productId: FREEZER_MANAGER_APP_PROPERTIES.productId,
},
core: {
productFeatures: [
ProductFeature.Workflow,
ProductFeature.ELN,
ProductFeature.Assay,
ProductFeature.ApiKeys,
ProductFeature.CalculatedFields,
ProductFeature.DataChangeCommentRequirement,
ProductFeature.CustomImportTemplates,
ProductFeature.AdvancedWorkflow,
],
primaryApplicationId: LIMS_PRODUCT_ID,
}
};

export const TEST_LKSM_PROFESSIONAL_MODULE_CONTEXT = {
api: {
Expand Down