Skip to content

Commit

Permalink
Add more graph options, Fixing up tag lists
Browse files Browse the repository at this point in the history
  • Loading branch information
balbatross committed Jul 27, 2023
1 parent 87c0184 commit 6b3c7a8
Show file tree
Hide file tree
Showing 28 changed files with 753 additions and 141 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,8 @@
"styled-components": "^5.3.6",
"typescript": "4.3.5"
},
"resolutions": {
"@types/react": "17.0.2"
},
"packageManager": "[email protected]"
}
24 changes: 17 additions & 7 deletions packages/app/hivecommand-api/src/device/reports/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ export const useAddDeviceChart = (deviceId: string) => {
type: string,
templateId: string,
keyId: string,
unit: string,
timeBucket: string,
x: number,
y: number,
w: number,
Expand All @@ -85,10 +87,10 @@ export const useAddDeviceChart = (deviceId: string) => {
width: args.w,
height: args.h,
total: args.total,

unit: args.unit,
tagId: args.templateId,
subkeyId: args.keyId,

timeBucket: args.timeBucket,
device: deviceId
}
})
Expand All @@ -99,18 +101,20 @@ export const useAddDeviceChart = (deviceId: string) => {
}
}
})
return (page: string, type: string, templateId: string, keyId: string, x: number, y: number, w: number, h: number, total?: boolean) => {
return (page: string, type: string, templateId: string, keyId: string, unit: string, timeBucket: string, x: number, y: number, w: number, h: number, total?: boolean) => {
return addGraph({
args: {
page: page,
type,
templateId,
keyId,
unit,
x,
y,
w,
h,
total
total,
timeBucket
}
})
}
Expand All @@ -123,6 +127,8 @@ export const useUpdateDeviceChart = (deviceId: string) => {
type: string,
templateId: string,
keyId: string,
unit: string,
timeBucket: string,
x: number,
y: number,
w: number,
Expand All @@ -139,7 +145,8 @@ export const useUpdateDeviceChart = (deviceId: string) => {
y: args.y,
width: args.w,
height: args.h,

unit: args.unit,
timeBucket: args.timeBucket,
tagId: args.templateId,
subkeyId: args.keyId
}
Expand All @@ -151,18 +158,21 @@ export const useUpdateDeviceChart = (deviceId: string) => {
}
}
})
return (page: string, id: string, type: string, templateId: string, keyId: string, x: number, y: number, w: number, h: number, total?: boolean) => {
return (page: string, id: string, type: string, templateId: string, keyId: string, unit: string, timeBucket: string, x: number, y: number, w: number, h: number, total?: boolean) => {
return addGraph({
args: {
page,
id,
type,
templateId,
keyId,
unit,
timeBucket,
x,
y,
w,
h
h,
total
}
})
}
Expand Down
Loading

0 comments on commit 6b3c7a8

Please sign in to comment.