Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experiment private fork #2324

Open
wants to merge 97 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
2565817
hub central dialog first attempts
afarago Jul 10, 2024
a95aced
hubcenter reading console
afarago Jul 14, 2024
9ba658b
hubcenter improvements, motor and colorsensor enrichments
afarago Jul 17, 2024
3e38c48
dialog activation moved to statusbar
afarago Jul 17, 2024
6a74a6a
keep the connected hub name if any for flashing firmware dialog
afarago Jul 17, 2024
06d4467
keep the last connected device name in memory
afarago Jul 17, 2024
150b096
change to useLocalStorage and fix the dialog flow to use this as a de…
afarago Jul 18, 2024
8d5be42
adopted HubCenter to use AppData
afarago Jul 23, 2024
824ab67
Merge branch 'experiment-hubcentral' into master
afarago Sep 23, 2024
155b928
Merge pull request #1 from afarago/master
afarago Sep 23, 2024
b82bfdf
just icons and upload GoogleDriveUploadDialog
Sep 26, 2024
9d4960d
Enable drive picker
Sep 27, 2024
282f39a
Adding upload support.
Sep 27, 2024
a22a49c
feat: hubcenter update to protocol 1.4.0 using appdata and dedicated …
afarago Sep 28, 2024
a043c67
feat: add hub port view script for refrence and versioning
afarago Sep 28, 2024
2af0e17
fix: minor fixes and cleanups
afarago Sep 28, 2024
8dbe8f9
fix: sporadic errors with special characters
afarago Oct 1, 2024
5fa94a6
Merge branch 'master' into experiment-hubcentral
afarago Oct 1, 2024
99951e4
logic for upload success and failed
Oct 2, 2024
1cbb562
reset uploading after close
Oct 2, 2024
87c2c60
feat: using feature flag hasPortView to selectively display hub cente…
afarago Oct 2, 2024
80fc625
fix: slightliy revised port view protocol
afarago Oct 2, 2024
65ae153
feat: improved hubcenter visuals, adding several device types
afarago Oct 2, 2024
695d577
feat: remove hub buttons
afarago Oct 2, 2024
caa7b29
fix: enable checking mode change
afarago Oct 3, 2024
3c68e16
feat: adding WriteAppDataCommand handling
afarago Oct 3, 2024
d533b32
improve: color sensor to show color only if valid
afarago Oct 3, 2024
a97e929
feat: add sensor mode handling
afarago Oct 3, 2024
ae27bb3
fix: enable other hubs than prime hub i.e. technic hub
afarago Oct 4, 2024
7d23429
feat: close dialog on disconnect or program stop
afarago Oct 4, 2024
a9ae35a
style: formatting code and optimizing based on style
afarago Oct 4, 2024
c04788c
feat: add F7 a hotkey for portview dialog
afarago Oct 4, 2024
3a3bebc
Merge branch 'experiment-keep-hub-name' into experiment-private-fork
afarago Oct 4, 2024
7415f70
refactor: optimize build and publish workflow
afarago Oct 4, 2024
f6c62ba
Refactor build and publish workflow to optimize for experiment-privat…
afarago Oct 4, 2024
3f72efb
Refactor build and publish workflow to optimize for experiment-privat…
afarago Oct 4, 2024
04ce115
Optimize build and publish workflow for experiment-private-fork branch
afarago Oct 4, 2024
bf27308
Optimize build workflow by adding artifact name for GitHub Pages depl…
afarago Oct 4, 2024
8e4740d
Optimize build workflow by commenting out the URL for GitHub Pages de…
afarago Oct 4, 2024
e2e472a
Optimize build workflow for experiment-private-fork branch
afarago Oct 4, 2024
8de154e
refactor
Oct 6, 2024
7779eb1
update release.yml
afarago Oct 7, 2024
84615c2
Optimize build workflow by updating release.yml
afarago Oct 7, 2024
6ed7b5e
feat: adding private build tag
afarago Oct 7, 2024
fc01016
fix: update port view builting python
afarago Oct 8, 2024
0a82550
feat: hubcenter new protocol, motor rotate
afarago Oct 9, 2024
dee3160
update: hub center motor rotation
afarago Oct 9, 2024
cb4e33b
feat: update hubcenter look and feel
afarago Oct 9, 2024
e8a85ae
Merge branch 'experiment-hubcentral' into experiment-private-fork
afarago Oct 9, 2024
fdf72bf
fix: resolve motor re-plug bug
afarago Oct 9, 2024
03e9a4c
Merge branch 'google_drive' into experiment-private-fork
afarago Oct 9, 2024
7754e52
improve: add google api keys
afarago Oct 9, 2024
26feeb9
fix: packages
afarago Oct 9, 2024
df84601
fix: update deps
afarago Oct 10, 2024
ed55217
fix: update packages
afarago Oct 10, 2024
47418e6
fix: handleDownloadFile auth token
afarago Oct 10, 2024
e34f377
feat: gdrive upload versions
afarago Oct 10, 2024
f98e996
fix: portview program
afarago Oct 10, 2024
60557a1
fix: hubcenter shutdown workaround
afarago Oct 10, 2024
528c9f4
feat: Add blocklypy package and import functionality
afarago Oct 11, 2024
cfceb29
update: blocklypy dependedncy
afarago Oct 12, 2024
322b391
upgrade: better explorer open dialog handling
afarago Oct 12, 2024
335b442
feat: improve welcome screen ux
afarago Oct 12, 2024
c2cb457
improve: use i18n
afarago Oct 13, 2024
cb1d07a
Merge branch 'welcome-screen-improvements' into experiment-private-fork
afarago Oct 13, 2024
ed3cced
fix: google drive folder refinement
afarago Oct 13, 2024
14ee7b8
fix: google drive picker fix
afarago Oct 13, 2024
4a2ba2b
improve: welcome page list of recent files
afarago Oct 13, 2024
88b2b77
feat: additional hotkeys added
afarago Oct 14, 2024
4020cba
improve: handle recentfiles properly with startup
afarago Oct 14, 2024
c1f61dd
Merge branch 'welcome-screen-improvements' into experiment-private-fork
afarago Oct 14, 2024
e54d5f3
Merge branch 'additional-hotkeys' into experiment-private-fork
afarago Oct 14, 2024
13cd663
improve: welcome screen buttons
afarago Oct 14, 2024
695c9ae
update: google drive handling from scatwang
afarago Oct 14, 2024
21a2cc5
fix: remove unnneeded force sensor icon class
afarago Oct 14, 2024
0123b2b
update: blocklypy- 0.0.4
afarago Oct 16, 2024
2413b06
bump: blocklypy to 0.0.5
afarago Oct 18, 2024
991746a
feat: jump to compiler error automatically
afarago Oct 19, 2024
085961c
fix: improve splitter handling
afarago Oct 19, 2024
7b0ad3c
misc: documentation and comments
afarago Oct 19, 2024
57519ef
update: gh action build
afarago Oct 19, 2024
8303bff
fix: revert to node 18 for canvas ddep
afarago Oct 19, 2024
f11398e
fix: private build css style
afarago Oct 19, 2024
a54bb2e
bump: blocklypy
afarago Oct 20, 2024
4d55fed
bump: blocklypy
afarago Oct 20, 2024
e4441a3
Merge branch 'master' into experiment-private-fork
afarago Nov 15, 2024
185bf25
refactor(protocol): remove unused slot handling in createLegacyStartU…
afarago Nov 15, 2024
bb8ca31
fix: Update blocklypy version and adjust import functionality
afarago Feb 9, 2025
48c6dd4
fix: Update blocklypy version to 0.0.86
afarago Feb 9, 2025
8ea9c28
Merge branch 'experiment-private-fork' into experiment-blpy
afarago Feb 9, 2025
fe10439
refactor(explorer): update file import handling and improve supported…
afarago Feb 9, 2025
636aeb5
Merge branch 'experiment-private-fork' into experiment-blpy
afarago Feb 9, 2025
ca021b2
Merge pull request #3 from afarago/experiment-blpy
afarago Feb 9, 2025
3be18a3
chore(release): update deploy-pages action to version 4
afarago Feb 9, 2025
d93ba30
Merge remote-tracking branch 'refs/remotes/origin/experiment-private-…
afarago Feb 9, 2025
b396591
chore(release): comment out artifact download step in release workflow
afarago Feb 9, 2025
aba86fb
chore(release): update upload-pages-artifact action to version 3
afarago Feb 9, 2025
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
Prev Previous commit
Next Next commit
dialog activation moved to statusbar
afarago committed Jul 17, 2024
commit 3e38c48ac9725bb7cc4ef94ac4e4fa33845a1278
17 changes: 12 additions & 5 deletions src/hubcenter/HubCenterDialog.tsx
Original file line number Diff line number Diff line change
@@ -30,9 +30,9 @@ const HubcenterDialog: React.FunctionComponent = () => {
const dispatch = useDispatch();
const i18n = useI18n();
// const deviceName = useSelector((s) => s.ble.deviceName);
// const deviceType = useSelector((s) => s.ble.deviceType);
// const deviceFirmwareVersion = useSelector((s) => s.ble.deviceFirmwareVersion);
//const charging = useSelector((s) => s.ble.deviceBatteryCharging);
const deviceType = useSelector((s) => s.ble.deviceType);
const deviceFirmwareVersion = useSelector((s) => s.ble.deviceFirmwareVersion);
// const charging = useSelector((s) => s.ble.deviceBatteryCharging);
// const lowBatteryWarning = useSelector((s) => s.ble.deviceLowBatteryWarning);

// wire shared context to terminal output
@@ -57,7 +57,14 @@ const HubcenterDialog: React.FunctionComponent = () => {
case 'H':
{
setHubName(line[1]);
setHubDetails(line[3]);
const details = [
deviceType,
deviceFirmwareVersion,
line[3],
]
.filter((e) => !!e)
.join(', ');
setHubDetails(details);
}
break;
case 'BAT':
@@ -99,7 +106,7 @@ const HubcenterDialog: React.FunctionComponent = () => {
});

return () => subscription.unsubscribe();
}, [hubcenterStream]);
}, [deviceFirmwareVersion, deviceType, hubcenterStream]);

