Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added image-builder-frontend repository as a Cockpit package #2424

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Commits on Sep 23, 2024

  1. Configure Webpack and add Cockpit compatibility

    changes that allow to build and run in both onPremise (Cockpit) and Saas environments.
    
    Configured webpack with necessary loaders and plugins.
    `AppCockpit` file and `cockpit:build` script were added for Cockpit compatibility.
    mgold1234 committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    fa0f6a2 View commit details
    Browse the repository at this point in the history
  2. create new store and define single reducer

    We need to integrate a new API service for managing blueprints and update the Redux store to handle blueprint-related data in a Cockpit environment.
    This will allow us to fetch, store, and manage blueprints effectively within the application.
    Created a new 'cockpitApi' service to handle the API calls related to blueprints in cockpit env.
    Added a 'blueprintsReducer' to the Redux store to manage blueprint state.
    Added a new 'emptyCockpitApi' file for the blueprint API setup, including type definitions and query configurations.
    mgold1234 committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    05f5989 View commit details
    Browse the repository at this point in the history
  3. fix relevant component to be able to support onPrem environment.

    - define isOnPremise boolean variable to check if its onPrem env.
    - define useGetFeatureFlag hook to return false in on-premise environments and dynamically call the appropriate hook
    (useFlag or useFlagWithEphemDefault) based on the feature flag name.
    Improved structure by avoiding hook calls inside conditionals to adhere to React rules
    mgold1234 committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    a91034d View commit details
    Browse the repository at this point in the history
  4. fix the symbolic link issue

    we have issue when running the cockpit:build script- the symbolic
    link was not created for everyone.
    fix it by adding a condition that check where the cockpit definition exist in the machine and
    create the symbolic link there.
    mgold1234 committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    b6e1d35 View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2024

  1. Configuration menu
    Copy the full SHA
    d3d915e View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2024

  1. change cockpit script

    add alias to webpack config
    1) api alias defines the path to onPrem cockpitAp file
    2) pathRes alias define path for onPrem env
    3) getFeatureFlag alias define the path to file with flags
    mgold1234 committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    4be467d View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2024

  1. Configuration menu
    Copy the full SHA
    04e6f5b View commit details
    Browse the repository at this point in the history