Skip to content

Frontend: Implement 404 page for resource not found

Briley Sandlin requested to merge 408725-404-page-ci-cd-resource into master

What does this MR do and why?

Related to #408725 (closed)

Adding an empty state for the CI/CD Resource Details page. This occurs when the ID for the resource cannot be found, or when the user does not have permission to view the resource.

Screenshots or screen recordings

How to set up and validate locally

Prerequisites

  1. Enable the feature flag Feature.enable(:ci_namespace_catalog_experimental)
  2. To set projects as a ci catalog resource, follow the instructions in this MR

To Test

  1. Navigate to http://127.0.0.1:3000/flightjs/Flight/-/ci/catalog/resources/1 (replace project path with your project of choice)
  2. You should be able to see the details page
  3. In the URL, change the 1 to something that you know doesn't exist, like 555
  4. You should be able to see the empty state.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Briley Sandlin

Merge request reports

Loading