return (
<Dialog
43 changes: 11 additions & 32 deletions src/status-bar/StatusBar.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020-2023 The Pybricks Authors
// Copyright (c) 2020-2024 The Pybricks Authors

import './status-bar.scss';
import {
@@ -16,8 +16,10 @@ import {
import { Disable, Error, TickCircle } from '@blueprintjs/icons';
import classNames from 'classnames';
import React, { useMemo } from 'react';
import { useDispatch } from 'react-redux';
import { BleConnectionState } from '../ble/reducers';
import { CompletionEngineStatus } from '../editor/redux/codeCompletion';
import { hubcenterShowDialog } from '../hubcenter/actions';
import { useSelector } from '../reducers';
import { useI18n } from './i18n';

@@ -71,43 +73,20 @@ const CompletionEngineIndicator: React.FunctionComponent = () => {
};

const HubInfoButton: React.FunctionComponent = () => {
const dispatch = useDispatch();
const i18n = useI18n();
const deviceName = useSelector((s) => s.ble.deviceName);
const deviceType = useSelector((s) => s.ble.deviceType);
const deviceFirmwareVersion = useSelector((s) => s.ble.deviceFirmwareVersion);

return (
<Popover
{...commonPopoverProps}
content={
<table className="no-wrap" style={{ userSelect: 'text' }}>
<tbody>
<tr>
<td>
<strong>{i18n.translate('hubInfo.connectedTo')}</strong>
</td>
<td>{deviceName}</td>
</tr>
<tr>
<td>
<strong>{i18n.translate('hubInfo.hubType')}</strong>
</td>
<td>{deviceType}</td>
</tr>
<tr>
<td>
<strong>{i18n.translate('hubInfo.firmware')}</strong>
</td>
<td>v{deviceFirmwareVersion}</td>
</tr>
</tbody>
</table>
}
>
<Button title={i18n.translate('hubInfo.title')} minimal={true}>
<>
<Button
title={i18n.translate('hubInfo.title')}
onClick={() => dispatch(hubcenterShowDialog())}
minimal={true}
>
{deviceName}
</Button>
</Popover>
</>
);
};

5 changes: 0 additions & 5 deletions src/toolbar/Toolbar.tsx
Original file line number Diff line number Diff line change
@@ -6,7 +6,6 @@ import React from 'react';
import { useId } from 'react-aria';
import { Toolbar as UtilsToolbar } from '../components/toolbar/Toolbar';
import BluetoothButton from './buttons/bluetooth/BluetoothButton';
import HubcenterButton from './buttons/hubcenter/HubcenterButton';
import ReplButton from './buttons/repl/ReplButton';
import RunButton from './buttons/run/RunButton';
import SponsorButton from './buttons/sponsor/SponsorButton';
@@ -24,7 +23,6 @@ const Toolbar: React.FunctionComponent = () => {
const i18n = useI18n();
const stopButtonId = useId();
const replButtonId = useId();
const hubcenterButtonId = useId();

return (
<UtilsToolbar
@@ -40,9 +38,6 @@ const Toolbar: React.FunctionComponent = () => {
<StopButton id={stopButtonId} />
<ReplButton id={replButtonId} />
</ButtonGroup>
<ButtonGroup className="pb-toolbar-group pb-align-left">
<HubcenterButton id={hubcenterButtonId} />
</ButtonGroup>
<ButtonGroup className="pb-toolbar-group pb-align-right">
<SponsorButton id={sponsorButtonId} />
</ButtonGroup>
36 changes: 0 additions & 36 deletions src/toolbar/buttons/hubcenter/HubcenterButton.tsx

This file was deleted.

12 changes: 0 additions & 12 deletions src/toolbar/buttons/hubcenter/i18n.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/toolbar/buttons/hubcenter/icon.svg

This file was deleted.

6 changes: 0 additions & 6 deletions src/toolbar/buttons/hubcenter/translations/en.json

This file was deleted.