Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: RedHatInsights/frontend-components
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: @redhat-cloud-services/frontend-components-config-utilities-4.0.6
Choose a base ref
...
head repository: RedHatInsights/frontend-components
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: @redhat-cloud-services/frontend-components-config-utilities-4.1.0
Choose a head ref

Commits on Jan 16, 2025

  1. Copy the full SHA
    22049a9 View commit details

Commits on Jan 22, 2025

  1. chore(deps-dev): bump vite from 5.4.10 to 5.4.14

    Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.4.10 to 5.4.14.
    - [Release notes](https://github.com/vitejs/vite/releases)
    - [Changelog](https://github.com/vitejs/vite/blob/v5.4.14/packages/vite/CHANGELOG.md)
    - [Commits](https://github.com/vitejs/vite/commits/v5.4.14/packages/vite)
    
    ---
    updated-dependencies:
    - dependency-name: vite
      dependency-type: direct:development
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] committed Jan 22, 2025
    Copy the full SHA
    9dbdd84 View commit details
  2. feat: add single select filter component

    This PR adds a single select filter dropdown component for use with the
    Conditional Filter. It is used on conjuction with the `singleSelect`
    conditional filter type. Docs are included in the PR.
    
    To convert a radio filter to single select, you should be able to simply
    change the type from `radio` to `singleSelect`.
    Michael Johnson committed Jan 22, 2025
    Copy the full SHA
    00bcfd8 View commit details

Commits on Jan 23, 2025

  1. Merge pull request #2150 from johnsonm325/add-single-select-filter

    feat: add single select filter component
    johnsonm325 authored Jan 23, 2025
    Copy the full SHA
    8c7d6db View commit details
  2. Copy the full SHA
    e34c238 View commit details
  3. Copy the full SHA
    1d6434f View commit details
  4. chore: bump @redhat-cloud-services/frontend-components-advisor-compon…

    …ents to 2.0.10 [skip ci]
    nacho-bot committed Jan 23, 2025
    Copy the full SHA
    476318c View commit details
  5. Copy the full SHA
    fa6e070 View commit details
  6. Copy the full SHA
    729558b View commit details

Commits on Jan 27, 2025

  1. Copy the full SHA
    4895cd2 View commit details
  2. Copy the full SHA
    987b6c3 View commit details
  3. Copy the full SHA
    0ba24b1 View commit details
  4. Merge pull request #2158 from Hyperkid123/fix-ci-post-target

    fix(build): fix release postTarget nested dependencies
    Hyperkid123 authored Jan 27, 2025
    Copy the full SHA
    426395f View commit details
  5. Copy the full SHA
    2b774cd View commit details
  6. Copy the full SHA
    b2beb1a View commit details
  7. Copy the full SHA
    fd825b3 View commit details
  8. chore: bump @redhat-cloud-services/frontend-components-advisor-compon…

    …ents to 2.0.11 [skip ci]
    nacho-bot committed Jan 27, 2025
    Copy the full SHA
    7ffa1c4 View commit details
  9. Copy the full SHA
    f7f2a8d View commit details
  10. Copy the full SHA
    dc02579 View commit details
  11. Copy the full SHA
    0fd60b2 View commit details
  12. Copy the full SHA
    bb522a7 View commit details
  13. Copy the full SHA
    a5b2dbd View commit details
  14. Copy the full SHA
    b31a445 View commit details
  15. Copy the full SHA
    27458ac View commit details
  16. Copy the full SHA
    8c7e221 View commit details
  17. Copy the full SHA
    f9cb5a8 View commit details
  18. Copy the full SHA
    dbf5f3f View commit details
  19. Copy the full SHA
    c21466f View commit details
  20. Copy the full SHA
    1f9fe0f View commit details
  21. Copy the full SHA
    f8f477b View commit details
  22. Copy the full SHA
    3183360 View commit details
  23. Copy the full SHA
    591e9d5 View commit details
  24. Copy the full SHA
    7aaa1b9 View commit details

Commits on Jan 28, 2025

  1. Merge pull request #2157 from RedHatInsights/feo-local-development

    Feo local development support.
    Hyperkid123 authored Jan 28, 2025
    Copy the full SHA
    8b38b42 View commit details
  2. Copy the full SHA
    cfad6f4 View commit details
Showing with 2,921 additions and 133 deletions.
  1. +7 −0 docs/migrations/frontend-components-config.md
  2. +7 −0 docs/migrations/frontend-coomponents-config-utilities.md
  3. +48 −0 navnotes.md
  4. +5 −1 nx.json
  5. +25 −11 package-lock.json
  6. +1 −1 package.json
  7. +15 −0 packages/advisor-components/CHANGELOG.md
  8. +1 −1 packages/advisor-components/package.json
  9. +9 −5 packages/advisor-components/project.json
  10. +7 −0 packages/chrome/CHANGELOG.md
  11. +1 −1 packages/chrome/package.json
  12. +7 −3 packages/chrome/project.json
  13. +17 −0 packages/components/CHANGELOG.md
  14. +49 −1 packages/components/doc/conditionalFilter.md
  15. +2 −3 packages/components/doc/filters.md
  16. +1 −1 packages/components/package.json
  17. +9 −5 packages/components/project.json
  18. +9 −0 packages/components/src/ConditionalFilter/ConditionalFilter.tsx
  19. +56 −0 packages/components/src/ConditionalFilter/SingleSelectFilter.tests.js
  20. +88 −0 packages/components/src/ConditionalFilter/SingleSelectFilter.tsx
  21. +1 −1 packages/components/src/ConditionalFilter/conditionalFilterConstants.test.js
  22. +6 −4 packages/components/src/ConditionalFilter/conditionalFilterConstants.ts
  23. +2 −0 packages/components/src/ConditionalFilter/index.ts
  24. +14 −0 packages/config-utils/CHANGELOG.md
  25. +3 −1 packages/config-utils/package.json
  26. +8 −1 packages/config-utils/project.json
  27. +3 −0 packages/config-utils/src/feo/check-outgoing-requests.ts
  28. +25 −0 packages/config-utils/src/feo/crd-check.ts
  29. +143 −0 packages/config-utils/src/feo/feo-types.ts
  30. +61 −0 packages/config-utils/src/feo/module-interceptor.test.ts
  31. +11 −0 packages/config-utils/src/feo/module-interceptor.ts
  32. +684 −0 packages/config-utils/src/feo/navigation-interceptor.test.ts
  33. +196 −0 packages/config-utils/src/feo/navigation-interceptor.ts
  34. +58 −0 packages/config-utils/src/feo/search-interceptor.test.ts
  35. +9 −0 packages/config-utils/src/feo/search-interceptor.ts
  36. +127 −0 packages/config-utils/src/feo/service-tiles-interceptor.test.ts
  37. +42 −0 packages/config-utils/src/feo/service-tiles-interceptor.ts
  38. +675 −0 packages/config-utils/src/feo/spec/frontend-crd.schema.json
  39. +94 −0 packages/config-utils/src/feo/validate-frontend-crd.test.ts
  40. +44 −0 packages/config-utils/src/feo/validate-frontend-crd.ts
  41. +35 −0 packages/config-utils/src/feo/widget-registry-interceptor.test.ts
  42. +10 −0 packages/config-utils/src/feo/widget-registry-interceptor.ts
  43. +1 −0 packages/config-utils/src/index.ts
  44. +48 −0 packages/config-utils/src/proxy.ts
  45. +1 −1 packages/config-utils/tsconfig.json
  46. +1 −1 packages/config/.eslintrc
  47. +5 −0 packages/config/CHANGELOG.md
  48. +1 −1 packages/config/package.json
  49. +22 −2 packages/config/src/bin/prod.webpack.config.ts
  50. +4 −1 packages/config/src/lib/config.test.js
  51. +32 −0 packages/config/src/lib/crd-mock.yaml
  52. +56 −49 packages/config/src/lib/createConfig.ts
  53. +1 −0 packages/config/src/lib/fec.config.ts
  54. +2 −2 packages/executors/src/executors/builder/executor.ts
  55. +16 −0 packages/notifications/CHANGELOG.md
  56. +1 −1 packages/notifications/package.json
  57. +9 −5 packages/notifications/project.json
  58. +16 −0 packages/remediations/CHANGELOG.md
  59. +1 −1 packages/remediations/package.json
  60. +9 −5 packages/remediations/project.json
  61. +16 −0 packages/rule-components/CHANGELOG.md
  62. +1 −1 packages/rule-components/package.json
  63. +9 −5 packages/rule-components/project.json
  64. +7 −0 packages/testing/CHANGELOG.md
  65. +1 −1 packages/testing/package.json
  66. +9 −5 packages/testing/project.json
  67. +10 −0 packages/translations/CHANGELOG.md
  68. +1 −1 packages/translations/package.json
  69. +9 −5 packages/translations/project.json
  70. +7 −0 packages/utils/CHANGELOG.md
  71. +1 −1 packages/utils/package.json
  72. +9 −5 packages/utils/project.json
7 changes: 7 additions & 0 deletions docs/migrations/frontend-components-config.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Frontend components config migrations

## 6.3.x -> 6.4.x

The configuration is now using data from the Frontend CRD. The Frontend CRD is now mandatory to use the shared build configuration.

The default location of the CRD is **deploy/frontend.yaml**. If the CRD is not located at this path in your frontend repository, please use the `frontendCRDPath` configuration option in the `fec.config.js` or as an attribute of the create config function if you are using custom webpack configuration.
7 changes: 7 additions & 0 deletions docs/migrations/frontend-coomponents-config-utilities.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Frontend components config utilities

# 4.0.x -> 4.1.x

The proxy configuration is now using data from the Frontend CRD. The Frontend CRD is now mandatory to use the development proxy.

The default location of the CRD is **deploy/frontend.yaml**. If the CRD is not located at this path in your frontend repository, please use the `frontendCRDPath` as an attribute of the proxy function if you are using custom webpack configuration.
48 changes: 48 additions & 0 deletions navnotes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Nav notes updates

## Current attributes

### appId

For some reason nav items in expandable item require `appId` to show. This should not be required a it needs to b fixed in chrome: https://github.com/RedHatInsights/insights-chrome/blob/master/src/components/Navigation/ChromeNavExpandable.tsx#L7

### id

Id should be mandatory attribute of any non segment nav item


## Missing FEO nav attributes

### bundleSegmentRef

Required to match nav item to bundle segment from frontend crd.

Nav items should inherit this from the bundle segment they come from.

Should be needed only by the first level.

### segmentRef

Same as `bundleSegmentRef`, but for global segments.

### frontendRef

Required to match nav item in bundle to current app

# Search interceptor notes

## frontendRef

search entries need a `frontendRef` attribute. Without the attribute, we can modify/add frontend entries, but we can't remove them

# Service tiles interceptor

## frontendRef

Service tile entries need a `frontendRef` attribute. Without the attribute, we can modify/add frontend entries, but we can't remove them

# Widget registry interceptor

## frontendRef

Widget registry entries need a `frontendRef` attribute. Without the attribute, we can modify/add frontend entries, but we can't remove them
6 changes: 5 additions & 1 deletion nx.json
Original file line number Diff line number Diff line change
@@ -20,7 +20,11 @@
"inputs": ["default", "{workspaceRoot}/.eslintrc.js", "{workspaceRoot}/.eslintignore", "{workspaceRoot}/eslint.config.js"]
},
"test:unit": {
"dependsOn": ["^test"],
"dependsOn": ["^test:unit"],
"cache": true
},
"test:component": {
"dependsOn": ["^test:component"],
"cache": true
},
"version": {
36 changes: 25 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -102,7 +102,7 @@
"ts-jest": "^29.2.5",
"ts-patch": "^3.2.1",
"typescript": "^5.6.3",
"vite": "^5.4.10",
"vite": "^5.4.14",
"vitest": "^1.6.0",
"whatwg-fetch": "^3.6.20"
},
15 changes: 15 additions & 0 deletions packages/advisor-components/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,21 @@

This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).

