Commit graph

214 commits

Author SHA1 Message Date
Sanne Raymaekers
ba2346aacf ImagesTable/Toolbar: add alert with blueprint linter errors
Includes a fix button which should resolve the errors automatically.
2025-04-17 13:40:10 +02:00
Sanne Raymaekers
2dde0f2177 api: support linting and fixing of blueprints 2025-04-17 13:40:10 +02:00
Lucas Garfield
e222b13476 ImagesTable/BlueprintsSideBar: Add Segment tracking (HMS-5989)
Needed so the Intercom team can decide whether or not to display an
onboarding video (first time user with no images or blueprints).
2025-04-17 08:58:40 +02:00
Katarina Sieklova
d18f25e331 Wizard: add segment tracking 2025-04-16 12:56:03 +02:00
Simon Steinbeiss
463bfddae5 ImagesTable: Fix AWS regions indicator (off by one)
The AWS regions indicator that is currently baked into each row
containing an AWS image is currently off by one due to incorrect
parentheses in the code.
This is now fixed, so it displays '(1)' when there is one region (which
is the default, us-east-1) instead of '(0)' which was both wrong and
confusing.
2025-04-10 12:04:56 +02:00
Sanne Raymaekers
90bf5cf91f src: Rely only osbuild-composer's cloudapi types
Use the predefined types in the status row and the onprem to hosted
mapper.
2025-02-05 15:54:57 +01:00
regexowl
7524bb1eef ImagesTable: Format status text
This adds formatting to the status text, ensuring it's the same as on Repositories step.
2025-02-04 13:55:30 +01:00
Sanne Raymaekers
6ec433f9d3 ImagesTable: fix local target status
The local target status in osbuild-composre ended up being called
`artifact_path`.
2025-02-04 10:22:19 +01:00
Sanne Raymaekers
1b4ecdb271 ImagesTable: ensure local target is copyable
To ensure the local file target is copyable and usable in
`cockpit-files`, the artefact directory needs to be readable.
2025-02-03 14:13:31 +01:00
Sanne Raymaekers
9b9de0bba5 ImagesTable/Instance: open cockpit's file browser for local imgs
Uses `cockpit.jump` to prevent the page actually loading, which makes it
very easy to navigate back to image builder.
2025-01-31 11:38:36 +01:00
Sanne Raymaekers
c8c62dda9d store/cockpitApi: compose status support
Finds the relevant compose, asks for its status and reads the original
compose request from disk.
2025-01-30 10:53:01 +01:00
Sanne Raymaekers
7bd5e2fa95 ImagesTable: switch to mixed api for getting composes 2025-01-30 10:53:01 +01:00
regexowl
607f2ee3c7 ImagesTable: Fix "no-unnecessary-condition" issues 2025-01-25 21:06:00 -06:00
Gianluca Zuccarelli
3e6985988a store/backendApi: export the relevant store api
Since the implementation of the cockpitApi and imageBuilderApi are different,
we should make sure to export the correct one depending on the environment
we are in.
2025-01-16 15:45:41 -06:00
regexowl
d3e76c6d49 ImagesTable: Fix version filter
This fixes the "All versions" / "Newest" filter in the blueprint images table.
2025-01-08 17:30:21 +01:00
regexowl
add30905ab ImagesTable: Fix images header
"All images" should change to "<blueprint_name> images" when a blueprint is selected.
2025-01-08 15:11:13 +01:00
regexowl
34b4f243ff ImagesTable: Fix compose filtering by selected blueprint
The filtering was defaulting to version '1', making images of other versions not appear when selecting a blueprint.

How to reproduce:
1. create a blueprint
2. build an image
3. edit the blueprint to get it to version 2
4. build another image

Current behaviour:
- only image with version 1 is visible

After fix:
- both image for version 1 and image for version 2 of the blueprint should be visible when the blueprint is selected
2025-01-08 13:11:38 +01:00
regexowl
5e4f20edf1 src: Make spinners spin
This replaces the `<InProgressIcon>` with animated spinners to indicate that something is happening.
2025-01-06 10:17:49 +01:00
Gianluca Zuccarelli
0d4bb26e0f multiple: check when var is possibly undefined
In cases where a field on an object might be undefined,
rather omit the value than set the field to undefined.
2024-12-06 12:02:34 -06:00
Gianluca Zuccarelli
d4436dc6a9 multiple: set sane defaults
Set sane defaults for some types rather than setting them to `undefined`.
This is so that we can set `exactOptionalPropertyTypes` to true in our
tsconfig.
2024-12-06 12:02:34 -06:00
Gianluca Zuccarelli
877497f81c pagination 2024-12-06 12:02:34 -06:00
Gianluca Zuccarelli
4125a9cd3b multiple: set pagination defaults
Set pagination defaults, otherwise these might be `undefined`.
2024-12-06 12:02:34 -06:00
Gianluca Zuccarelli
bad77421ae api: union undefined
Set the option to generate union undefined types for objects that have
optional items. This will allow us to enable `exactOptionalPropertyTypes`
in our tsconfig [1].

