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
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
*
* * Copyright (c) 2025 Board of Regents of the University of Wisconsin System
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* * See the License for the specific language governing permissions and
* * limitations under the License.
*
*/

insert into ehr_lookups.lookups (set_name,container,value, category, title)
select setname, container, 105 as value, 'Room Object' as category, 'Top' as title from ehr_lookups.lookup_sets where setname='cageui_item_types';

insert into ehr_lookups.lookups (set_name,container,value, category, title)
select setname, container, 106 as value, 'Room Object' as category, 'Bottom' as title from ehr_lookups.lookup_sets where setname='cageui_item_types';
11 changes: 11 additions & 0 deletions CageUI/resources/web/CageUI/static/bottom.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions CageUI/resources/web/CageUI/static/top.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 13 additions & 1 deletion CageUI/src/client/components/layoutEditor/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ const Editor: FC<EditorProps> = ({roomSize}) => {
textElement.setAttribute('contentEditable', 'true');
(textElement.children[0] as SVGTSpanElement).style.cursor = "pointer";
(textElement.children[0] as SVGTSpanElement).style.pointerEvents = "auto";
const cageGroupElement = textElement.closest(`[id^=${roomItemToString(updateItemType)}]`) as SVGGElement;
const cageGroupElement = textElement.closest(`[id=${roomItemToString(updateItemType)}]`) as SVGGElement;
setupEditCageEvent(cageGroupElement, setSelectedObj, contextMenuRef,setCtxMenuStyle, roomItemToString(updateItemType) as RackStringType);
});
}else{
Expand Down Expand Up @@ -810,6 +810,18 @@ const Editor: FC<EditorProps> = ({roomSize}) => {
<div className={"layout-editor"}>
<div ref={utilsRef} id="utils" className={"room-utils"}>
<div className={'room-objects'}>
<LayoutTooltip text={"Top"}>
<RoomItemTemplate
fileName={"top"}
className={"draggable"}
/>
</LayoutTooltip>
<LayoutTooltip text={"Bottom"}>
<RoomItemTemplate
fileName={"bottom"}
className={"draggable"}
/>
</LayoutTooltip>
<LayoutTooltip text={"Door"}>
<RoomItemTemplate
fileName={"door"}
Expand Down
2 changes: 2 additions & 0 deletions CageUI/src/client/types/typings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ export enum RoomObjectTypes {
Door = 102,
GateClosed = 103,
GateOpen = 104,
Top = 104,
Bottom = 104,
}

// value in the cage modifications table in EHR
Expand Down
4 changes: 2 additions & 2 deletions CageUI/src/client/utils/LayoutEditorHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -458,10 +458,10 @@ export async function mergeRacks(props: MergeProps) {
}
if (action !== 'cancel') {
let targetRackShape: d3.Selection<SVGGElement, {}, HTMLElement, any>
= layoutSvg.select(`[id^=${targetRack.itemId}]`);
= layoutSvg.select(`[id=${targetRack.itemId}]`);

let draggedRackShape: d3.Selection<SVGGElement, {}, HTMLElement, any>
= layoutSvg.select(`[id^=${draggedRack.itemId}]`);
= layoutSvg.select(`[id=${draggedRack.itemId}]`);

let newGroup: d3.Selection<SVGGElement, {}, HTMLElement, any>;

Expand Down
2 changes: 1 addition & 1 deletion CageUI/src/org/labkey/cageui/CageUIModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public String getName()
@Override
public @Nullable Double getSchemaVersion()
{
return 25.001;
return 25.002;
}

@Override
Expand Down