Skip to content

Commit

Permalink
Bz1.3.2+ (#506)
Browse files Browse the repository at this point in the history
* Added battery indicator bubble and refactored navigation menu

Signed-off-by: Alejandro Parcet <[email protected]>

* Added battery runner that checks level every 60 seconds

Signed-off-by: Alejandro Parcet <[email protected]>

* Added function to force battery level read when charging

Signed-off-by: Alejandro Parcet <[email protected]>

* Avoided calling device for battery when flashing

Signed-off-by: Alejandro Parcet <[email protected]>

* Added wireless view in APP route switch with basic content

Signed-off-by: Alejandro Parcet <[email protected]>

* Refactor fw update UI (#447)

* Added xstate to manage fw flashing stateflow

Signed-off-by: AlexDygma <[email protected]>

* Updated machine state code with test

Signed-off-by: Alejandro Parcet <[email protected]>

* Added more logic for state machine and placed in folder

Signed-off-by: Alejandro Parcet <[email protected]>

* fw update tester component added

Signed-off-by: Alejandro Parcet <[email protected]>

* Changed FW altFirmwareUpd

Signed-off-by: Alejandro Parcet <[email protected]>

* Added xstate package for react

Signed-off-by: Alejandro Parcet <[email protected]>

* chore: fixed package peer dependencies

Signed-off-by: Alejandro Parcet <[email protected]>

* pushed react version to avoid peer dep issues

Signed-off-by: Alejandro Parcet <[email protected]>

* changed SM assign statements to properly trigger state change

Signed-off-by: Alejandro Parcet <[email protected]>

* fixed error with dependencies and webpack

Signed-off-by: Alejandro Parcet <[email protected]>

* Prepared with dummy data for first 2 states

Signed-off-by: Alejandro Parcet <[email protected]>

* improved data capture and added button to simulate next steps

Signed-off-by: Alejandro Parcet <[email protected]>

* Added new Neuron 2 representation on FirmwareNeuronStatus and updated the modyle FirmwareUpdatePanel

* Added new visual indicators to FirmwareNeuronStatus

* Added select field in order to allow users to change the firmware version in FirmwareVersionStatus

* refactored state machine to load files from github

Signed-off-by: Alejandro Parcet <[email protected]>

* Refactor state machine by splitting it

Signed-off-by: Alejandro Parcet <[email protected]>

* Remove modal to the Firware update module

* Added text body for GitHub releases on State Machine

Signed-off-by: AlexDygma <[email protected]>

* Fixed body tags for proper data

Signed-off-by: AlexDygma <[email protected]>

* Added react-markdown in order to render the github markup into html

* Added video support on Callout component

* Fixed CallOut component with videos

* Added status control in Neuron component when the device is wireless

* Added new IconWarning to the icon library

* Refactor fw flashing view by taking out the state machines

Signed-off-by: Alejandro Parcet <[email protected]>

* Added external state machine to govern flow

Signed-off-by: Alejandro Parcet <[email protected]>

* Remve Firmware modules folder

* Refactored Firmware modules folder

Signed-off-by: Alejandro Parcet <[email protected]>

* Added new firmware folder files

Signed-off-by: Alejandro Parcet <[email protected]>

* Fixed state machine interaction with FUP

Signed-off-by: Alejandro Parcet <[email protected]>

* Added new modules to firmware folder

* Added FirmwareErrorPanel module to Firmware modules folder

* Added new FirmwareErrorPanel to the modules folder

* Added support for extra machines

Signed-off-by: Alejandro Parcet <[email protected]>

* Merged adding flashdevice file

* Changed SM on start update panel to the final one

Signed-off-by: Alejandro Parcet <[email protected]>

* Added new videos folder to the repository

* Added new module with Defy support for the new update flashing procedure

* Finished second block route for Raise flashing process

Signed-off-by: Alejandro Parcet <[email protected]>

* Reordered DeviceChecksSM functions to follow process steps

Signed-off-by: Alejandro Parcet <[email protected]>

* Added the Defy representation in the Firmware update process

* Enabled event listener for ESC keypress

Signed-off-by: Alejandro Parcet <[email protected]>

* Created flashing script for RaiseKB

Signed-off-by: Alejandro Parcet <[email protected]>

* Fix static variables on the firmware update process modules

* addded width limit to context element

Signed-off-by: AlexDygma <[email protected]>

* Transform FirmwareStartPanel into FirmwareUpdateProcess module

* Added new component to represent the status using milestones

* Fixed flashing process for Raise keyboard

Signed-off-by: Alejandro Parcet <[email protected]>

* Callback for precentage increments included

Signed-off-by: Alejandro Parcet <[email protected]>

* Fix progressbar on firmware update progress

* Added progress control for flashDevice SM

Signed-off-by: Alejandro Parcet <[email protected]>

* Fixed hardcoded values for the keyboard name and type on firmware update modules

* Changed origin of macro memory limit, now it comes from FW

Signed-off-by: Alejandro Parcet <[email protected]>

* Refactored Octokit function

Signed-off-by: Alejandro Parcet <[email protected]>

* Refactored Navigation menu to use Octokit when version checking

Signed-off-by: Alejandro Parcet <[email protected]>

* Added allowBeta control to remove/enable the superkeys beta form the FW list

Signed-off-by: Alejandro Parcet <[email protected]>

* Added allowBeta context to firmware acquisition process

Signed-off-by: Alejandro Parcet <[email protected]>

* Fixed state error in allowBetas on preferences screen

Signed-off-by: Alejandro Parcet <[email protected]>

* Fixed navigation between firmware flashing screens

Signed-off-by: Alejandro Parcet <[email protected]>

* Added granularity to flashDevice contextblock

Signed-off-by: Alejandro Parcet <[email protected]>

* Change the color scheme on the progress bar component

* Adjusted flashing process to follow representing steps

Signed-off-by: Alejandro Parcet <[email protected]>

* Solved async await call error in backup saving

Signed-off-by: Alejandro Parcet <[email protected]>

* Fixed the progressBar component according the real flashing update process

* Fixed flashing procedure recovery process

Signed-off-by: Alejandro Parcet <[email protected]>

* Fixed progress bar control & flashing states

Signed-off-by: Alejandro Parcet <[email protected]>

* Fixed Beta&NonBeta fw checks

Signed-off-by: Alejandro Parcet <[email protected]>

* Fixed flash update count in arduino-flasher routine

Signed-off-by: Alejandro Parcet <[email protected]>

* Added reroute to onError screen when no connection

Signed-off-by: Alejandro Parcet <[email protected]>

* Added new caclulations for the progress bar

* Remove log info on StepsProgressBar component

* Solved bootloader flashing steps for raise

Signed-off-by: Alejandro Parcet <[email protected]>

* Added new indicators when an error occour on Firmware update

* Added new visual indicators on the firmware update process

* Added CircleLoader component to ilustrate the actual status on firmware update process

* Fixed the light theme on Firmware update modules

* Fixed colors tones on light version on Firmware update module

* Fixed spaces between buttons on firmware update process

* Added i18n suppport on the Firmware update process module

* Added new Loader component

* Added new parameters to the Loader component

* Fixed animation when the Loader is paused

* Added new handle fucntion on firmware update process

* Remove on screen all log messages and object on Firmware update process

* Added new way to show on screen  the firmware donwload process

* Added new icon and component to show the user the firmware steps that is ready and falling during the update process

* Added state update suport

Signed-off-by: Alejandro Parcet <[email protected]>

* Improved flashing procedures and removed old backupLog

Signed-off-by: Alejandro Parcet <[email protected]>

* Changed dygma wireless hardware definitions to support new function calls

Signed-off-by: Alejandro Parcet <[email protected]>

* Removed main status from ALT layout and fixed sideFlasher logic

Signed-off-by: Alejandro Parcet <[email protected]>

* Added stages to the DeviceChecks machine

Signed-off-by: Alejandro Parcet <[email protected]>

* Added stages to the FlashDevice machine

Signed-off-by: Alejandro Parcet <[email protected]>

* Fix the way that error are handle when there is not internet connection on firmware update process

* Added resetting steps to flashDevice

Signed-off-by: Alejandro Parcet <[email protected]>

* Solved Raise LED mode when exiting flashing process

Signed-off-by: Alejandro Parcet <[email protected]>

* Fixed reconnect error with Defy Wired

Signed-off-by: Alejandro Parcet <[email protected]>

* Changed stateblock numbers for Defy flashing procedure

Signed-off-by: Alejandro Parcet <[email protected]>

* Merge same button actioninto one in firmware update process

* Added independent calculus for Defy of the global progress indicator

Signed-off-by: Alejandro Parcet <[email protected]>

* Make the state machine jump the checks for Raise when all is good

Signed-off-by: Alejandro Parcet <[email protected]>

* Fixed visualization of checks for Defy keyboard

Signed-off-by: Alejandro Parcet <[email protected]>

* Added new component to indicate the Defy updating status

* Added new icons to the Defy status indicator on firmware update process

* Refactored states visualization code

Signed-off-by: Alejandro Parcet <[email protected]>

* Solved Guard issue when var has a value that validates it

Signed-off-by: Alejandro Parcet <[email protected]>

* Fixed behaviour of data comming from focus

Signed-off-by: Alejandro Parcet <[email protected]>

* Added button behaviour for check control in device checks

Signed-off-by: Alejandro Parcet <[email protected]>

* Fixed conditions that show retry button

Signed-off-by: Alejandro Parcet <[email protected]>

* Cleanup of DeviceChecks

Signed-off-by: Alejandro Parcet <[email protected]>

* Added webpack rule for gitignore

Signed-off-by: Alejandro Parcet <[email protected]>

* Fixing progress bar texts & update

Signed-off-by: Alejandro Parcet <[email protected]>

* Added new indicators in Firmware update process when is a Defy connected

* Added new videos on Firmware update process as a placeholder for Defy

* Fixed videos on Firmware update process

* Added new colors scheme to the light theme on Firmware update process

* Added new assets in light mode to supports the Defy wireless flashing procedure

* Added skip wait for esc when left side is on BL

Signed-off-by: Alejandro Parcet <[email protected]>

* Fixed Beta button behaviour when flashing

Signed-off-by: Alejandro Parcet <[email protected]>

* Fixed Superkeys screen not activating for Defy because it was lookign for Beta version of the FW

Signed-off-by: Alejandro Parcet <[email protected]>

* Fixed errors when repairing with keyboard to restore layers

Signed-off-by: Alejandro Parcet <[email protected]>

* Fixed module positon on Firmware update view

* Added new warning message when the left side is on Bootloader mode

* Added i18n supports in the flashing procedure

---------

Signed-off-by: AlexDygma <[email protected]>
Signed-off-by: Alejandro Parcet <[email protected]>
Co-authored-by: Thiago Hernandez <[email protected]>

* Added new components to represent different battery statuses

* Added support to light and dark theme on PileIndicator component

* Fixed default layer loading when onlyCustom is selected (#448)

Signed-off-by: Alejandro Parcet <[email protected]>

* Fixed virtual keyboards lacking macros.memory instruction and refactored them (#449)

Signed-off-by: Alejandro Parcet <[email protected]>

* Fixed the overlay content position when the battery indicator is visible

* feat: added UG slider to control brightness (#450)

Signed-off-by: Alejandro Parcet <[email protected]>

* Added toggle button to enable/disable Battery saving mode

* fix: sides now flash without instabilities (#452)

Signed-off-by: Alejandro Parcet <[email protected]>

* Bump semver from 7.5.1 to 7.5.2 (#451)

Bumps [semver](https://github.com/npm/node-semver) from 7.5.1 to 7.5.2.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/main/CHANGELOG.md)
- [Commits](npm/node-semver@v7.5.1...v7.5.2)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Added new way to show the battery indicator

* adjusted delays in flashing procedure to mitigate errors

Signed-off-by: AlexDygma <[email protected]>

* fix: tabIdex was missing for discard/save buttons (#453)

Signed-off-by: Alejandro Parcet <[email protected]>

* Added battery settings module

* Added new fields on Battery settings module

* Moved focus interaction from preferences to wireless

Signed-off-by: Alejandro Parcet <[email protected]>

* Removed commented focus API functions from preferences

Signed-off-by: Alejandro Parcet <[email protected]>

* Added context manipulation to wireless view

Signed-off-by: Alejandro Parcet <[email protected]>

* Fixed Battery setting module position

* Added content for the RF preferences card

* Fixed outline gradient button colors

* Added Icon Signal to the Icons library

* Adjusted the columns in Wireless view

* Removed saving mode toggle from Battery indicator

* Enabled wireless view communications with the keyboard

Signed-off-by: Alejandro Parcet <[email protected]>

* feat: Added wireless features to Defy (#454)

Signed-off-by: Alejandro Parcet <[email protected]>

* chore: removed default verbose mode for FocusAPI

Signed-off-by: Alejandro Parcet <[email protected]>

* chore: pushed version and cleaned battery status logic

Signed-off-by: Alejandro Parcet <[email protected]>

* Fix bugs120 (#455)

* Fixed colors on wireless settings view in light mode

* Change the max-height to trigger the collpased main menu

* Refactoring Navigation menu in order to reduce CSS complexity

* fix: battery status reads did not stop when flashing

Signed-off-by: Alejandro Parcet <[email protected]>

* chore: clean aftermarth of FWUpdate and fix functional components

Signed-off-by: Alejandro Parcet <[email protected]>

* Added differents color indicator in the battery indicator

* fix: Fixed keyboardSelect enumerator only showing first element

Signed-off-by: Alejandro Parcet <[email protected]>

* Create unique id on the svg that renders a battery level on DefyBatteryIndicator

* Fixing BatteryStatus component missing semicolumn

* fix: Solved connectivity issues when revisiting keyboard select view

Signed-off-by: Alejandro Parcet <[email protected]>

* Added new component to show the saving mode status

* fix: Added 2s timeout to help slow computers to cope with disconnect

Signed-off-by: Alejandro Parcet <[email protected]>

* Fixed the fonts and paddings in tooltips

* fix: Added check to avoid error when reading bootloader property

Signed-off-by: Alejandro Parcet <[email protected]>

* fix: Added flash sides check to avoid reflashing when there is no need

Signed-off-by: Alejandro Parcet <[email protected]>

* Added styles to represent the battery charging

* Fix: Text for transparent button description was wrong

Signed-off-by: Alejandro Parcet <[email protected]>

* Fix: replaced regular button element from div to button and fixed it with transp-bg

Signed-off-by: Alejandro Parcet <[email protected]>

---------

Signed-off-by: Alejandro Parcet <[email protected]>
Co-authored-by: Thiago Hernandez <[email protected]>

* Fix: solved virtual keyboard access to kb selection menu

Signed-off-by: Alejandro Parcet <[email protected]>

* chore: cleaned logs

Signed-off-by: Alejandro Parcet <[email protected]>

* Add battery indicator (#446)

* Fixed colors on wireless settings view in light mode

* Change the max-height to trigger the collpased main menu

* Refactoring Navigation menu in order to reduce CSS complexity

* fix: battery status reads did not stop when flashing

Signed-off-by: Alejandro Parcet <[email protected]>

* chore: clean aftermarth of FWUpdate and fix functional components

Signed-off-by: Alejandro Parcet <[email protected]>

* Added differents color indicator in the battery indicator

* fix: Fixed keyboardSelect enumerator only showing first element

Signed-off-by: Alejandro Parcet <[email protected]>

* Create unique id on the svg that renders a battery level on DefyBatteryIndicator

* Fixing BatteryStatus component missing semicolumn

* fix: Solved connectivity issues when revisiting keyboard select view

Signed-off-by: Alejandro Parcet <[email protected]>

* Added new component to show the saving mode status

* Fixed the fonts and paddings in tooltips

* Added styles to represent the battery charging

* Added i18n support in Firmware update

* Improve videos quality on firmware update process when a Dey is connected

* Fixed Layout Editor in 4k screens

---------

Signed-off-by: Alejandro Parcet <[email protected]>
Co-authored-by: Thiago Hernandez <[email protected]>

* Fixing focus issue, not working yet (#457)

* Fixing focus issue, not working yet

Signed-off-by: AlexDygma <[email protected]>

* fix: solved connection issue by re-listing available ports

Signed-off-by: AlexDygma <[email protected]>

---------

Signed-off-by: AlexDygma <[email protected]>

* chore: upgrade bazecor version

Signed-off-by: Alejandro Parcet <[email protected]>

* Rebase of Electron-builder to Electron-forge (#458)

* refactor: merging blacksmith into development

* fix: fixing the merge

* fix(component): initial changes to fix selectKeyboard view

After the refactor the selectKeyboard view was broken due to the quantity of changes that it had in
both branches, we sticked with the functional component and are aplying changes to it so we can fix
it.

* fix(forge config): modify dev content security policy so we can query ok to Github

* fix(select keyboard): fix disconnect and connect to keyboard

* fix(neuron names did not show in selection screen): neuron names did not show in selection screen

* ci(release yml file): we do not run anymore release workflow on blacksmith branch

* ci(stating.yml): add Staging workflow

Add Staging workflow to Github so we can almost the same as in the release but on development branch

* refactor(app.jsx): refactored App.jsx file to follow lint conventions

* refactor(app): uploaded new App.jsx file

* fix(layouteditor): fixed virtual keyboard access to Bazecor

* fix(selectkeyboard): fixed error when going to select keyboard when using virtual

* fix: wrong behaviours of Bazecor with virtual Defy's

* fix: solved battery status representation and refactored some files

---------

Co-authored-by: Javier Guzman <[email protected]>

* Add battery indicator (#459)

* Fixed colors on wireless settings view in light mode

* Change the max-height to trigger the collpased main menu

* Refactoring Navigation menu in order to reduce CSS complexity

* fix: battery status reads did not stop when flashing

Signed-off-by: Alejandro Parcet <[email protected]>

* chore: clean aftermarth of FWUpdate and fix functional components

Signed-off-by: Alejandro Parcet <[email protected]>

* Added differents color indicator in the battery indicator

* fix: Fixed keyboardSelect enumerator only showing first element

Signed-off-by: Alejandro Parcet <[email protected]>

* Create unique id on the svg that renders a battery level on DefyBatteryIndicator

* Fixing BatteryStatus component missing semicolumn

* fix: Solved connectivity issues when revisiting keyboard select view

Signed-off-by: Alejandro Parcet <[email protected]>

* Added new component to show the saving mode status

* Fixed the fonts and paddings in tooltips

* Added styles to represent the battery charging

* Added i18n support in Firmware update

* Improve videos quality on firmware update process when a Dey is connected

* Fixed Layout Editor in 4k screens

* Added the Charging done status in the PileIndicator component

* Added the new Battery status when is not posible read battery levels

* Added the Battery disconnected status in the PileIndicator component

* Added a fatal error  battery status in PileIndicator component

* Added charging done status to DefyBatteryIndicator component

* Added the fault status in the DefyBatteryIndicator component

* Adding battery disconnected in DefyBatteryIndicator

* Added Battery status representation when the battery is disconnected

* Removed isCharging variable in order to reduce component complexity

* fix: fixed calls to keyboard to retrieve battery status

The calls for the battery status of the Defy were not being parsed correctly, as they are numbers
and where being received as a string

---------

Signed-off-by: Alejandro Parcet <[email protected]>
Co-authored-by: Thiago Hernandez <[email protected]>

* Fix virtual interactions (#460)

* fix: virtual keyboard interactions now work as expected

* fix: fixed several errors with FlashDevice & BatteryStatus

* fix(navigationmenu.tsx): navigationMenu compilation errors repairs

* fix: solved linter and compilation errors for TSX files

* Batter indicator fix (#461)

* fix: fixed the sidebar menu applying the right size in different screen sizes

* fix: fixed the battery status when the battery is already fully charged

---------

Co-authored-by: Thiago Hernandez <[email protected]>

* fix: solved battery saving mode state retrieval issues

Data nature changed, in the previous FW the data was "true"/"false" strings, but now is 0:1
integers, that change breaks data treatment and needs to be compensated.

* fix(app jsx): fix warning about props

There was a warning about props on app jsx component

* fix(firmware image help): remove play video listener when component is unmount

* fix(navigation menu file): fix timeout on navigation menu

* fix: fixed timeout errors when calling serialport commands

* chore(up version): up version

up version

* fix: Fixed windows11 serialport detection issue and listdrives issue

Signed-off-by: AlexDygma <[email protected]>

* chore: solve linter errors and warnins

* fix: using usb event close to send a focus.close to the port handler

This should solve the unexpected disconnections and clean the memory when needed the most

* fix: added protection to close only if the unplugged device is the one connected

* fix: added delay after close to prevent race conditions

* Fix usb serial UX experience (#469)

* fix(usb): replaced python expression with JS

* fix(usb): uSB library wasn't treating correctly disconnection events, now they are fixed

* fix: solved connectivity issues in selectkeyboard view

* chore: changed name of NeuronConnection

* fix: added control in connected device for visual indicator

* fix: connected icon was not assigned properly in select keyboard

* fix: keyboard list in selectkeyboard view was not updating when selected keyboard disconnected

* fix: connected device never showed as selected when returning to selectkeyboard view

* feat: add Bazecor version in a visible place so that users and customer support can check it (#470)

* feat: added check to know if it's the first hardware Defy that's being plugged in bazecor (#471)

* Include Playwright, move some videos and some fixes (#464)

We can now make a build without signing
E2E draft tests using playwright
Move videos to static folder within renderer
Fix error when cancelling flashing
Initial not very clever USB tests to check how Electron behaves on testing env.

* Add Korean keyboard layout support (#466)

Add Korean keyboard layout, it is almost the same as US ANSI

* refactor: show Enter instead of Intro (#467)

re #298

* Signing windows (#472)

Sign Windows executable on CI

* Added new wireless settings for Defy keyboards (#473)

* feat: mOdules to manage the battery energy consumption

* Added wireless button ids in keymap DB

* fix: wireless buttons now have descriptions that fit

* feat: added a new module that show the type of the connectin inside the wireless view

* style: new modules in Wireless view where the user can see the type of the device connection

* feat: transformed wireless to TSX

* style: added all the components to render the elements in order to allow users manage the battery

* fix: fixed the Advanced battery setting in light mode

* chore(wireless): solved TS erros and created typedefs for TS

* chore(rfsettings): changed extension to tsx

* chore: repaired RegularButton style property, switched to styles

* fix(wireless): typo in type for RFsettings props

* chore(connectionstatus): revisited types and cleaned code

* fix: solved errors with props and button invocation

* fix: changed function call on onChange to make it work

* chore(wireless): added suppport to i18n in Advanced battery settings"

* chore(badge): change the file name in order to support typescript

* chore(advancedbatterysettings): fixed responsive issues in battery advanced settings

* chore: update the i18n file

* fix: error when updating the keyboard list if unplugged the connected keyboard

* fix: added lacking margin in bazecor version

* fix: rule to avoid setting names of previous keyboard when no other is present applied to raise

* fix: added default name when creating a new Neuron register

* fix: crash when no neurons are left in the neuron list

* fix: battery data petitions where affecting connection of the device

---------

Co-authored-by: Thiago Hernandez <[email protected]>

* chore: upped version, fixed property declaration, changed menu setting sequence

* fix:(TSX) The AdvancedBatterySettingsModal.tsx file was invoking a library that wasnt compatible with TS

Signed-off-by: AlexDygma <[email protected]>

* Add EurKEY (alphas) language support

Signed-off-by: Johan Eklund <[email protected]>

* Update naming convention

Signed-off-by: Johan Eklund <[email protected]>

* Add language names

Signed-off-by: Johan Eklund <[email protected]>

* Lower- and uppercase alpha (with and without altgr) and symbols

Signed-off-by: Johan Eklund <[email protected]>

* Add version to EurKEY language name

Signed-off-by: Johan Eklund <[email protected]>

* Remove duplicated keyboard layouts

Signed-off-by: Johan Eklund <[email protected]>

* Layout editor with wireless buttons (#474)

* feat: mOdules to manage the battery energy consumption

* Added wireless button ids in keymap DB

* fix: wireless buttons now have descriptions that fit

* feat: added a new module that show the type of the connectin inside the wireless view

* style: new modules in Wireless view where the user can see the type of the device connection

* feat: transformed wireless to TSX

* style: added all the components to render the elements in order to allow users manage the battery

* fix: fixed the Advanced battery setting in light mode

* chore(wireless): solved TS erros and created typedefs for TS

* chore(rfsettings): changed extension to tsx

* chore: repaired RegularButton style property, switched to styles

* fix(wireless): typo in type for RFsettings props

* chore(connectionstatus): revisited types and cleaned code

* fix: solved errors with props and button invocation

* fix: changed function call on onChange to make it work

* chore(wireless): added suppport to i18n in Advanced battery settings"

* chore(badge): change the file name in order to support typescript

* chore(advancedbatterysettings): fixed responsive issues in battery advanced settings

* chore: update the i18n file

* feat(layouteditor): added a new buttons to manage the wireless and battery in Layout Editor

* chore(standardview): added new buttons in standard view when the device connected is wireless

* chore(layoutefitor): added a loader element in Layout Editor

* chore(layouteditor): adjusted the buttons position in single view

* fix: solved Typescript problems in several new files

* chore: changed texts for buttons and disabled advanced settings

* fix: moved wireless buttons descriptions to a proper place

---------

Co-authored-by: Thiago Hernandez <[email protected]>

* Re-align with Keypicker.js due to changes in #474 (#475)

Signed-off-by: Johan Eklund <[email protected]>
Co-authored-by: AlexDygma <[email protected]>

* fix: iPC handlers where being set twice, now they del previous handler when creating new one (#476)

* chore(deps): bump word-wrap from 1.2.3 to 1.2.4 (#468)

Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](jonschlinkert/word-wrap@1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix: macro names could be searched upon undefined macros (#477)

* fix: bootloader enumeration of Raise neuron tried to read ChipID (#478)

* fix: changed filter to take into account proper beta versioning name (#483)

* Dual function keys should have lowercase a-z (#479)

Signed-off-by: Johan Eklund <[email protected]>

* chore: pushed version to 1.3.2 (#484)

* Fix mac universal bundle (#482)

* fix: added Mac universal flag to compilation process

* fix: added stagign step to the fix

* fix: add x64, arm64 and universal archs to mac target"

* fix: add osx universal option to forge config

* fix: universal build actually being built

* fix: add icon url to windows executable

* fix: remove icon url

* fix: fix screen triggered before ready event

---------

Co-authored-by: Javier Guzman <[email protected]>

* Fix universal (#485)

* fix: added Mac universal flag to compilation process

* fix: added stagign step to the fix

* fix: add x64, arm64 and universal archs to mac target"

* fix: add osx universal option to forge config

* fix: universal build actually being built

* fix: add icon url to windows executable

* fix: remove icon url

* fix: fix screen triggered before ready event

* fix: comment list drives handler

* fix: trigger CI

* fix: enable staging workflow

* fix: revert mac universal

* fix: remove universal from CI

* fix: fix Sahira errors

* ci: staging only on development again

---------

Co-authored-by: Alejandro Parcet <[email protected]>

* fix: removed await because it was blocking the startup of Bazecor

* revert: remove async from main load process

* refactor: move removeIPCs to index

* fix: remove universal from make-dev

* fix: remove properly usb when closing window

* Start crafting Bépo keyboard picker

* fix: added udev rules for Dygma USB VID number

* First round for bépo

* Finish Bépo keyboard picker.

* Fix default bépo import

* Add AltGr on numbers and a few punctuation

* Move to punctuation some chars.

* fix: add cross-env so env. variables can be used in different OSs (#488)

* fix: add cross-env so env. variables can be used in different OSs

* fix: add signing to commitizen

* fix: change commitizen flag

* fix: removing universal from workflows again?

* fix: change commitizen sign command

* fix: use correct sign command for comittizen

* Add altGrShift, but see no effects

* build: generate dmg for intel and arm individually (#490)

* fix(buttons): added new colors to improve the accessibility in buttons

* chore(button): added new button variation on button components

* chore(neuronstatus): changed the way the connected device is highlighted in keyboard selection

* chore: added supports to typwscript using styled-components

* chore: fixed typescript errors in NeuronStatus component

* chore: fixed NeuronStatus typescript erros

* chore(neuronstatus): replace the js file extention to tsx in NeuronStatus component

* chore: fix typescript errors in NeuronStatus component"

* chore: changed the file structured in NeuronStatus component

* chore: added new colors cue to the selected device

* chore: changed to FirmwareImageHelp to typescript

* chore: changed the files structured in Firmware update

* chore: added new visual cues to firmware process update process

* Do not render none standard Bépo chars.

* chore: fixed animation on Raise firmware update process

* chore: changed file structure to achieve smooth animation

* Changed Defy update status on firmware update

* chore(firmwaredefyupdatingstatus): converted FirmwareDefyUpdatingStatus to typescript

* chore: redo deleted file

* chore: renamed FirmwareDefyFlahingStatus

* chore: deleted FirmwareDefyFlashingStatus

* chore(batterystatussside): renamed BatteryStatusSide file

* chore: converted BatteryStatusSide to typescript

* chore: rename DefyBatteryIndicator file

* chore: converted DefyBatteryIndicator to typescript

* chore: changed texts in Raise flashing procedure

n

* chore: changed DefyBatteryIndicatorLeft file extension

* chore: added new styles to DefyBatteryIndicator

* chore: change texts in flashing procedure

* fix: improve mask values in battery svgs

* chore: removed test messsage on BatterySettings

* chore: changed file extension

* chore(defybatteryindicatorright): converted file to typescript

* chore: removed cycle dependency

* chore: changed file extension

* chore: changed file extension

* chore: changed file extension

* chore: converted file to typescript

* chore: changed file extension

* chore: converted files to typescript

* chore: added new styles to BatteryIndicator

* build: bump uihook version to 1.5.2

486

* chore: removed comments in BatteryStatus modal

* Remove snowman and unused code.

* Update syntax.

* Remove other symbols not part of Bépo.

* Remove warning.

* chore: added media to Callout in SuperKyes view

* chore: added media in Callouts in Standard View mode

n

* chore: added new styles and loading statuses

* feat: added a product info when export single layer

* fix: fixed defy-t3 key shape on Defy keyboard representation

* fix: changed the way that different battery status is rendered

* fix: changed the way the battery status is render in sidebarmenu

* chore: changed the way to set visual cues in BattereryIndicator

* fix(buttons): fixed buttons focus statuses

* chore: fixed focus status in buttons

* fix: fix responsive issues in ordinary keyboard

* chore: fixed battery status when the charging is done

* chore: fix the way we call the battery level

* chore(logoloader): renamed LogoLoader file

* chore(logoloader): logoLoader converted to typescript file

* fix(logoloadercentered): fixed type on LogoLoaderCentered component

* feat: add British layout, so Defy shows ISO English (#491)

* feat: add British layout, so Defy shows ISO English

* chore: added new flags images to the library

* fix(recormacroeditormodal): fixed the button width in Macro Editor

* fix(recordmacromodal): fixed the autocus after the user start a record a macro

* fix(firmwareerrorpanel): removed loading status in FirmwareErrorPanel component

* Improve udevs (#495)

* fix: rewrite udevs if they do not have latest expected rules

* fix: add quotes to echo command for udevs

* Improve udevs (#496)

* fix: rewrite udevs if they do not have latest expected rules

* fix: add quotes to echo command for udevs

* refactor: add console log

* fix: fix always overwriting udev file

* Remove bluetooth status (#499)

* fix: rewrite udevs if they do not have latest expected rules

* fix: add quotes to echo command for udevs

* refactor: add console log

* fix: fix always overwriting udev file

* refactor: refactor of HW codes and remove bluetooth status mode

* fix: removing of ble devices when upgrade (#498)

Right now the upgrade was removing all the memory of the N2
just added a few lines to just remove the hex content + 1024 bytes

Signed-off-by: noteolvides <[email protected]>

* Revert "fix: removing of ble devices when upgrade (#498)" (#502)

This reverts commit 8e17024.

* chore(removed status connection from wireless panel): removed status connection from wireless panel

* Cleanup and maintenance (#503)

* chore: removed unused file

* chore: solved lint issues with index.tsx file

* chore: cleanup of old references, using alias instead

* docs: improved documentation about FOCUS.API LED commands

* chore: changed documentation code representaiton to a more legible version"

* chore: changed extension of welcome.js to tsx

* chore: added changes to fix typescript support on welcome.tsx

* chore: fixed FWUpdate imports

* chore: used Typescript for FirwmareUpdate view

* chore: changed format of advBattSettingsModal to tsx

* fix: resolved erros with advBattery settings

* solved data issues with latest FW

* fix: wireless features were using wrong focus access methods

* fix: added types for react-rangeslider

* fix: added definition for typescript types of rangeslider

* fix: solved firmwareUpdate tsx issues due to wrong definitions

* feat: added ESC key injection before flashing procedure

* fix: nested macro selector now shows selected nest properly

* refactor: transformed PageHeader to Typescript

* fix: solved erratas in repair

* chore: cleared erros from MacroEditor.js file

* fix: transform macroEditor to jsx format

* fix: macro editor did not replace correctly deleted macros in keymap

* fix: colorEditor was wrongly assigning UG LED (70) as BL when using auto button

* refactor: rewritten UI for delete macro replacement modal due to not being readable

---------

Signed-off-by: Alejandro Parcet <[email protected]>
Signed-off-by: AlexDygma <[email protected]>
Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Johan Eklund <[email protected]>
Signed-off-by: noteolvides <[email protected]>
Co-authored-by: Thiago Hernandez <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Javier Guzman <[email protected]>
Co-authored-by: Johan Eklund <[email protected]>
Co-authored-by: Jérémy Chatard <[email protected]>
Co-authored-by: Jérémy Chatard <[email protected]>
Co-authored-by: Gustavo Gomez Lopez De San Roman <[email protected]>
  • Loading branch information
8 people committed Sep 26, 2023
1 parent 043dfca commit 0532602
Show file tree
Hide file tree
Showing 446 changed files with 41,377 additions and 28,122 deletions.
53 changes: 28 additions & 25 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,28 +1,31 @@
{
"presets": [
[
"@babel/preset-env",
{
"debug": false,
"targets": {
"node": "current",
"electron": "3.0"
}
}
"presets": [
[
"@babel/preset-env",
{
"useBuiltIns": "usage",
"corejs": 3
}
],
[
"@babel/preset-react",
{
"debug": false,
"targets": {
"node": "current",
"electron": "current"
}
}
],
[
"@babel/preset-typescript"
]
],
[
"@babel/preset-react",
{
"debug": false,
"targets": {
"node": "current",
"electron": "3.0"
}
}
"plugins": [
"@babel/plugin-transform-runtime",
"@babel/plugin-transform-async-to-generator",
"@babel/plugin-transform-arrow-functions",
"@babel/plugin-proposal-object-rest-spread",
"@babel/plugin-proposal-class-properties"
]
],
"plugins": [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-syntax-dynamic-import"
]
}
}
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# https://editorconfig.org
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
max_line_length = 130
trim_trailing_whitespace = true
97 changes: 46 additions & 51 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,62 +1,57 @@
module.exports = {
env: {
browser: true,
es6: true,
node: true,
},
plugins: ["import", "react", "prettier"],
extends: [
"prettier",
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/recommended",
"plugin:import/electron",
"plugin:import/typescript",
"plugin:react/recommended",
"plugin:prettier/recommended",
"plugin:react-hooks/recommended"
"plugin:react-hooks/recommended",
"airbnb",
"airbnb/hooks",
"airbnb-typescript",
"prettier",
],
plugins: ["prettier"],
parser: "@babel/eslint-parser",
parserOptions: {
ecmaVersion: 2017,
sourceType: "module"
},
env: {
es6: true,
browser: true,
node: true
},
globals: {
__static: true
},
rules: {
"no-console": 0,
"react/prop-types": 0,
"no-unused-vars": 0, // disabled due to false positives
"no-async-promise-executor": 0, // grandfathered in during eslint update; would be nice to remove
"no-prototype-builtins": 0, // grandfathered in during eslint update; would be nice to remove
// React hook settings for future use if required (helpful during some debug sessions)
// "react-hooks/rules-of-hooks": "error",
// "react-hooks/exhaustive-deps": "warn",
// Added to allow an update to prettier 2.x.x without actually making anything pretty
"prettier/prettier": [
"error",
{
trailingComma: "none",
arrowParens: "avoid",
tabWidth: 2,
endOfLine: "auto",
printWidth: 130
}
]
parser: "@typescript-eslint/parser",
project: "./tsconfig.json",
tsconfigRootDir: __dirname,
},
settings: {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"],
},
react: {
pragma: "React", // Pragma to use, default to "React"
version: "detect" // React version. "detect" automatically picks the version you have installed.
// You can also use `16.0`, `16.3`, etc, if you want to override the detected value.
version: "detect",
},
propWrapperFunctions: [
// The names of any function used to wrap propTypes, e.g. `forbidExtraProps`. If this isn't set, any propTypes wrapped in a function will be skipped.
"forbidExtraProps",
{ property: "freeze", object: "Object" },
{ property: "myFavoriteWrapper" }
],
linkComponents: [
// Components used as alternatives to <a> for linking, eg. <Link to={ url } />
"Hyperlink",
{ name: "Link", linkAttribute: "to" }
]
}
"import/resolver": {
typescript: {
project: ".",
},
alias: {
map: [
["@Assets", "./src/static"],
["@Renderer", "./src/renderer"],
["@Types", "./src/renderer/types"],
],
extensions: [".ts", ".js", ".jsx", ".tsx", ".json"],
},
},
},
rules: {
"prettier/prettier": ["error"],
"import/no-extraneous-dependencies": ["error", { devDependencies: true }],
"no-underscore-dangle": "off", // we should not use _ in variables in any case
"react/require-default-props": "off",
"react/function-component-definition": "off",
"import/prefer-default-export": "off",
},
ignorePatterns: ["/*", "!/src"], // we only care about linting src folder
};
69 changes: 0 additions & 69 deletions .github/workflows/build.yaml

This file was deleted.

50 changes: 50 additions & 0 deletions .github/workflows/e2e_testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: E2E Tests
on:
push:
branches:
- "*"
- "!main"
- "!development"
pull_request:
branches:
- "*"
- "!main"
- "!development"
jobs:
e2e_test:
timeout-minutes: 60
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
include:
- os: macos-12
- os: windows-2019
- os: ubuntu-20.04

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm install -g yarn
- if: runner.os == 'Linux'
run: sudo apt update && sudo apt install libudev-dev
- name: Cache node_modules
id: cache-node-modules
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-${{ hashFiles('package.json', 'yarn.lock') }}
- name: Install node_modules
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile --network-timeout 300000 # sometimes yarn takes time, therefore, we increase the timeout
- name: Run Playwright tests
run: yarn playwright test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
Loading

0 comments on commit 0532602

Please sign in to comment.