# Ability to move an action up or down in scenes

**URL:** <https://community.gladysassistant.com/t/pouvoir-deplacer-une-action-vers-le-haut-ou-le-bas-dans-les-scenes/7325>\
**Category:** Demandes livrées\
**Tags:** feature-integration, scene\
**Created:** [May 25, 2022, 11:37am UTC](https://community.gladysassistant.com/t/pouvoir-deplacer-une-action-vers-le-haut-ou-le-bas-dans-les-scenes/7325 "2022-05-25T11:37:03Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tlse-vins](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tlse-vins/32/6054_2.png) [@Tlse-vins](https://community.gladysassistant.com/u/Tlse-vins)\
**Post date:** [May 25, 2022, 11:37am UTC](https://community.gladysassistant.com/t/pouvoir-deplacer-une-action-vers-le-haut-ou-le-bas-dans-les-scenes/7325/1 "2022-05-25T11:37:03Z")

</div>

I’m starting to have scenes with around ten actions, or even more.  
When I reach the eleventh, I tell myself «&nbsp;Ah I could add that…, but I’d need to put it in second position.&nbsp;»

At the moment, we have to delete actions in order to add one and re-enter them.

If we had the ability to move them up or down in the same way as the boxes when editing the dashboard, that would be great.

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [May 25, 2022, 1:17pm UTC](https://community.gladysassistant.com/t/pouvoir-deplacer-une-action-vers-le-haut-ou-le-bas-dans-les-scenes/7325/2 "2022-05-25T13:17:14Z")

</div>

I don’t have a vote left, but yes, I agree — that would simplify complex scenes when you want to add an action.

---

<div class="post-metadata">

**Author:** ![lmilcent](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lmilcent/32/7023_2.png) [@lmilcent](https://community.gladysassistant.com/u/lmilcent)\
**Post date:** [May 25, 2022, 6:10pm UTC](https://community.gladysassistant.com/t/pouvoir-deplacer-une-action-vers-le-haut-ou-le-bas-dans-les-scenes/7325/3 "2022-05-25T18:10:29Z")

</div>

Same here, I got so mad so many times for the same reason!  
You have all my votes 😅

---

<div class="post-metadata">

**Author:** ![guim31](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/guim31/32/4840_2.png) [@guim31](https://community.gladysassistant.com/u/guim31)\
**Post date:** [May 26, 2022, 4:32pm UTC](https://community.gladysassistant.com/t/pouvoir-deplacer-une-action-vers-le-haut-ou-le-bas-dans-les-scenes/7325/4 "2022-05-26T16:32:18Z")

</div>

I’ve often encountered the same issue! I second that!

---

<div class="post-metadata">

**Author:** ![tiboys](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tiboys/32/17668_2.png) [@tiboys](https://community.gladysassistant.com/u/tiboys)\
**Post date:** [June 2, 2022, 12:00pm UTC](https://community.gladysassistant.com/t/pouvoir-deplacer-une-action-vers-le-haut-ou-le-bas-dans-les-scenes/7325/5 "2022-06-02T12:00:58Z")

</div>

Same here, with deletion when they’re no longer used .. just to keep things tidy! 😊  
+1

---

<div class="post-metadata">

**Author:** ![Tlse-vins](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tlse-vins/32/6054_2.png) [@Tlse-vins](https://community.gladysassistant.com/u/Tlse-vins)\
**Post date:** [June 2, 2022, 4:47pm UTC](https://community.gladysassistant.com/t/pouvoir-deplacer-une-action-vers-le-haut-ou-le-bas-dans-les-scenes/7325/6 "2022-06-02T16:47:15Z")

</div>

With @_Will_71 and @lmilcent, that makes 12 votes.  
I didn’t think there would be that many.

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [June 2, 2022, 5:06pm UTC](https://community.gladysassistant.com/t/pouvoir-deplacer-une-action-vers-le-haut-ou-le-bas-dans-les-scenes/7325/7 "2022-06-02T17:06:11Z")

</div>

So my vote has already been counted, because I deleted one on another issue that I considered less important.

---

<div class="post-metadata">

**Author:** ![spenceur](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/spenceur/32/1961_2.png) [@spenceur](https://community.gladysassistant.com/u/spenceur)\
**Post date:** [June 2, 2022, 7:00pm UTC](https://community.gladysassistant.com/t/pouvoir-deplacer-une-action-vers-le-haut-ou-le-bas-dans-les-scenes/7325/8 "2022-06-02T19:00:50Z")

</div>

I don’t think you can count the «&nbsp;fake&nbsp;» votes  
It would be a mess otherwise ^^.  
I think it’s better to prioritize those votes by removing them and revoting like @_Will_71 did 🙂

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [June 2, 2022, 9:17pm UTC](https://community.gladysassistant.com/t/pouvoir-deplacer-une-action-vers-le-haut-ou-le-bas-dans-les-scenes/7325/9 "2022-06-02T21:17:55Z")

</div>

Voting intentions 😅

---

<div class="post-metadata">

**Author:** ![lmilcent](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lmilcent/32/7023_2.png) [@lmilcent](https://community.gladysassistant.com/u/lmilcent)\
**Post date:** [June 3, 2022, 5:24am UTC](https://community.gladysassistant.com/t/pouvoir-deplacer-une-action-vers-le-haut-ou-le-bas-dans-les-scenes/7325/10 "2022-06-03T05:24:56Z")

</div>

I’ve voted!  
(I withdrew another vote 🤷‍♂️)

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [June 3, 2022, 9:27am UTC](https://community.gladysassistant.com/t/pouvoir-deplacer-une-action-vers-le-haut-ou-le-bas-dans-les-scenes/7325/11 "2022-06-03T09:27:54Z")

</div>

> [@spenceur](#):
>
> I think it’s better to prioritize these votes by removing some and revoting like @_Will_71 did 🙂

Exactly, I advise everyone to do a little «&nbsp;review&nbsp;» of their votes to re-prioritize them. Removing less crucial features to put the vote on another one helps a lot 😉

To see your votes, just go to «&nbsp;My votes&nbsp;»: [Demande de fonctionnalités - Gladys Assistant community](https://community.gladysassistant.com/c/feature-requests/43/l/latest?state=my_votes)

The number of votes per person is intentionally limited, otherwise everyone would vote for everything and we’d be back to square one: impossible to prioritize 😃

---

<div class="post-metadata">

**Author:** ![Tlse-vins](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tlse-vins/32/6054_2.png) [@Tlse-vins](https://community.gladysassistant.com/u/Tlse-vins)\
**Post date:** [June 14, 2022, 12:59pm UTC](https://community.gladysassistant.com/t/pouvoir-deplacer-une-action-vers-le-haut-ou-le-bas-dans-les-scenes/7325/12 "2022-06-14T12:59:58Z")

</div>

> [@Tlse-vins](#):
>
> To revive the thread, I found this library:
> 
> [Sortable | Simple list | Draggable JS Examples](https://shopify.github.io/draggable/examples/simple-list.html)
> 
> If that can help move things forward.

Can we use the same solution?

---

<div class="post-metadata">

**Author:** ![Lokkye](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lokkye/32/5881_2.png) [@Lokkye](https://community.gladysassistant.com/u/Lokkye)\
**Post date:** [January 23, 2023, 8:16pm UTC](https://community.gladysassistant.com/t/pouvoir-deplacer-une-action-vers-le-haut-ou-le-bas-dans-les-scenes/7325/13 "2023-01-23T20:16:18Z")

</div>

To make sure we’re talking about the same thing, when we talk about moving an action up or down.

For you an action is :

 ![Screenshot 2023-01-23 at 21.09.23](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/e/e5cd4136661b721d55addcf26a15b5022f388b88.png)

Or this :

 ![Screenshot 2023-01-23 at 21.09.26](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/c/c9b25e8b2bb60c99024cbde803f7a790107982c5.png)

If it’s the 1st option, the goal would be to move an action from one «&nbsp;big&nbsp;» box to another «&nbsp;big&nbsp;» box, so I understand the use of a drag-and-drop library.

If it’s the 2nd option, I would rather see an «&nbsp;arrow&nbsp;» system to move the actions. And

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [January 23, 2023, 8:34pm UTC](https://community.gladysassistant.com/t/pouvoir-deplacer-une-action-vers-le-haut-ou-le-bas-dans-les-scenes/7325/14 "2023-01-23T20:34:55Z")

</div>

For my part, I have only one action per block, so I’d say solution 2.

---

<div class="post-metadata">

**Author:** ![Tlse-vins](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tlse-vins/32/6054_2.png) [@Tlse-vins](https://community.gladysassistant.com/u/Tlse-vins)\
**Post date:** [January 23, 2023, 9:38pm UTC](https://community.gladysassistant.com/t/pouvoir-deplacer-une-action-vers-le-haut-ou-le-bas-dans-les-scenes/7325/15 "2023-01-23T21:38:42Z")

</div>

Personally, I’d say the first.  
For a house-check scenario, I request the latest status of the openings; there are about ten of them in the same box.  
If I forgot an action before checking the status, I have to re-enter everything.  
Ultimately, both solutions can be justified.

---

<div class="post-metadata">

**Author:** ![Tlse-vins](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tlse-vins/32/6054_2.png) [@Tlse-vins](https://community.gladysassistant.com/u/Tlse-vins)\
**Post date:** [January 23, 2023, 9:39pm UTC](https://community.gladysassistant.com/t/pouvoir-deplacer-une-action-vers-le-haut-ou-le-bas-dans-les-scenes/7325/16 "2023-01-23T21:39:43Z")

</div>

Thanks for looking into it.

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [January 23, 2023, 10:38pm UTC](https://community.gladysassistant.com/t/pouvoir-deplacer-une-action-vers-le-haut-ou-le-bas-dans-les-scenes/7325/17 "2023-01-23T22:38:52Z")

</div>

@Tlse-vins I would say your case is also number 2, because you want to add an action box before your status-check action box.

Case #1 would be to extract one of your verification actions into another action box!

Anyway, that’s how I understand it.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [January 24, 2023, 2:36am UTC](https://community.gladysassistant.com/t/pouvoir-deplacer-une-action-vers-le-haut-ou-le-bas-dans-les-scenes/7325/18 "2023-01-24T02:36:11Z")

</div>

> [@Lokkye](#):
>
> If it’s the first option, the goal will be to move an action from a «&nbsp;big&nbsp;» box to another «&nbsp;big&nbsp;» box, so I understand the use of a drag-and-drop lib.

It’s a bit of both for me: you need to be able to move actions via drag and drop between action blocks, and you need to be able to create/delete action blocks.

If you want to work on it, I’ll dump here the state of my research since I’ve already started experimenting on the topic 🙂

I tested all these things (originally it’s for the dashboard to re-organize the boxes Trello-style):

- React DND : [React DnD](https://react-dnd.github.io/react-dnd/about)
- Trello example with React-DND: [React Beautiful Dnd trello example - CodeSandbox](https://codesandbox.io/s/react-beautiful-dnd-trello-example-ohxsi?file=/src/components/dndEditor/dndEditor.js:2460-2475)
- Preact drag and drop: [Preact Drag and Drop - CodeSandbox](https://codesandbox.io/s/64829x0m93?file=/src/index.js)
- Drag and drop editor: [https://codepen.io/erikdevos/pen/ZYNWoR](https://codepen.io/erikdevos/pen/ZYNWoR)

React-DND looks really good, supports multiple drag-and-drop input sources (mouse on PC and touch on mobile), and it works very well with Preact — I think it’s a good solution!

---

<div class="post-metadata">

**Author:** ![Tlse-vins](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tlse-vins/32/6054_2.png) [@Tlse-vins](https://community.gladysassistant.com/u/Tlse-vins)\
**Post date:** [January 30, 2023, 6:25am UTC](https://community.gladysassistant.com/t/pouvoir-deplacer-une-action-vers-le-haut-ou-le-bas-dans-les-scenes/7325/19 "2023-01-30T06:25:23Z")

</div>

I just edited a scene with more than 20 actions and removed some.  
But as a result I have empty blocks remaining.

2 ideas:

- have an X to delete empty or filled blocks.
- remove empty blocks with reorganization of the blocks and renumbering when saving.

---

<div class="post-metadata">

**Author:** ![lmilcent](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lmilcent/32/7023_2.png) [@lmilcent](https://community.gladysassistant.com/u/lmilcent)\
**Post date:** [January 30, 2023, 6:39am UTC](https://community.gladysassistant.com/t/pouvoir-deplacer-une-action-vers-le-haut-ou-le-bas-dans-les-scenes/7325/20 "2023-01-30T06:39:29Z")

</div>

And as a complement: add a «&nbsp;+&nbsp;» to be able to add a step between two actions.

[Next page](https://community.gladysassistant.com/t/pouvoir-deplacer-une-action-vers-le-haut-ou-le-bas-dans-les-scenes/7325.md?page=2)
