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 25 commits into
base: fix/backpack-usage-#346
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
0a9c079
i have done [UI] Add a compilation counter with timestamp #244
ammar450 Feb 8, 2025
51f68ac
revert package.json change
Feb 13, 2025
ddf7351
add arduino_functions block restriction and improvement of board-spec…
georgi-s Apr 15, 2025
3a555da
Restriction of interaction possibilities for the arduino_functions block
georgi-s Apr 15, 2025
94d770c
Improved backpack initialization and management
georgi-s Apr 15, 2025
5589fb9
fix: Make Cypress test for reset button language-independent
georgi-s Apr 15, 2025
d9308f8
fix: Make Cypress test for reset button language-independent
georgi-s Apr 15, 2025
fe415cf
feat: Improved filename generation for compiled projects
georgi-s Apr 16, 2025
45aeaae
Merge remote-tracking branch 'origin/development' into counter-with-t…
georgi-s Apr 17, 2025
a519a76
refactor: modernize compile component and improve file handling
georgi-s Apr 17, 2025
1e67a2a
feat: Add MUI alerts for backpack operations
georgi-s Apr 23, 2025
7dc9379
chore(deps): remove yarn.lock and update compilation dialog
georgi-s Apr 24, 2025
6814a78
style: format codebase with Prettier
georgi-s Apr 24, 2025
9bbeb3c
feat: Enhanced BlocklyWindow component with Backpack animation
georgi-s Apr 24, 2025
ca0d4a6
fix: Set fixed transformation point for Blockly animations
georgi-s Apr 25, 2025
cb3dc96
Merge pull request #460 from sensebox/feat/backpack-wiggle-animation
Thiemann96 Jun 5, 2025
c85d4a2
add arduino_functions block restriction and improvement of board-spec…
georgi-s Apr 15, 2025
876117b
Restriction of interaction possibilities for the arduino_functions block
georgi-s Apr 15, 2025
37bd9b8
Improved backpack initialization and management
georgi-s Apr 15, 2025
6cb067b
fix: Make Cypress test for reset button language-independent
georgi-s Apr 15, 2025
3513c00
fix: Make Cypress test for reset button language-independent
georgi-s Apr 15, 2025
95a4e89
feat: Add MUI alerts for backpack operations
georgi-s Apr 23, 2025
de77b83
Merge branch 'feat/add-confirmation-of-successful-buffering-in-backpa…
Thiemann96 Jun 5, 2025
e7b1222
Merge pull request #459 from sensebox/chore/prettier-check
Thiemann96 Jun 5, 2025
e80314a
Merge pull request #458 from sensebox/feat/add-confirmation-of-succes…
Thiemann96 Jun 5, 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
feat: Improved filename generation for compiled projects
- 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'
  • Loading branch information
georgi-s committed Apr 16, 2025
commit fe415cf29ceb7009197ac18736fb5aad863a3b4f
7 changes: 5 additions & 2 deletions src/components/Workspace/Compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import React, { Component } from "react";
import PropTypes from "prop-types";
import { connect } from "react-redux";
import { workspaceName } from "../../actions/workspaceActions";
import moment from "moment";
import "moment/locale/de";

import { detectWhitespacesAndReturnReadableResult } from "../../helpers/whitespace";

Expand Down Expand Up @@ -135,9 +137,10 @@ class Compile extends Component {
download = () => {
const id = this.state.id;
const counter = getCompilationCounter();
const timestamp = new Date().toISOString().replace(/[:.]/g, '-').slice(0, -5);
moment.locale('de');
const timestamp = moment().format('DD-MM-YYYY_HH_mm_ss');
const cleanName = detectWhitespacesAndReturnReadableResult(this.state.name);
const filename = `${cleanName}_v${VERSION}_c${counter}_${timestamp}`;
const filename = `${cleanName}_${timestamp}`;

this.toggleDialog();
this.props.workspaceName(this.state.name);
Expand Down