Skip to content

Commit

Permalink
Fixes bugs 1, 4, 6 (#1)
Browse files Browse the repository at this point in the history
Release version 3.1.5

* bugs 1, 4 fixed on android

* bug 1 fixed dashboard

* Transfer bug fixes on iOS

---------

Co-authored-by: William Kwan <[email protected]>
  • Loading branch information
jeamigue and Cocograal authored Sep 12, 2024
1 parent 77abc6e commit e9bcd19
Show file tree
Hide file tree
Showing 28 changed files with 128 additions and 114 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { createContext, useContext, useEffect, useRef, useState } from 'r
import { useActor } from '@xstate/react';
import { Actions, assign, createMachine, DoneInvokeEvent, interpret, send } from 'xstate';
import { getLoginSid } from './fetchCalls/getLoginToken';
import { getDevices } from './fetchCalls/getAllDevicesIP:Name';
import { getDevices } from './fetchCalls/getAllDevicesIP_Name';
import { getWifiStatus } from './fetchCalls/getWifiStatus';
import { getInternetStatus } from './fetchCalls/getInternetStatus';
import { ContextData, Event, ServiceEvent, initialState } from '.';
Expand Down Expand Up @@ -144,7 +144,6 @@ const actions = {
}

const devices = await getDevices({ sid });

resolve({ devices });
});
},
Expand Down Expand Up @@ -256,6 +255,12 @@ const actions = {
};
}),
updateRobots: assign((context: ContextData, event: Event) => {
const idMap = event.data.robots.map((robot: { nodeId: any; }) => robot.nodeId);
context.robots.forEach(robot => {
if (!idMap.includes(robot.nodeId) && robot.status !== "disconnected") {
event.data.robots.push(robot);
}
});
return {
robots: event.data.robots,
times: context.times + 1,
Expand Down Expand Up @@ -609,7 +614,6 @@ export const StateProvider = ({ children }: { children: React.ReactNode }) => {
);

// console.log('tdmClient', { robots: _nodes });

services[1]({ type: 'updateRobots', data: { robots: _nodes } });
setTDMActive(true);
// setRouterData({ ...routerData, robots: _nodes });
Expand Down
2 changes: 1 addition & 1 deletion apps/thymio-suite-mobile-android/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 300011
versionName "3.1.4"
versionName "3.1.5"
}
signingConfigs {
debug {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"files": {
"main.css": "./static/css/main.75b0f2c6.css",
"main.js": "./static/js/main.d7269370.js",
"main.js": "./static/js/main.fc06555d.js",
"static/js/787.988f181b.chunk.js": "./static/js/787.988f181b.chunk.js",
"static/media/scratch-description.jpeg": "./static/media/scratch-description.95613845cfb9ab1406dc.jpeg",
"static/media/vpl3-description.jpeg": "./static/media/vpl3-description.6ab995b25c1695e316d1.jpeg",
"index.html": "./index.html",
"main.75b0f2c6.css.map": "./static/css/main.75b0f2c6.css.map",
"main.d7269370.js.map": "./static/js/main.d7269370.js.map",
"main.fc06555d.js.map": "./static/js/main.fc06555d.js.map",
"787.988f181b.chunk.js.map": "./static/js/787.988f181b.chunk.js.map"
},
"entrypoints": [
"static/css/main.75b0f2c6.css",
"static/js/main.d7269370.js"
"static/js/main.fc06555d.js"
]
}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="./favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="./logo192.png"/><link rel="manifest" href="./manifest.json"/><title>React App</title><script defer="defer" src="./static/js/main.d7269370.js"></script><link href="./static/css/main.75b0f2c6.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="./favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="./logo192.png"/><link rel="manifest" href="./manifest.json"/><title>React App</title><script defer="defer" src="./static/js/main.fc06555d.js"></script><link href="./static/css/main.75b0f2c6.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>

This file was deleted.

This file was deleted.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion apps/thymio-suite-mobile-ios/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ GEM
specs:
CFPropertyList (3.0.6)
rexml
activesupport (7.0.8)
activesupport (6.1.7.8)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
zeitwerk (~> 2.3)
addressable (2.8.6)
public_suffix (>= 2.0.2, < 6.0)
algoliasearch (1.27.5)
Expand Down Expand Up @@ -84,6 +85,7 @@ GEM
colored2 (~> 3.1)
nanaimo (~> 0.3.0)
rexml (~> 3.2.4)
zeitwerk (2.6.17)

PLATFORMS
ruby
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
{
"files": {
"main.css": "./static/css/main.75b0f2c6.css",
"main.js": "./static/js/main.5329f81c.js",
"static/js/787.988f181b.chunk.js": "./static/js/787.988f181b.chunk.js",
"main.css": "./static/css/main.83b43609.css",
"main.js": "./static/js/main.5ce7bcef.js",
"static/js/27.78cd01e5.chunk.js": "./static/js/27.78cd01e5.chunk.js",
"static/media/scratch-description.jpeg": "./static/media/scratch-description.95613845cfb9ab1406dc.jpeg",
"static/media/vpl3-description.jpeg": "./static/media/vpl3-description.6ab995b25c1695e316d1.jpeg",
"index.html": "./index.html",
"main.75b0f2c6.css.map": "./static/css/main.75b0f2c6.css.map",
"main.5329f81c.js.map": "./static/js/main.5329f81c.js.map",
"787.988f181b.chunk.js.map": "./static/js/787.988f181b.chunk.js.map"
"index.html": "./index.html"
},
"entrypoints": [
"static/css/main.75b0f2c6.css",
"static/js/main.5329f81c.js"
"static/css/main.83b43609.css",
"static/js/main.5ce7bcef.js"
]
}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="./favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="./logo192.png"/><link rel="manifest" href="./manifest.json"/><title>React App</title><script defer="defer" src="./static/js/main.5329f81c.js"></script><link href="./static/css/main.75b0f2c6.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="./favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="./logo192.png"/><link rel="manifest" href="./manifest.json"/><title>React App</title><script defer="defer" src="./static/js/main.5ce7bcef.js"></script><link href="./static/css/main.83b43609.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

Loading

0 comments on commit e9bcd19

Please sign in to comment.