Commit Graph

13 Commits

Author SHA1 Message Date
Tobias Urdin 59cd5de78b web: add dark mode and theme selection
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
2023-04-21 11:23:56 +00:00
Albin Vass 9e88f8e5cb Fix links for jobs with special characters
Change-Id: I12e8a056a2e5cd1bb18c1f24ecd7db55405f0a8c
2022-08-23 13:21:25 +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
Mohammed Naser b226cffc5a ui: convert all spaces to commas for filter
We replace all spaces by commas when filtering the status page, however,
due to the fact we don't use the `g` flag, it only splits the first
value and stops after the first one.

This patch adds the `g` flag to the regex so that all of the spaces are
replaced by commas when filtering.

Change-Id: I9b9cd33a7067fd00415e2ae1634e340a6df46749
2020-02-21 15:11:53 +01:00
Tristan Cacqueray 925071d8fd web: handle jobs that have multiple parent
This change prevent issue when the tree component is not able
to render a child attached to multiple parents.

Change-Id: Iec0de04bc91deb8642afa3a7d0ba023b3eadf8b4
2019-11-21 15:55:06 +00:00
Zuul 1901296239 Merge "web: add tags to jobs list" 2019-05-16 20:41:49 +00:00
Tristan Cacqueray d6250e9c55 web: add tags to jobs list
Change-Id: Ibb2ab9d001877f68094c75dc77c2fddaeedd51bf
2019-04-03 08:39:40 +00:00
Tristan Cacqueray 1787d6a225 web: check if job has parent
This change prevents exception when trying to display the jobs
list without a parent.

Change-Id: I1fed7ba1950ed097478988752f99c668802094b2
2019-03-25 01:32:50 +00:00
James E. Blair a88aad3423 web: support more than one job in the filter
This allows you to enter:

  requirements-tox-py35-check-uc cross-cinder-py35

In the job filter and see the common ancestry in the tree view.

The status page filter is also updated to support multiple spaces
between items.  Both filters now support this in order to deal
with common copy/paste errors.

Depends-On: https://review.openstack.org/643397
Change-Id: I38cc6cdc8b5373dc8f29804f5bb35e9594a000bf
2019-03-14 17:16:15 +00:00
Tristan Cacqueray 12eee03099 web: add flatten checkbox
This change adds a checkbox to display the jobs as a flat list.

Change-Id: Iaf7c8f9de356661c9ab24c83c409c59f866ffaaf
2019-03-08 23:45:40 +00:00
Tristan Cacqueray 0999d5d840 web: add jobs list filter
This change improves the job list page to enable filtering.

Change-Id: I81e12c0c473010f65ccae66d36b43bfcdd531f9e
2019-03-08 08:11:22 +00:00
Tristan Cacqueray 8f5003da20 web: switch jobs list to a tree view
To better display the jobs list, this change updates the Jobs render method
to use a TreeView instead of a Table.

Change-Id: I48829f1196f042400eda1517d4d360ce0fe9ffa4
2019-03-08 08:06:29 +00:00
Tristan Cacqueray 839fe0cceb web: refactor jobs page to use a reducer
This change updates the jobs page component to dispatch reducer
action instead of direct axios call. This enables using the generic
error reducers as well as keeping the jobs list in the store to
avoid repeated query. This change also refactor the Job list into
a container and extends the common refresh component.

Change-Id: I7f44e83d6bea8ee915c81d7ba9afd6d9a4c89d38
2018-12-06 07:21:37 +00:00