Skip to content

Refactor/compile components modernization to #244 #457

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

Open
wants to merge 6 commits into
base: fix/backpack-usage-#346
Choose a base branch
from

Conversation

georgi-s
Copy link
Contributor

  • Convert Compile component from class to functional component
  • Implement useCompile custom hook for better state management
  • Add timestamp functionality to file downloads
  • Improve error handling and UI feedback
  • Add multi-language support for tooltips
  • Remove redundant state management
  • Update file naming convention with whitespace detection
  • Add platform-specific compilation handling (esp32 vs mcu)
  • Integrate moment.js for consistent date formatting
  • Remove deprecated dialog logic
  • Improve code organization and maintainability

BREAKING CHANGE: Compile.js is removed in favor of Compile.jsx

ammar450 and others added 5 commits February 8, 2025 03:58
- Removes version number and compilation counter from filenames for better readability
- Uses moment.js for consistent timestamp formatting
- Implements German date format (DD-MM-YYYY)
- Adds hours, minutes, and seconds to the timestamp
- Simplifies filename structure for better usability

Example of new filename: 'my-project_16-04-2024_14_03_41.bin'
- Convert Compile component from class to functional component
- Implement useCompile custom hook for better state management
- Add timestamp functionality to file downloads
- Improve error handling and UI feedback
- Add multi-language support for tooltips
- Remove redundant state management
- Update file naming convention with whitespace detection
- Add platform-specific compilation handling (esp32 vs mcu)
- Integrate moment.js for consistent date formatting
- Remove deprecated dialog logic
- Improve code organization and maintainability

BREAKING CHANGE: Compile.js is removed in favor of Compile.jsx
Copy link

Tests

Test Name Status Flaky Duration
Blockly Editor Page Tests [Blockly] visits the editor page 972ms
Blockly Editor Page Tests [Blockly] visits the tutorial page 163ms
Blockly Editor Page Tests [Blockly] visits the gallery page 132ms
Blockly Editor Page Tests [Blockly] visits the faq page 115ms
Blockly Editor Page Tests [Blockly] visits the settings page 116ms
Blockly Editor Page Tests [Blockly] visits the login page 114ms
Blockly Editor Page Tests [Blockly] navigates to tutorial and back 14.0s
Blockly Editor Page Tests [Blockly] selects senseBox ESP 779ms
Blockly Editor Page Tests [Blockly] selects senseBox MCU 725ms
Blockly Editor Page Tests [Blockly] selects senseBox Mini 707ms
Blockly Editor Page Tests [Blockly] compiles code 14.5s
Code Editor Page Tests [CodeEditor] visits the code editor page 1.3s
Code Editor Page Tests [CodeEditor] selects senseBox ESP 458ms
Code Editor Page Tests [CodeEditor] compiles code 599ms
Code Editor Page Tests [CodeEditor] opens reset dialog 591ms
Code Editor Page Tests [CodeEditor] fetches libraries 1.3s

Github Test Reporter by CTRF 💚

Package Management:
- Remove yarn.lock file to prevent package manager conflicts
- Add yarn.lock to .gitignore to prevent future conflicts
- Clean up yarn-specific dependencies and configurations
- Ensure consistent package management with npm

Compilation Dialog:
- Change timestamp format from DD-MM-YYYY_HH_mm_ss to YYYY-MM-DD-HH-mm-ss
- Reorder filename components to put timestamp before cleanName
- Update both downloadUrl and download filename to maintain consistency

This commit standardizes the package management approach by removing
Yarn-related files and improves the file naming convention in the
compilation dialog by using a more standard ISO-like date format and
placing the timestamp before the filename for better sorting and
organization of downloaded files.
Copy link

Tests

Test Name Status Flaky Duration
Blockly Editor Page Tests [Blockly] visits the editor page 1.1s
Blockly Editor Page Tests [Blockly] visits the tutorial page 168ms
Blockly Editor Page Tests [Blockly] visits the gallery page 126ms
Blockly Editor Page Tests [Blockly] visits the faq page 122ms
Blockly Editor Page Tests [Blockly] visits the settings page 122ms
Blockly Editor Page Tests [Blockly] visits the login page 123ms
Blockly Editor Page Tests [Blockly] navigates to tutorial and back 15.7s
Blockly Editor Page Tests [Blockly] selects senseBox ESP 684ms
Blockly Editor Page Tests [Blockly] selects senseBox MCU 809ms
Blockly Editor Page Tests [Blockly] selects senseBox Mini 733ms
Blockly Editor Page Tests [Blockly] compiles code 31.2s
Code Editor Page Tests [CodeEditor] visits the code editor page 1.5s
Code Editor Page Tests [CodeEditor] selects senseBox ESP 455ms
Code Editor Page Tests [CodeEditor] compiles code 601ms
Code Editor Page Tests [CodeEditor] opens reset dialog 608ms
Code Editor Page Tests [CodeEditor] fetches libraries 2.8s

Github Test Reporter by CTRF 💚

@Thiemann96
Copy link
Contributor

Der Issue (#244) sollte darum gehen, Dateien die runtergeladen werden anders zu benennen.

Nicht eine neue useCompile Hook oder andere "code organization and maintainability" Aufgaben. Bitte passe die PR entsprechened an oder öffne eine neue

@Thiemann96 Thiemann96 changed the base branch from development to fix/backpack-usage-#346 May 15, 2025 11:34
@georgi-s georgi-s force-pushed the fix/backpack-usage-#346 branch from 5f68eb8 to dab5f29 Compare May 16, 2025 12:29
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.

3 participants