Skip to content

Commit 5939944

Browse files
Bump next from 15.5.6 to 16.0.0 (#210)
1 parent 8fdba47 commit 5939944

28 files changed

+902
-4498
lines changed

app/NavBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import Link from "next/link";
21
import Image from "next/image";
2+
import Link from "next/link";
33

44
export default function NavBar() {
55
return (

app/components/Block.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use client";
2-
import { IfcBlock } from "@/app/types";
32
import { useState } from "react";
3+
import { IfcBlock } from "@/app/types";
44

55
const grafana_stub =
66
"https://shadow.nd.rl.ac.uk/grafana/d/wMlwwaHMk/block-history?viewPanel=2&orgId=1&var-block=";

app/components/CheckToggle.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import CheckToggle from "@/app/components/CheckToggle";
21
import { fireEvent, render } from "@testing-library/react";
2+
import CheckToggle from "@/app/components/CheckToggle";
33

44
it.each([true, false])(
55
"CheckToggle acts on checked variable on a toggle when the initial state is %s",

app/components/CheckToggle.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { Dispatch, SetStateAction, useCallback } from "react";
2-
import { memo } from "react";
1+
import { Dispatch, memo, SetStateAction, useCallback } from "react";
32

43
const CheckToggle = memo(function CheckToggle({
54
checked,

app/components/Group.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1+
import { memo } from "react";
2+
import { tBlockMapping } from "@/app/types";
13
import Block from "./Block";
24
import { checkIfAllBlocksInGroupAreHidden } from "./GroupUtils";
35

4-
import { tBlockMapping } from "@/app/types";
5-
import { memo } from "react";
6-
76
const Group = memo(function Group({
87
group,
98
blocks,

app/components/GroupUtils.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import { checkIfAllBlocksInGroupAreHidden } from "./GroupUtils";
2-
31
import { tBlockMapping } from "@/app/types";
2+
import { checkIfAllBlocksInGroupAreHidden } from "./GroupUtils";
43

54
test("group with all hidden blocks returns true", () => {
65
let blocks: tBlockMapping = new Map();

app/components/Groups.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import Group from "./Group";
21
import { tGroups } from "@/app/types";
2+
import Group from "./Group";
33

44
export default function Groups({
55
groupsMap,

app/components/Instrument.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import {
22
CSSB,
33
findPVInGroups,
4+
getExtraPVsForBlock,
45
getGroupsWithBlocksFromConfigOutput,
6+
Instrument,
57
RC_ENABLE,
68
RC_INRANGE,
79
SP_RBV,
810
storePrecision,
9-
getExtraPVsForBlock,
1011
toPrecision,
1112
yesToBoolean,
12-
Instrument,
1313
} from "@/app/components/Instrument";
1414
import {
1515
ConfigOutput,

app/components/Instrument.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { ExponentialOnThresholdFormat } from "@/app/components/PVutils";
12
import {
23
ConfigOutput,
34
ConfigOutputBlock,
@@ -7,7 +8,6 @@ import {
78
tBlockMapping,
89
tGroups,
910
} from "@/app/types";
10-
import { ExponentialOnThresholdFormat } from "@/app/components/PVutils";
1111

1212
export const DASHBOARD = "CS:DASHBOARD:TAB:";
1313

app/components/InstrumentData.tsx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
11
"use client";
22
import { RefObject, useEffect, useRef, useState } from "react";
3-
import { IfcPVWSMessage, IfcPVWSRequest, PVWSRequestType } from "@/app/types";
4-
import {
5-
findPVInGroups,
6-
getGroupsWithBlocksFromConfigOutput,
7-
Instrument,
8-
RC_ENABLE,
9-
RC_INRANGE,
10-
SP_RBV,
11-
storePrecision,
12-
toPrecision,
13-
yesToBoolean,
14-
} from "@/app/components/Instrument";
153
import useWebSocket from "react-use-websocket";
164
import {
175
instListPV,
@@ -20,14 +8,26 @@ import {
208
webSocketReconnectAttempts,
219
webSocketReconnectInterval,
2210
} from "@/app/commonVars";
11+
import CheckToggle from "@/app/components/CheckToggle";
2312
import {
2413
dehex_and_decompress,
2514
instListFromBytes,
2615
} from "@/app/components/dehex_and_decompress";
16+
import Groups from "@/app/components/Groups";
17+
import {
18+
findPVInGroups,
19+
getGroupsWithBlocksFromConfigOutput,
20+
Instrument,
21+
RC_ENABLE,
22+
RC_INRANGE,
23+
SP_RBV,
24+
storePrecision,
25+
toPrecision,
26+
yesToBoolean,
27+
} from "@/app/components/Instrument";
2728
import { getPrefix, getPvValue } from "@/app/components/PVutils";
2829
import TopBar from "@/app/components/TopBar";
29-
import CheckToggle from "@/app/components/CheckToggle";
30-
import Groups from "@/app/components/Groups";
30+
import { IfcPVWSMessage, IfcPVWSRequest, PVWSRequestType } from "@/app/types";
3131

3232
export function InstrumentData({ instrumentName }: { instrumentName: string }) {
3333
const [showHiddenBlocks, setShowHiddenBlocks] = useState(false);

0 commit comments

Comments
 (0)