Commit Graph

5 Commits

Author SHA1 Message Date
Matthieu Huin c82619174c web UI: allow a privileged user to re-enqueue a change
Add a "re-enqueue" action command on a Buildset page, displayed only
if the currently logged in user is an admin on the tenant. By
clicking this command, the user can re-enqueue the change with
the same parameters as the buildset.

Redux: turned the API error notifications into a more generic
notification system, that can now include success notifications.

Change-Id: I05b6b3deb912b121df8de207944d9ec26e7c92d1
2021-11-18 16:40:47 +00:00
Matthieu Huin 3152171aa5 web UI: allow a privileged user to dequeue a change
Add a togglable "Actions" kebab menu on the right of a change, if the
currently logged in user is an admin on the tenant.

Show available actions (currently "dequeue" only) when toggled.

Clicking the "Dequeue" item opens a modal, so that the user
can confirm her decision.

Change-Id: I7c97509d62ef167ee5904a816998049d88c6b3cb
2021-11-18 16:40:25 +00:00
Matthieu Huin ad1e92089d UI: remove immutability-helper dependency
Replace calls to immutability-helper's "update" with equivalent
spread operations.

Change-Id: I5b913fdd6c793b48dfdc6ed765f7142f14d72711
2021-09-20 14:57:02 +02:00
Sorin Sbarnea ebad14f1f9 Consolidate js/jsx indentation
Previously indentation was not checked at all and in order to avoid
reviewers time with style checks, we can enforce it with eslint.

Current js/jsx changes were made by: yarn lint-fix

Note this this change can easily become outdated so we need to
coordinate and merge it quickly as each rebase would loose previous
votes.

Change-Id: I85883fc8db924ad4ce9acad5acdd42aed7e4d0e4
2020-11-20 09:39:31 +00:00
Tristan Cacqueray f312f68ec6 web: add error reducer and info toast notification
This change adds a new error reducer to manage error from API calls.
The info actions retries failed info request after 5 seconds.

Change-Id: Ieb2b66a2847650788d9bf68080ab208855941f24
2018-12-02 05:56:38 +00:00