## [2.0.11](https://github.com/RedHatInsights/frontend-components/compare/@redhat-cloud-services/frontend-components-advisor-components-2.0.10...@redhat-cloud-services/frontend-components-advisor-components-2.0.11) (2025-01-27)

### Dependency Updates

* `@redhat-cloud-services/frontend-components` updated to version `5.2.1`

### Bug Fixes

* **build:** fix release postTarget nested dependencies ([4895cd2](https://github.com/RedHatInsights/frontend-components/commit/4895cd2eba32336a220ddec442916858400ebb3e))

## [2.0.10](https://github.com/RedHatInsights/frontend-components/compare/@redhat-cloud-services/frontend-components-advisor-components-2.0.9...@redhat-cloud-services/frontend-components-advisor-components-2.0.10) (2025-01-23)

### Dependency Updates

* `@redhat-cloud-services/frontend-components` updated to version `5.2.0`
## [2.0.9](https://github.com/RedHatInsights/frontend-components/compare/@redhat-cloud-services/frontend-components-advisor-components-2.0.8...@redhat-cloud-services/frontend-components-advisor-components-2.0.9) (2025-01-16)

### Dependency Updates
2 changes: 1 addition & 1 deletion packages/advisor-components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@redhat-cloud-services/frontend-components-advisor-components",
"version": "2.0.9",
"version": "2.0.11",
"description": "Components to be used in Advisor applications and integrations.",
"main": "index.js",
"module": "esm/index.js",
14 changes: 9 additions & 5 deletions packages/advisor-components/project.json
Original file line number Diff line number Diff line change
@@ -18,22 +18,22 @@
},
"build:styles": {
"executor": "@redhat-cloud-services/frontend-components-executors:build-styles",
"dependsOn": ["^build:styles", "build:bundles"],
"dependsOn": ["^build:styles"],
"options": {
"outputPath": "dist/@redhat-cloud-services/frontend-components-advisor-components",
"sourceDir": "packages/advisor-components"
}
},
"build:packages": {
"dependsOn": ["^build:packages", "build:bundles"],
"dependsOn": ["^build:packages"],
"executor": "@redhat-cloud-services/frontend-components-executors:build-packages",
"options": {
"outputPath": "dist/@redhat-cloud-services/frontend-components-advisor-components",
"forceTypes": true
}
},
"transform:scss": {
"dependsOn": ["^transform:scss", "build:bundles"],
"dependsOn": ["^transform:scss"],
"executor": "@redhat-cloud-services/frontend-components-executors:transform-scss",
"options": {
"outputPath": "dist/@redhat-cloud-services/frontend-components-advisor-components"
@@ -46,8 +46,12 @@
}
},
"build": {
"executor": "nx:noop",
"dependsOn": ["^build", "build:styles", "build:packages", "transform:scss"]
"executor": "nx:run-commands",
"options": {
"parallel": false,
"commands": ["nx run @redhat-cloud-services/frontend-components-advisor-components:build:bundles", "nx run @redhat-cloud-services/frontend-components-advisor-components:build:styles", "nx run @redhat-cloud-services/frontend-components-advisor-components:build:packages", "nx run @redhat-cloud-services/frontend-components-advisor-components:transform:scss"]
},
"dependsOn": ["^build"]
},
"lint": {
"executor": "@nx/eslint:lint",
7 changes: 7 additions & 0 deletions packages/chrome/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,13 @@

This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).

## [1.0.16](https://github.com/RedHatInsights/frontend-components/compare/@redhat-cloud-services/chrome-1.0.15...@redhat-cloud-services/chrome-1.0.16) (2025-01-27)


### Bug Fixes

* **build:** fix release postTarget nested dependencies ([4895cd2](https://github.com/RedHatInsights/frontend-components/commit/4895cd2eba32336a220ddec442916858400ebb3e))

## [1.0.15](https://github.com/RedHatInsights/frontend-components/compare/@redhat-cloud-services/chrome-1.0.14...@redhat-cloud-services/chrome-1.0.15) (2025-01-15)


2 changes: 1 addition & 1 deletion packages/chrome/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@redhat-cloud-services/chrome",
"version": "1.0.15",
"version": "1.0.16",
"description": "Chrome functions for RedHat Hybrid cloud console.",
"main": "index.js",
"typings": "index.d.ts",
10 changes: 7 additions & 3 deletions packages/chrome/project.json
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@
}
},
"build:packages": {
"dependsOn": ["^build:packages", "build:bundles"],
"dependsOn": ["^build:packages"],
"executor": "@redhat-cloud-services/frontend-components-executors:build-packages",
"options": {
"outputPath": "dist/@redhat-cloud-services/frontend-components",
@@ -31,8 +31,12 @@
}
},
"build": {
"executor": "nx:noop",
"dependsOn": ["^build", "build:packages"]
"executor": "nx:run-commands",
"options": {
"parallel": false,
"commands": ["nx run @redhat-cloud-services/chrome:build:bundles", "nx run @redhat-cloud-services/chrome:build:packages"]
},
"dependsOn": ["^build"]
},
"lint": {
"executor": "@nx/eslint:lint",
17 changes: 17 additions & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,23 @@

This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).

## [5.2.1](https://github.com/RedHatInsights/frontend-components/compare/@redhat-cloud-services/frontend-components-5.2.0...@redhat-cloud-services/frontend-components-5.2.1) (2025-01-27)

### Dependency Updates

* `@redhat-cloud-services/frontend-components-utilities` updated to version `5.0.8`

### Bug Fixes

* **build:** fix release postTarget nested dependencies ([4895cd2](https://github.com/RedHatInsights/frontend-components/commit/4895cd2eba32336a220ddec442916858400ebb3e))

## [5.2.0](https://github.com/RedHatInsights/frontend-components/compare/@redhat-cloud-services/frontend-components-5.1.3...@redhat-cloud-services/frontend-components-5.2.0) (2025-01-23)


### Features

* add single select filter component ([00bcfd8](https://github.com/RedHatInsights/frontend-components/commit/00bcfd816dfe0413bf1e16315c6401b054900fb1))

## [5.1.3](https://github.com/RedHatInsights/frontend-components/compare/@redhat-cloud-services/frontend-components-5.1.2...@redhat-cloud-services/frontend-components-5.1.3) (2025-01-16)


50 changes: 49 additions & 1 deletion packages/components/doc/conditionalFilter.md
Original file line number Diff line number Diff line change
@@ -294,7 +294,7 @@ class SomeCmp extends Component {
}
```

### *) Custom component
### 5) Custom component
If you want to display some custom component, for instance color picker, date picker or something more complicated you can use this type.

```JSX
@@ -321,3 +321,51 @@ class SomeCmp extends Component {
{
children: Proptypes.node
}
```
### 6) Single select component
This component is similiar to `Radio` with a slight variation that you can select only one value. Props passed to this component are same as with `Radio`.
```JSX
import React, { Component, useState } from 'react';
import { ConditionalFilter, conditionalFilterType } from '@redhat-cloud-services/frontend-components';

class SomeCmp extends Component {
render() {
const [ value, onChange ] = useState();
return (
<ConditionalFilter items={[{
type: conditionalFilterType.singleSelect,
label: 'Single Select',
value: 'singleSelect',
filterValues: {
onChange: (event, value) => onChange(value),
value,
items: [
{ label: 'First value', value: 'first' },
{ label: 'Second value', value: 'second' },
{ label: 'Third value', value: 'third' }
],
placeholder: 'placeholder'
}
}]}
/>
);
}
}
```
* `onChange` - callback has parameters `event`, `selection` where `selection` is curently selected value.
* Props - passed from `filterValues`
```JS
{
onChange: PropTypes.func,
value: PropTypes.oneOfType([ PropTypes.string, PropTypes.shape({
label: PropTypes.node,
value: PropTypes.string
}) ]),
placeholder: PropTypes.string,
items: PropTypes.arrayOf(PropTypes.shape({
value: PropTypes.string,
label: PropTypes.node
}))
}
```
Loading