Skip to content

Commit 3292f8d

Browse files
authored
DataClass Update Pages (#1806)
* Remove SOURCE_TYPE_KEY
1 parent 12744f8 commit 3292f8d

8 files changed

Lines changed: 9 additions & 15 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": "6.48.1",
3+
"version": "6.49.0",
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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# @labkey/components
22
Components, models, actions, and utility functions for LabKey applications and pages
33

4+
### version 6.49.0
5+
*Released*: 11 June 2025
6+
- Remove SOURCE_TYPE_KEY constant
7+
48
### version 6.48.1
59
*Released*: 10 June 2025
610
- Update `AppLink` to extend all props of `AnchorHTMLAttributes`

packages/components/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,6 @@ import {
855855
SAMPLES_KEY,
856856
SEARCH_KEY,
857857
SERVER_NOTIFICATION_MAX_ROWS,
858-
SOURCE_TYPE_KEY,
859858
SOURCES_KEY,
860859
TEAM_KEY,
861860
TEAM_PICKLISTS_HREF,
@@ -1044,7 +1043,6 @@ const App = {
10441043
SEARCH_KEY,
10451044
DATA_CLASS_KEY,
10461045
SOURCES_KEY,
1047-
SOURCE_TYPE_KEY,
10481046
WORKFLOW_KEY,
10491047
FREEZERS_KEY,
10501048
BOXES_KEY,

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ export const SAMPLE_TYPE_KEY = 'sampleType';
3838
export const SEARCH_KEY = 'search';
3939
export const SOURCES_KEY = 'sources';
4040
export const DATA_CLASS_KEY = 'dataclass';
41-
export const SOURCE_TYPE_KEY = 'sourceType';
4241
export const WORKFLOW_KEY = 'workflow';
4342
export const FREEZERS_KEY = 'freezers';
4443
export const ITEMS_KEY = 'items';
@@ -79,7 +78,7 @@ export const FILE_UPDATE_SAMPLES_HREF = AppURL.create(SAMPLES_KEY, 'new').addPar
7978
'mode',
8079
EntityCreationMode.FILE_UPDATE
8180
);
82-
export const NEW_SOURCE_TYPE_HREF = AppURL.create(SOURCE_TYPE_KEY, 'new');
81+
export const NEW_SOURCE_TYPE_HREF = AppURL.create(SOURCES_KEY, 'new');
8382
export const NEW_SAMPLE_TYPE_HREF = AppURL.create(SAMPLE_TYPE_KEY, 'new');
8483
export const NEW_STANDARD_ASSAY_DESIGN_HREF = AppURL.create(ASSAY_DESIGN_KEY, GENERAL_ASSAY_PROVIDER_NAME);
8584
export const NEW_ASSAY_DESIGN_HREF = AppURL.create(ASSAY_DESIGN_KEY, 'new');

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1222,7 +1222,7 @@ describe('addSourcesSectionConfig', () => {
12221222
expect(sectionConfig.headerURLPart).toBe(undefined);
12231223
expect(sectionConfig.headerText).toBe(undefined);
12241224
if (canDesign) {
1225-
expect(sectionConfig.emptyAppURL?.toHref()).toContain('#/sourceType/new');
1225+
expect(sectionConfig.emptyAppURL?.toHref()).toContain('#/sources/new');
12261226
expect(sectionConfig.emptyURLText).toBe('Create a source type');
12271227
} else {
12281228
expect(sectionConfig.emptyAppURL).toBe(undefined);

packages/components/src/internal/components/editable/EditableGridLoaderFromSelection.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
import { Map } from 'immutable';
17-
1816
import { getSelectedDataDeprecated } from '../../actions';
1917

2018
import { QueryModel } from '../../../public/QueryModel/QueryModel';
@@ -64,9 +62,6 @@ export class EditableGridLoaderFromSelection implements EditableGridLoader {
6462
async fetch(): Promise<GridResponse> {
6563
const { queryName, queryParameters, schemaName, sortString, viewName } = this.queryModel;
6664
const selectedIds = this.queryModel.getSelectedIds(this.idsNotPermitted);
67-
// TODO: when going form Bulk Update -> Edit in Grid this getSelectedData call is redundant, as our
68-
// BulkUpdateForm gives us the selected data. In a future PR we'll update this loader to optionally accept the
69-
// already existing selection data. See SamplesEditableGrid for an example that is passed selectionData.
7065
const { data, dataIds } = await getSelectedDataDeprecated(
7166
schemaName,
7267
queryName,

packages/components/src/internal/components/navigation/ProductMenu.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ import {
4545
ASSAYS_KEY,
4646
PICKLIST_KEY,
4747
ELN_KEY,
48-
SOURCE_TYPE_KEY,
4948
SOURCES_KEY,
5049
FREEZERS_KEY,
5150
BOXES_KEY,
@@ -358,7 +357,6 @@ const HEADER_MENU_SUBTITLE_MAP = {
358357
[REGISTRY_KEY]: 'Registry Sources',
359358
[SAMPLE_TYPE_KEY.toLowerCase()]: 'Sample Types',
360359
[SAMPLES_KEY]: 'Sample Types',
361-
[SOURCE_TYPE_KEY.toLowerCase()]: 'Source Types',
362360
[SOURCES_KEY]: 'Source Types',
363361
[SEARCH_KEY]: 'Search',
364362
[WORKFLOW_KEY]: 'Workflow',

0 commit comments

Comments
 (0)