Skip to content
Open
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "honeybee",
"version": "0.2.1-rc1",
"version": "1.0.0-beta",
"license": "MPL-2.0 AND Proprietary",
"private": true,
"productName": "coStudio",
Expand Down
5 changes: 3 additions & 2 deletions packages/studio-base/src/components/AppBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,9 @@ export function AppBar(props: AppBarProps): React.JSX.Element {
className={classes.avatar}
variant="rounded"
>
{userInfo?.avatarUrl == undefined ||
(userInfo.avatarUrl === "" && <PersonIcon color="secondary" />)}
{(userInfo?.avatarUrl == undefined || userInfo.avatarUrl === "") && (
<PersonIcon color="secondary" />
)}
</Avatar>
</IconButton>
</Tooltip>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ export function CurrentLayoutSyncAdapter(): ReactNull {
// uses useEffect so it happens after DOM updates are complete.
useAsync(async () => {
const unsavedLayoutsSnapshot = { ...debouncedUnsavedLayouts };
if (Object.keys(unsavedLayoutsSnapshot).length === 0) {
return;
}

setUnsavedLayouts(EMPTY_UNSAVED_LAYOUTS);

for (const params of Object.values(unsavedLayoutsSnapshot)) {
Expand All @@ -87,7 +91,9 @@ export function CurrentLayoutSyncAdapter(): ReactNull {
}
}

void analytics.logEvent(AppEvent.LAYOUT_UPDATE);
void analytics.logEvent(AppEvent.LAYOUT_UPDATE, {
count: Object.keys(unsavedLayoutsSnapshot).length,
});
}, [analytics, debouncedUnsavedLayouts, isMounted, layoutManager]);

return ReactNull;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,7 @@

// eslint-disable-next-line no-restricted-syntax
set onRender(renderFunction: RenderFn | undefined) {
console.log('[PanelExtensionAdapter] onRender setter called with:', renderFunction ? 'function' : 'undefined');

Check failure on line 638 in packages/studio-base/src/components/PanelExtensionAdapter/PanelExtensionAdapter.tsx

View workflow job for this annotation

GitHub Actions / lint

Replace `'[PanelExtensionAdapter]·onRender·setter·called·with:',·renderFunction·?·'function'·:·'undefined'` with `⏎··········"[PanelExtensionAdapter]·onRender·setter·called·with:",⏎··········renderFunction·?·"function"·:·"undefined",⏎········`

Check failure on line 638 in packages/studio-base/src/components/PanelExtensionAdapter/PanelExtensionAdapter.tsx

View workflow job for this annotation

GitHub Actions / lint

Unexpected property on console object was called
setRenderFn(() => renderFunction);
},
});
Expand Down
4 changes: 4 additions & 0 deletions packages/studio-base/src/i18n/en/panels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,8 @@ export const panels = {
dataCollection: "Data Collection",
dataCollectionDescription:
"Send instructions to the device service through a live connection to collect data",
faultRecord: "Fault Record",
faultRecordDescription: "Display and manage fault records and diagnostic information",
fileUpload: "File Upload",
fileUploadDescription: "Upload files to the data source through a live connection",
};
4 changes: 4 additions & 0 deletions packages/studio-base/src/i18n/zh/panels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,8 @@ export const panels: Partial<TypeOptions["resources"]["panels"]> = {
momentsBarDesc: "以卡片形式显示一刻信息",
dataCollection: "数据采集",
dataCollectionDescription: "通过实时连接,向设备的 service 发送指令采集数据",
faultRecord: "故障记录",
faultRecordDescription: "记录和显示系统故障信息",
fileUpload: "文件上传",
fileUploadDescription: "上传文件到指定位置",
};
Loading