[1] This is a recommended setting, see:
https://www.typescriptlang.org/tsconfig/#exactOptionalPropertyTypes
2024-12-06 12:02:34 -06:00
Ondřej Ezr
f270139ec1 ImagesTable: add RHEL 9.5 display value 2024-11-28 09:01:08 +01:00
regexowl
f48e1bfcb5 ImagesTable: Unify pagination format with Repositories
This makes bottom pagination format on ImagesTable consistent with the format being used in Repositories service.
2024-11-25 19:04:54 +01:00
regexowl
d8bb3485d8 Wizard: Add v5 PF slug to classNames
This adds v5 PF slug to classNames throughout the code base, making the formatting work properly.
2024-11-25 16:54:59 +01:00
regexowl
4f728874f7 ImagesTable: Fix image name spacing
This adds a component value to the image name, making the spacing work correctly.
2024-11-25 16:32:10 +01:00
Simon Steinbeiss
6208596b35 ImageBuildStatus.css: Add version to status colors
Add the v5 slug to the status colors as the unversioned colors don't
seem to be defined in PatternFly anymore. I haven't looked at the
history, but I presume this was done at some point during v6
development, as the upstream colors now contain the v6 slug:
https://www.patternfly.org/components/banner/design-guidelines/#usage

Fixes #2611
2024-11-25 13:22:46 +01:00
Sanne Raymaekers
73dad35e45 src/ImagesTable: support RHEL 10 Beta 2024-11-19 11:21:57 +01:00
Gianluca Zuccarelli
41cdc7d553 ImageTable: use dynamic get blueprints hook
Export a dynamic query hook depending on which backend is
being used (service or on-prem). This means we can just import
a query from the new `backendApi` and it will work for both
on-prem and the service.
2024-10-30 10:36:18 -05:00
Sanne Raymaekers
cd70d1ff95 Wizard: add RHEL 9 beta
Only exposed in preview.
2024-10-17 10:22:30 +02:00
regexowl
5d73adfbd6 src: Absolute imports
While running build there was a bunch of PatternFly imports that were resolved as undefined. This adds an absolute path for each of those imports.
2024-08-09 09:22:17 +02:00
Ondrej Ezr
e1057208f3 Blueprint: show basic version diff 2024-08-05 18:48:08 +02:00
regexowl
9a1d348a77 src: Resolve problems ater updating API
'centos-8' was dropped from Distributions, causing a few problems. This resolves them.
2024-08-02 11:31:20 +02:00
regexowl
fee43d8917 ImagesTable: Update wording of CentOS 8 alert
This adds information about CentOS 8 being automatically replaces with CentOS 9 when editing a blueprint.
2024-07-30 16:16:43 +02:00
Michal Gold
1b35aa88da imageTable: link images to parent blueprint <HMS-4353>
this commit add link to parent blueprint from specific image
2024-07-25 09:35:05 +02:00
Michal Gold
7138552663 add unit test that check disabling build image button when uncheck all targets 2024-06-25 10:21:03 +02:00
Michal Gold
39b29e303c buildImageButton: add support of building image with mulitple targets <HMS-4066>
this commit add support of building an image with mulitple targets,
when user build an image, he can choose which targets he wants to build.
2024-06-25 10:21:03 +02:00
Ondrej Ezr
5fcc80d2db Wizard: Drop the WizardV1 2024-06-19 09:10:22 +02:00
Amir
54d09d636e feat(HMS-4200): remove blueprint endpoints /experimental 2024-06-18 17:29:50 +02:00
regexowl
388069ec11 V2Wizard: Move targets to a constant
This moves mapping between target short and full names to the const to make it reusable.
2024-06-18 09:19:45 +02:00
regexowl
e0b435cd0a ImagesTable: Add alert for CentOS Stream 8 blueprints
This adds an alert about CentOS Stream 8 being EOL.
2024-06-12 15:28:59 +02:00
regexowl
7e02a3adad LandingPage/ImagesTable: Shrink headings
This bumps the "Blueprints" and "All images" headings from 2XL to XL as per mocks.
2024-06-04 18:02:19 +03:00
Sanne Raymaekers
2a7321247a src: add rhel-8.10 2024-05-27 16:21:54 +02:00
Florian Schüller
77fd8d6b45 Status.tsx: show as many different error types as possible (HMS-1442) 2024-05-27 11:11:17 +02:00
Michal Gold
8092717197 WizardV2: add 'some' word to image table toolbar title 2024-05-21 14:55:20 +02:00
regexowl
8a25ec66f3 src: Fix "Table headers must have an accessible name" warning
The tests output contained following warning:

```
console.warn
    Th: Table headers must have an accessible name. If the Th is intended to be visually empty, pass in screenReaderText. If the Th contains only non-text, interactive content such as a checkbox or expand toggle, pass in an aria-label.
```

This fixes the warning by adding an `aria-label` to every empty table heading cell.
2024-05-07 18:20:08 +02:00
regexowl
a6ff016662 LandingPage / ImagesTable: Set max width for the ImagesTable
Fixes #933

This applies `isWidthLimited` to the section containing ImagesTable, ensuring the table doesn't get stretched out too much.

The were also two sets of empty tags around ImagesTable return, this removes one of them.
2024-05-07 16:40:56 +02:00
regexowl
034843a708 src: Add rhel-94
This adds rhel94.
2024-05-02 16:44:33 +02:00
Florian Schüller
c1d6053083 ImagesTable: show detailed time when hovering over the "Updated" column 2024-04-30 10:55:06 +02:00