Skip to content

RedHatInsights/insights-rbac-ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3,205 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Insights RBAC Service UI

Build Status Maintainability Test Coverage

Storybook

Interactive component documentation and stories are available on Chromatic:

Stories are automatically deployed on:

Federated Modules

This application exposes components via module federation for use by other Red Hat Console applications.

See the Module Federation Guide for available modules, usage examples, and API reference.

Contributing

This repository is now using experimental workflow checks. Your commits must use the conventional commits format.

Getting Started

Prerequisites

This project requires Node.js LTS (currently Node.js 20.x) for both local development and CI/CD. Using other Node.js versions may cause compatibility issues, particularly with Storybook builds.

Important: The project uses CommonJS modules for Storybook configuration and requires Node.js LTS for proper module resolution and TypeScript compilation.

# Check your Node.js version
node --version

# If you need to switch to LTS, use nvm or your preferred version manager
nvm use --lts

Installation and Setup

npm install
npm run start

Available Scripts

This project includes several npm scripts that automate various tasks. Below are descriptions of some of the most commonly used scripts:

npm start

Starts the development server. This script will compile your code and open a browser window displaying the application. It also sets up hot reloading so changes in your code are reflected instantly.

npm run build

Builds the production version of the application. The output will be placed in the dist directory, ready for deployment.

npm test

Runs the unit tests suite using Jest.

npm run test:e2e

Runs the Playwright E2E test suite against stage. See e2e/README.md for complete setup instructions including authentication and data seeding.

npm run lint

Runs ESLint to check for code style issues and potential errors in your JavaScript/TypeScript files. It will report any problems found according to the rules defined in the .eslintrc configuration file.

npm run format

Formats all JavaScript, TypeScript, and other supported files using Prettier. This ensures consistent formatting across the entire project.

License

This project is available as open source under the terms of the Apache License 2.0.

Quickstarts Test Environment

In order to test current Quickstarts tutorials iteration, you must enable the testing local variable through your browser's console.

localStorage.setItem('quickstarts:enabled', true)

You'll be able to see the buttons for testing both the quickstart tutorial and the catalog page. Once the flag is enabled, you can access the catalog directly via its route: .../settings/rbac/quickstarts-test

About

RBAC UI

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 49