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

PR for app release #812

Merged
merged 57 commits into from
Feb 6, 2025
Merged

PR for app release #812

merged 57 commits into from
Feb 6, 2025

Conversation

blckmn
Copy link
Member

@blckmn blckmn commented Feb 6, 2025

This pull request includes several changes to improve the project's configuration and documentation. The most important changes include the addition of various files to .eslintignore and .prettierignore, the setup of ESLint and Prettier configurations, and updates to the README.md to provide clearer instructions and information.

Configuration improvements:

  • .eslintignore: Added various file types and directories to be ignored by ESLint.
  • .eslintrc.js: Set up ESLint configuration with parser options, environment settings, and rules.
  • .lintstagedrc: Configured lint-staged to format and lint files before committing.
  • .prettierignore: Added various directories and files to be ignored by Prettier.

Documentation updates:

  • README.md: Updated sections to provide clearer instructions for accessing stable and unstable versions, installing the app, and common problems. [1] [2] [3] [4]

chmelevskij and others added 30 commits May 4, 2024 08:43
…E Web version. (#726)

* added minimum and maximum curves values

* resolved issue: rewriting zero value input of min max values to charts config dialog panel

* add: restore default min max values for curve by mouse click at clear input field on Chart setup dialog box

* change action to restore default minmax values at double mouse click to enabled input field

* tab symbols are changed to 4 space in file graph_config_dialog.js

* added helper function to convert values units

* added function FlightLogFieldPresenter.ConvertFieldValue() to convert parameters from log units to chart and back

* added convertation values to chart setup dialog box

* Convertation of MinMax values optimization. There were before: MinMax values are loaded and saved in logfile units. There are now: .... in friendly chart units

* resolved issue: restore wrong default MinMax values when  new curve is added (before save)

* add use $('select.form-control option:selected', elem).val() as fields name when field.name is undefined only

* deleted undesired trailing spaces

* added: show context menu by right mouse click at minmax control elements in setup dialog box

* at context menu are added functions to set all minmax to default and set all curves to one scale

* added round of min max values to 1 digit in the output

* added function SetSelectedCurveMinMaxToDefault to set selected curves min-max values to default

* add using associative list instead of array to store curves data

* added function FitSelectedCurveToOneScaleWithSecond to fit selected curve at one scale with second

* add functions to place curves around zero axis

* Labels of context menu are corrected

* code style improvement

* added getWindowCenterTime function to FlightLogGrapher

* added function getMinMaxForFieldDuringTimeInterval to FlightLog

* added reference to FlightLogGrapher in GraphConfigurationDialog

* added function SetAllMinMaxValuesToFullRangeDuringWindowTime to use in menu

* added menu action to set all curves min-max values to current local window range

* added menu action to set minmax in window full range for selected curve

* resolved issue: wrong context menu position by right mouse click. Screen mouse coords are changed to client coords

* added charts redrawing after min-max control actions

* added restore last curves setting when Cancel button pressed

* added preventDefault call before show menu

* bodies of menu handlers functions are replaced

* resolved issue: wrong min-max for new selected curves. Definition of field name is changed

* removed smoothing from min-max computing algoritm

* Min-Max input fields are set read only as default

* improve minmax compute function in flightLog

* Code placement optimization

* added: restore charts view after change when mouse click out of dialog panel

* The enabled minmax checkbox is deleted from user interface

* removed min-max enabled condition in graph module. Allways use min-max!

* deleted readonly attribute for min-max input fields

* added menu action to set all min-max to default

* added menu action to set min-max  one selected curve to default

* resolved issue of computing min-max values while all range values have negative sign

* resolved issue wrong min-max computing sometime

* added menu actions: 'Fit all curves in zero ofset at global full range', 'Fit all curves in zero offset at window full range'

* added menu action 'Apply this curves min-max to all curves'

* added parseFloat in menu actions to transform string to digit

* added menu item 'Apply this curves min-max to ...', without action till

* added menu action 'Apply this curves min-max to ...'

* optimized range of menu items

* field names submenu changed to own menu with handlers ShowFieldsWithoutSelectedCheckboxedMenu

* set checkbox type in fields name menu, added new items

* added: set min-max from selected curve to curves group, that is selected by checkboxes menu

* added menu action 'Apply this curves min-max to ...', without checkboxes till

* resolved issue of curves count definition

* removed zoom from charts config users interface, removed offset, inputRange, outputRanged from curves data

* code style improvement

* resolved outputRange issue, the zoom value is set to 100

* code style improvement

* The menu action 'Fit this curve to one scale at:' changed to 'Fit selected curves to same scale ...'. The group selection is able by using checkboxes menu

* When select 'Fit curves to same scale ...', current curve is checked by default in menu

* changed lists size definition

* changed lists size definition

* added curves zoom action to context menu

* removed unusing local variable

* added caption to checkboxed menu

* The new menu items order

* added menu.css file

* added div tags for menu items

* added menu content and click handlers

* added arrows special symbols into menu item

* added: zoom is working

* 'Selected to this one' menu action is ready

* 'Selected to one scale' menu action is ready'

* added: lock main menu when submenu is open

* added: 'Back' menu items

* resolved missing ;

* Made: zoom setup from one menu, instead of two menu before

* zoom menu improvement

* add: block outer interface while menu is opened

* improve: setting of true submenu positions

* resolved issue of zoom computing

* added: harder mouse events lock at dialog panel around the menu

* improve setting of submenu vertical position

* prevent of lock charts config dialog box after menu exit by Esc key

* the structure of code is improved

* added curves selection by centered menu action

* added Shift key accelerator for group menu actions to fast all curves selection without submenu

* Code style improvement: function declaration without var

* added Save menu for next time working

* zoom improvements: added two control buttons: 'zoom in', 'zoom out'

* The curves zoom by mouse scroll is restored

* the menu source codes are repalced to js/graph_minmax_setting_menu.js file

* Apply default MinMax values for new openning logs

* added checkboxed submenu into Save menu to select curves for save

* added Save checkbox into curves table row at GraphConfig dialog box

* The MinMax data are saved for next using if curves Save checkboxes is checked

* resolved issue of workspace saving logic

* added the left arrow symbol into submenu apply item, what close submenu

* the menu1, menu2, menu3 variables changed to main_menu, sub_menu

* changed the locking elements while menu is showed

* added Esc keydown events handler

* improved 'Selected to this one' menu action: it is posible to edit minmax values now

* resolved issue of duplicate Save menu

* added font style change while mouse click to menu item

* Changed menu captions style

* the menu item placement optimization: all auto range menu items placed into one submenu

* added menu 'This full range' with submenu

* The 'All full range' menu item improvement

* added captions into main menu

* added totalCount field into frames stat data

* added method getCurrentLogRowsCount to flightLog.js

* improved actual log rate computing

* remove the logs maximal time limit

* added menu item action 'centered one scale' into 'All full range'submenu

* menu view style improvement

* improve of computing  min-max stat data in flightLog. The I and Prame is used now

* Improve computing curves min-max values in charts setup dialog box. Added minmax computing function into flightLog and graphConfig

* MinMax curves control menu is added into VITE WEB version

* The Shift key action in the menu is reverted

* The menu items order is changed

* The single and group Zoom menu actions is improved

* The single and group 'Full range' menu action are improved

* added hidden span with right arrow into menu item which can have submenu

* added Shift key event handler to show/hide the right arrow symbol in menu items

* 'Save' table caption is renamed to 'Default'

* the workspace minmax values save strategy is changed

* 'This curves action' replaced into submenu

* code style improvement: added menu helpers function

* Zoom submenu is removed from 'This curve' submenu

* added submenu for 'This curve'-'Full range' item while Shift key is pressed

* The 'Apply' and 'Cancel' buttons are unlocked while minmax menu is open

* Code style improvement: added special function UnlockUsersInterfaceAfterWorkOfMinMaxMenu

* Is set Alt control key instead of Shift

* added extended submenu for 'Default' action while Alt-key is pressed

* added modules directive in code to use external function

* resolved issue of keyboard event handlers the Esc and Alt keys

* The integer digits are showed in MinMax menu

* The Alt action menu modifer key is changed back to Shift. The Alt is has own action in browsers

* Update src/graph_minmax_setting_menu.js

Code style improvement

Co-authored-by: Mark Haslinghuis <[email protected]>

* resolved issue the empty string names for unfull DEBUG fields

* Update src/flightlog.js

Code style improvement

Co-authored-by: Mark Haslinghuis <[email protected]>

* Update src/flightlog.js

Code style improvement

Co-authored-by: Mark Haslinghuis <[email protected]>

* Update src/flightlog.js

Code style improvement

Co-authored-by: Mark Haslinghuis <[email protected]>

* Update src/flightlog.js

Code style improvement

Co-authored-by: Mark Haslinghuis <[email protected]>

* the autocompetion is off in min-max input fields

* Return or top level Back menu items are designed like button

* added helper function for the menu control

* menu button style improved

* The Cancel button at chart setup dialog box has focus after openning this window

* Revert "the autocompetion is off in min-max input fields"

This reverts commit 269f1d5.

* Improvement: The changes of current workspace can store by Shift+S key

* The Shift-S key actions information is added to Help dialog box

* table column caption is renamed to 'Keep' instead of 'default'

* resolved issue of unworked 'As this one' extended submenu

* The 'Keep' checkbox is checked by default for new curves

* Extended group full range submenu is improve

* Extended one curve full range submenu is improved

* enabled multiple actions in 'Set zero offset' and 'Set same scale' extended submenu

* the curves expo power is set to 1 as default

* added function in graph to get marked in-out time

* added function to compute min-max curves values during marked time interval

* added action to extended full range submenu items to set minmax for marked time interval

* resolved issue in extended 'Set one scale' menu item action

* resolved issue minmax compute in marked range

* the grid field is removed from curves data

* The main menu items actions auto close main menu

* The 'Return' menu item is renamed to 'Close'

* The 'Keep' checkbox setting is removed

* min-max input fields style improvement

* resolved issue of data storage

* The charts are updated after manual changes of min-max input fields

* The all extended submenu are multy actions

* The unused menu functions are removed from source code

* The 'Default' menu actions set as default MinMax so the default Expo and Smoothing too

* Use event data for single curves menu actions

* The Workspaces file example is added into project

* The 'Close' main menu item active allways

* The short main menu has auto closed items

* workspaces-ctzsnooze.json is default workspace

* docs: update README.md for pwa flow (#731)

* docs: update README.md for pwa flow

* Update README.md

* Update README.md

---------

Co-authored-by: Mark Haslinghuis <[email protected]>

* Bump ejs from 3.1.9 to 3.1.10 (#738)

Bumps [ejs](https://github.com/mde/ejs) from 3.1.9 to 3.1.10.
- [Release notes](https://github.com/mde/ejs/releases)
- [Commits](mde/ejs@v3.1.9...v3.1.10)

---
updated-dependencies:
- dependency-name: ejs
  dependency-type: indirect
...

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

* The mouse click at curves on the legend works like toggle button (make the analyser chart as visible/unvisible)

* Remove changelog (#741)

* added charts preview after any charts configuration changes

* Charts redrawing is optimized

* PIDsumm computing condition is improved

* the menu items order is changed

* resolved issue selected curves Zoom menu actions

* Update src/graph_legend.js

Code style improvement

Co-authored-by: Mark Haslinghuis <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Mark Haslinghuis <[email protected]>
Co-authored-by: Tomas Chmelevskij <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Míguel Ángel Mulero Martínez <[email protected]>
…tup dialog box (#747)

* added group fields name extender function in graph_config.js

* The group curves selection is self extended in charts setup dialog box

* Code style improvement

* added curves auto color after extend of curves group

* added group fields auto fill after charts samples selection

* code style improvement

* the code is simplified

* Update graph_config.js

Resolve code style issue

* Update graph_config.js

Resolved semicolon issue

* Update graph_config.js

Removed unusing variable

* Update graph_config.js

Resolved code style issue

* Update graph_config_dialog.js

Resolved semicoma missing

* Update main.js

Code style improvement

* Code style improvement: the for loops are changed to for of

* Code style improvement

* Code style improvement

* resolved issue of wrong curves color draw on Chart setup dialog box

* Improve curves collor assign

* Resolved code issue
* added menu (showed by Shift+W keys) to select and restore default workspaces

* Code style improvement

Co-authored-by: Mark Haslinghuis <[email protected]>

* Code style improvement

Co-authored-by: Mark Haslinghuis <[email protected]>

* Code style improvement

Co-authored-by: Mark Haslinghuis <[email protected]>

---------

Co-authored-by: Mark Haslinghuis <[email protected]>
* removed unused files

* Default workspace function call order is changed
* resolved issue of load default workspace configuration

* The onSwitchWorkspace function call optimization

* Resolved issue: GraphConfig load error by first programm run

* resolved error of loading undefined stored graph config data by first program run

* Code style improvement

* resolved issue of wrong curves colors by first application run

* The SonarCloud issue improvement

* The SonarCloud issue improvement

* Resolved issue of color assign for combined (Gyro+PID) samples graphs
* code fragment duplicate issue resolved

* code style improvement
* improve field statistic and log rows count calculate

* SonarCloud issue improvement

* code style improvement
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](micromatch/braces@3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore: add eslint, prettier and lint staged configs

* chore: run eslint:fix

* chore: run prettier
* Update FFT_FREQ debug fields

* Update presentation

* Reset

* Recover
* rc_smoothing_rx_smoothed - WIP (this fills the existing field, but not techincally correct)

* rc_smoothing_rx_smoothed - working, but is it proper?

* rc_smoothing_rx_smoothed - this should be proper. caveat: fails to reset value null when 4.5 pre 4.5-RC1

* rc_smoothing_rx_smoothed - revert html id's

* rc_smoothing_rx_smoothed - fix id
* The bad rpm values filtering by plot spectrum chart improvement. The chunks rpm averages min-max values are used now by spectrum plot

* code style improvement

* added gap to maximal rpm axis value at spectrum chart

* code style improvement
… of data gaps in log file (#762)

* added compute of unlogged time by handling log resumd events

* added getActualLoggedTime function in FlightLog

* improve getMinTime, getMaxTime functions in FlightLog

* Improved actual log rate computing in spectrum chart

* code style improvement

* code style improvement
* The checked flight mode index is limited by 31 value to prevent show of wrong 'mirror' modes at the charts

* removed tittle 'Flight mode change' to get shorter flight modes description

* missed semicolon issue is resolved
resolved issue of getTimes flightLog methods in case of call with log index argument
Bumps [micromatch](https://github.com/micromatch/micromatch) from 4.0.5 to 4.0.8.
- [Release notes](https://github.com/micromatch/micromatch/releases)
- [Changelog](https://github.com/micromatch/micromatch/blob/master/CHANGELOG.md)
- [Commits](micromatch/micromatch@4.0.5...4.0.8)

---
updated-dependencies:
- dependency-name: micromatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* added ALTHOLD flight mode for 4.6 BF firmware

* code style improvement
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.2.6 to 5.2.14.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v5.2.14/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.2.14/packages/vite)

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

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
… fields (#773)

* added gps coords transform module gps_transform.js

* Added computed fields for coords in cartesian system

* added coords values at curves legend

* The home distance id added as computed field

* added friendly names for gps cartesian coords

* added using of gps home points altitude if it exists in log file

* gps coord names are changed

* Added example graphs for GPS Cartesian coords data

* code issues are resolved

* code issues are resolved

* code issues are resolved

* code style improvement

* Field name is improved

Co-authored-by: Mark Haslinghuis <[email protected]>

* Code style improvement

Co-authored-by: Mark Haslinghuis <[email protected]>

* Code style improvement

Co-authored-by: Mark Haslinghuis <[email protected]>

* Code style improvement

Co-authored-by: Mark Haslinghuis <[email protected]>

* Code style improvement

Co-authored-by: Mark Haslinghuis <[email protected]>

* Code style improvement

Co-authored-by: Mark Haslinghuis <[email protected]>

* Update gps_transform.js

* Code style improvement

* Code style improvement

* Code style improvement

---------

Co-authored-by: Mark Haslinghuis <[email protected]>
* added homes point azimuth computed field

* added friendly name for homes point azimuth field

* added default min max values for homes point azimuth field

* homes point azimuth field is added to example graph

* Comment is edited

Co-authored-by: Mark Haslinghuis <[email protected]>

---------

Co-authored-by: Mark Haslinghuis <[email protected]>
* rename d_min related values

* add semver checks
demvlad and others added 27 commits October 22, 2024 21:09
* The 'Convert to Csv' button is added at the spectrum analyzer chart

* The spectrum export Worker is added

* The spectrum exporter is added

* The exportSpectrumToCSV method is added into graph_spectrum

* The action handler is addedto spectrum export button

* The spectrum export button is enabled for spectrum by frequency only

* The 4 spaces tabs are replaced to 2 space tab

* unused library link is removed

* Code issues are resolved

* Code issues are resolved

* Code style improvement

* The export buttons tooltip text is changed

Co-authored-by: Mark Haslinghuis <[email protected]>

* Code style improvement

Co-authored-by: Mark Haslinghuis <[email protected]>

* Code style improvement

Co-authored-by: Mark Haslinghuis <[email protected]>

* Code style improvement

* Update index.html

---------

Co-authored-by: Mark Haslinghuis <[email protected]>
…#780)

* Added 'Import from CSW' button at the spectrum analizer chart

* Added importSpectrumFromCSV method to FlightLogAnalyser

* Added drawing imported spectrum data

* Added events handler for spectrum import button

* missing semicoma issue is resolved

* The buttons caption is changed

Co-authored-by: Mark Haslinghuis <[email protected]>

* the imported spectrum curves color is changed to blue

---------

Co-authored-by: Mark Haslinghuis <[email protected]>
* Multiple spectrums file adding and curves showing are made

* The clearImportedSpectrums method is added

* The spectrum comparison Users interface improvement

* Added 'Clear' button to remove imported cpectrums

* Spectrum comparison users interface is visile in spectrum by frequency mode only

* Spectrum comparison buttons style is improved

* missing semicoma issue is resolved
* added legend at multi-spectrum chart

* The buttons are placed in one row

* Changed buttons height

* resolved issue of wrong legend drawing code placement

* Code style improvement

Co-authored-by: Mark Haslinghuis <[email protected]>

---------

Co-authored-by: Mark Haslinghuis <[email protected]>
* Added value converter for  magADC (Compas) fields

* Field name to friendly transformers return raw source data for unknown fields
Bumps [cross-spawn](https://github.com/moxystudio/node-cross-spawn) from 7.0.3 to 7.0.6.
- [Changelog](https://github.com/moxystudio/node-cross-spawn/blob/master/CHANGELOG.md)
- [Commits](moxystudio/node-cross-spawn@v7.0.3...v7.0.6)

---
updated-dependencies:
- dependency-name: cross-spawn
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
added curves settings for axis_s log fields (for airplanes)
…ion log data (#790)

* added computing of heading[] fields from new flight attitude quatrernion fields instead of internal IMU

* removed unused variable

* resolved quaternion issue

* improve quaternion operation

* code style improvement: tab to space replacement

* Code style improvement

Co-authored-by: Mark Haslinghuis <[email protected]>

* Code style improvement

Co-authored-by: Mark Haslinghuis <[email protected]>

---------

Co-authored-by: Mark Haslinghuis <[email protected]>
* Add missing debug modes

* Also update TPA
… for BF 4.6 log files (#797)

* resolved issue of show motor_idle header field for BF 4.6

* resolved issue of Start inc header field for BF 4.6
* Added ATTITUDE log disabled flag for BF gte 4.6

* The ATTITUDE log disabled flag code refactoring

* Code style improvement

Co-authored-by: nerdCopter <[email protected]>

---------

Co-authored-by: nerdCopter <[email protected]>
Bumps [nanoid](https://github.com/ai/nanoid) from 3.3.7 to 3.3.8.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](ai/nanoid@3.3.7...3.3.8)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* The DEBUG modes list is updated. The OPTICALFLOW, AUTOPILOT_POSITION debugs are added

* added converters for OPTICALFLOW debug

* added converters for AUTOPILOT_POSITION debug
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.2.14 to 5.4.12.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v5.4.12/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.4.12/packages/vite)

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

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
The units convertors are added for TPA debug fields
Adjustments due to file location change
Copy link

netlify bot commented Feb 6, 2025

Deploy Preview for origin-blackbox-logviewer ready!

Name Link
🔨 Latest commit 6ff3484
🔍 Latest deploy log https://app.netlify.com/sites/origin-blackbox-logviewer/deploys/67a42332bd6977000864ddea
😎 Deploy Preview https://deploy-preview-812.dev.blackbox.betaflight.com
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

sonarqubecloud bot commented Feb 6, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
5.1% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@blckmn blckmn merged commit 900f9d4 into app_release Feb 6, 2025
19 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants