summaryrefslogtreecommitdiff
path: root/web/src/containers/status/Change.jsx
Commit message (Collapse)AuthorAgeFilesLines
* web: add dark mode and theme selectionTobias Urdin2023-04-211-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a theme selection in the preferences in the config modal and adds a new dark theme. Removes the line.png image and instead uses CSS linear-gradient that is available in all browsers since around 2018, also fixes the 15 pixels spacing issue that is there today. You can select between three different themes. Auto will use your system preference to choose either the light or dark theme, changes dynamically based on your system preference. Light is the current theme. Dark is the theme added by this patch series. The UX this changes is that if somebody has their system preferences set to dark, for example in Mac OS X that is in System Settings -> Appearance -> Dark the user will get the Zuul web UI in dark by default and same for the opposite. This uses a poor man's dark mode for swagger-ui as per the comment in [1]. [1] https://github.com/swagger-api/swagger-ui/issues/5327#issuecomment-742375520 Change-Id: I01cf32f3decdb885307a76eb79d644667bbbf9a3
* Support authz for read-only web accessJames E. Blair2022-10-251-5/+5
| | | | | | | | | | | | | | | This updates the web UI to support the requirement for authn/z for read-only access. If authz is required for read access, we will automatically redirect. If we return and still aren't authorized, we will display an "Authorization required" page (rather than continuing and popping up API error notifications). The API methods are updated to send an authorization token whenever one is present. Change-Id: I31c13c943d05819b4122fcbcf2eaf41515c5b1d9
* Make promote work for any pipeline managerJames E. Blair2022-03-101-16/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | This alters the behavior of the promote event handler so that it does something useful in independent pipelines as well as dependent. It not only re-orders changes within a pipeline's shared queue (the old behavior), but it also re-orders the shared queue within the pipeline. When used in an independent pipeline, this will give the item an advantage when requesting nodes or semaphores, or starting jobs. This behavior applies to dependent pipelines as well -- the behavior is the same for every pipeline. Restarting jobs for changes in independent pipelines would be counter-productive (and even in dependent pipelines we may have restarted more jobs than necessary if the change at the head wasn't being altered), so it has been altered to only dequeue/enqueue items when necessary to achieve the requested order. The event argument to addChange within the promote method has been changed from the promote event to the original item enqueue event. Methods within the pipeline manager assume that event type is a TriggerEvent rather than a ManagementEvent and could throw some (non-fatal) errors when reporting. Change-Id: Ib4ab855cff27bf8e96aa852333fb4ace656235b4
* web UI: allow a privileged user to promote a changeMatthieu Huin2021-11-231-5/+76
| | | | | | | | | Add a "promote" button in the actions menu of a change, if the currently logged in user is an admin on the tenant and if the pipeline is dependent. Clicking the button opens a modal, so that the user can confirm her decision. Change-Id: I8262888aef9ba1a106e0b321cc4cf2e14465b90c
* Web UI: allow a privileged user to request autoholdMatthieu Huin2021-11-181-1/+1
| | | | | | | | | Add a "autohold" command on a build page, displayed only if the currently logged in user is an admin on the tenant. By clicking the command, the user can display a form and set custom parameters for an autohold request. Change-Id: I0f9f069d4ad36d4961eb6925146f67fe4910cb2e
* web UI: allow a privileged user to re-enqueue a changeMatthieu Huin2021-11-181-3/+4
| | | | | | | | | | | | 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
* web UI: allow a privileged user to dequeue a changeMatthieu Huin2021-11-181-17/+153
| | | | | | | | | | | | 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
* Consolidate js/jsx indentationSorin Sbarnea2020-11-201-3/+3
| | | | | | | | | | | | | 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
* web: add change status pageTristan Cacqueray2018-12-141-5/+18
| | | | | | | | This change adds a ChangeStatus page to display the status of a single change and updates the Change component to link the icon to the new page. Change-Id: I265f7a390fde33721624a0da7fe5bd1cde32dc37
* Revert "Revert "web: rewrite interface in react""Tristan Cacqueray2018-10-061-0/+99
| | | | | | This reverts commit 3dba813c643ec8f4b3323c2a09c6aecf8ad4d338. Change-Id: I233797a9b4e3485491c49675da2c2efbdba59449
* Revert "web: rewrite interface in react"James E. Blair2018-09-291-99/+0
| | | | | | | | | | | Revert "Fix publish-openstack-javascript-content" This reverts commit ca199eb9dbb64e25490ee5803e4f18c91f34681d. This reverts commit 1082faae958bffa719ab333c3f5ae9776a8b26d7. This appears to remove the tarball publishing system that we rely on. Change-Id: Id746fb826dfc01b157c5b772adc1d2991ddcd93a
* web: rewrite interface in reactTristan Cacqueray2018-09-271-0/+99
This change rewrites the web interface using React: http://lists.zuul-ci.org/pipermail/zuul-discuss/2018-August/000528.html Depends-On: https://review.openstack.org/591964 Change-Id: Ic6c33102ac3da69ebd0b8e9c6c8b431d51f3cfd4 Co-Authored-By: Monty Taylor <mordred@inaugust.com> Co-Authored-By: James E. Blair <jeblair@redhat.com>