Skip to content

Commit

Permalink
chore: update steps naming and add descriptoin to demo
Browse files Browse the repository at this point in the history
  • Loading branch information
alberto-abarzua committed Nov 22, 2023
1 parent ba8b37a commit 2454897
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 15 deletions.
25 changes: 17 additions & 8 deletions arm_docs/src/pages/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,23 @@ export default function Home() {
<h3 className="text-2xl font-bold">La Actividad!</h3>
<div className="flex items-start justify-start gap-x-20 ">
<div className="flex-col flex lg:flex-row">
<p className="text-lg flex-1 px-2 py-3">
Veras un recuadro morado como el de la imagen de la derecha.
Este recuadro te dira que hacer en cada paso. Sigue las
instrucciones y completa la actividad. Al final se abrirá un
formulario para que puedas dejar tus comentarios sobre la
actividad. (Es importante que completes el formulario para que
la actividad sea válida)
</p>
<div>
<p className="text-lg flex-1 px-2 py-3">
El objetivo de esta actividad sera guiarte a través de la
plataforma para que puedas mover el brazo robótico de manera
libre y generar bloques de acciones para 'programar' el brazo
y que este realice una tarea.
</p>

<p className="text-lg flex-1 px-2 py-3">
Veras un recuadro morado como el de la imagen de la derecha.
Este recuadro te dira que hacer en cada paso. Sigue las
instrucciones y completa la actividad. Al final se abrirá un
formulario para que puedas dejar tus comentarios sobre la
actividad. (Es importante que completes el formulario para que
la actividad sea válida)
</p>
</div>

<img
src={ActivityBox}
Expand Down
16 changes: 9 additions & 7 deletions frontend/src/redux/ActivitySlice.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,8 @@ const initialState = {
{
name: 'Home the Arm',
id: Steps.HOME_ARM,
description: 'Press the "Home Arm" button.',
description:
'Press the "Home Arm" button to initialize the arm at its default position.',
completion: {
done: false,
timestamp: null,
Expand Down Expand Up @@ -309,9 +310,10 @@ const initialState = {
},
},
{
name: 'Set Sleep Duration to 1',
name: 'Move and Set Sleep Duration to 1',
id: Steps.SET_SLEEP_DURATION_TO_1,
description: 'Set the duration of the sleep action to 1.',
description:
'Drag the sleep action between the two move actions and set the duration of it to 1.',
completion: {
done: false,
timestamp: null,
Expand Down Expand Up @@ -367,8 +369,8 @@ const initialState = {
name: 'Go to Position',
id: Steps.GO_TO_POSITION,
description:
'Move close to the following position using the control panel (Toggle to X,Y,Z Mode), or by modifiying the values in a move action',
extra: 'X: 370 | Y: 100 | Z: 100 | Roll: 0 | Pitch: 60 | Yaw: 15',
'Imagine there is a cube you need to grab in the following position. Move close to it changing the values of a move action or by moving using the control panel (X,Y,Z) Mode',
extra: 'Cube Position: X: 370 | Y: 100 | Z: 100 | Roll: 0 | Pitch: 60 | Yaw: 15',
completion: {
done: false,
timestamp: null,
Expand Down Expand Up @@ -405,7 +407,7 @@ const initialState = {
{
name: 'Move All to Action Set',
id: Steps.MOVE_ALL_TO_ACTION_SET,
description: 'Move all actions into the action set by dragging them into the set.',
description: 'Organize your action list: Move all actions into the action set by dragging them into the set.',
completion: {
done: false,
timestamp: null,
Expand All @@ -423,7 +425,7 @@ const initialState = {
{
name: 'Duplicate Action Set',
id: Steps.DUPLICATE_ACTION_SET,
description: 'Create a duplicate of the action set.',
description: 'No need to do it all again: Create a duplicate of the action set.',
completion: {
done: false,
timestamp: null,
Expand Down

0 comments on commit 2454897

Please sign in to comment.