@gravitee/graphene-policy-studio 3.41.0 → 3.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/docs/test-ids.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Policy Studio test ids
2
2
 
3
- > **Partly rendered.** FOUND-403 renders the root, the flows sidebar and groups, the flow items, the delete flow dialog, the flow info bar and the flow execution settings. FOUND-404 renders the flow form sheet. FOUND-405 renders the canvas states, the phase canvas and the steps. The other sections are not rendered yet: FOUND-406 and FOUND-407 add them area by area. The e2e team signed off on the strategy and the key rules (FOUND-401). The one open point is the shared policy group `<policyId>`. Once an id ships, it is public API, so changing a key rule that already renders ids is a major.
3
+ > **Partly rendered.** FOUND-403 renders the root, the flows sidebar and groups, the flow items, the delete flow dialog, the flow info bar and the flow execution settings. FOUND-404 renders the flow form sheet. FOUND-405 renders the canvas states, the phase canvas and the steps. FOUND-406 renders the policy catalog and the quick insert. The other sections are not rendered yet: FOUND-407 adds them area by area. The e2e team signed off on the strategy and the key rules (FOUND-401). The one open point is the shared policy group `<policyId>`. Once an id ships, it is public API, so changing a key rule that already renders ids is a major.
4
4
 
5
5
  `PolicyStudio` is the one Graphene component that sets test ids without a consumer id, because a consumer can't tag anything inside it. The general rules, grammar and shared vocabulary are in the test id contract ([`.ai/test-ids.md`](../../../.ai/test-ids.md)). This file lists every id the studio renders.
6
6
 
@@ -10,6 +10,7 @@
10
10
  - A `data-testid` on `PolicyStudio` replaces the default: `<PolicyStudio data-testid="api-flows" />` renders `api-flows`, `api-flows-save`, and so on.
11
11
  - Two studios on one page each need their own `data-testid`.
12
12
  - `PolicyStudioLayout`, `FlowsSidebar`, `PolicyCatalogPane` and the other sub-exports set no default. They take the prefix from a `data-testid` on `PolicyStudioProvider`, and render the same ids as inside `PolicyStudio`. No id on the provider, no ids.
13
+ - `PolicyQuickInsert` is the exception: it doesn't know its phase, so it takes a `data-testid` for its popover and derives `-search`, `-option-<policyId>` and `-browse` from it. Inside the studio that id is `${p}-phase-<phase>-quick-insert`.
13
14
 
14
15
  ## Stability
15
16
 
@@ -26,7 +27,7 @@ These ids are public API under the contract's stability rule. Renaming or removi
26
27
  | `<tab>` | A part word for the phase tabs of message and native APIs: `initial-connection`, `event-messages`, `global`. | Contract |
27
28
  | `<planId>` | `plan.id` as the consumer passes it, verbatim. | Contract |
28
29
  | `<policyId>` | The policy plugin id (`policy.id`), verbatim: `rate-limit`, `transform-headers`. For a shared policy group, the `id` the consumer passes for it (open: the APIM id or the cross id). | Contract, SPG open |
29
- | `<category>` | `policy.category`, verbatim. | Contract |
30
+ | `<category>` | `policy.category`, verbatim; `others` when the policy has none, `shared-policy-group` for a shared policy group. | Contract |
30
31
  | `<method>` | The MCP method name, verbatim: `tools/call`, `notifications/initialized`. | Contract |
31
32
  | `<METHOD>`, `<operator>`, `<mode>`, `<operation>` | The selector or execution value, verbatim: `GET`, `STARTS_WITH`, `BEST_MATCH`, `PUBLISH`. | Contract |
32
33
  | `<entrypoint>` | The entrypoint type, verbatim (`entrypointsInfo[].type`). | Contract |
@@ -188,25 +189,27 @@ The add sheet has no close button; the edit sheet hides it while Discard shows.
188
189
 
189
190
  Each phase has its own quick insert, so it nests under the phase.
190
191
 
191
- | Id | Element | Key rule | Journeys |
192
- | --------------------------------------------------- | ---------------------------------------------------- | ----------------------- | ---------- |
193
- | `${p}-phase-<phase>-quick-insert` | Quick insert popover | `<phase>` | J1, J2, J3 |
194
- | `${p}-phase-<phase>-quick-insert-search` | Search input | `<phase>` | — |
195
- | `${p}-phase-<phase>-quick-insert-option-<policyId>` | Policy or shared policy group entry | `<phase>`, `<policyId>` | J1, J2, J3 |
196
- | `${p}-phase-<phase>-quick-insert-browse` | "Browse full catalog" button | `<phase>` | — |
197
- | `${p}-catalog` | Catalog pane | — | — |
198
- | `${p}-catalog-back` | The studio's Back button that leaves the catalog | — | — |
199
- | `${p}-catalog-search` | Search input | — | — |
200
- | `${p}-catalog-category` | Category filter trigger | — | J3 |
201
- | `${p}-catalog-category-option-<category>` | Category checkbox | `<category>` | J3 |
202
- | `${p}-catalog-category-clear` | Clear filter button | — | — |
203
- | `${p}-catalog-empty` | No matching policy | — | — |
204
- | `${p}-catalog-policy-<policyId>` | Catalog entry (opens the details) | `<policyId>` | — |
205
- | `${p}-catalog-policy-<policyId>-add` | The entry's add button | `<policyId>` | J3 |
206
- | `${p}-catalog-details` | Focused policy details | — | — |
207
- | `${p}-catalog-details-add` | Add button in the details | — | — |
208
- | `${p}-catalog-details-back` | "Back to policy list" | — | — |
209
- | `${p}-catalog-details-docs` | Documentation in the details (nesting prefix `docs`) | — | — |
192
+ The catalog has two layouts, picked from the studio's width. When the studio is at least 1100px wide, the details open next to the list and there is no `-details-back`. When it is narrower, the details replace the list. The list stays in the DOM, hidden, so its `-catalog-policy-*` ids still match while the details are open, but they aren't visible: go back to the list (`-catalog-details-back`) before clicking one.
193
+
194
+ | Id | Element | Key rule | Journeys |
195
+ | --------------------------------------------------- | ------------------------------------------------------------------------------------- | ----------------------- | ---------- |
196
+ | `${p}-phase-<phase>-quick-insert` | Quick insert popover | `<phase>` | J1, J2, J3 |
197
+ | `${p}-phase-<phase>-quick-insert-search` | Search input | `<phase>` | — |
198
+ | `${p}-phase-<phase>-quick-insert-option-<policyId>` | Policy or shared policy group entry | `<phase>`, `<policyId>` | J1, J2, J3 |
199
+ | `${p}-phase-<phase>-quick-insert-browse` | "Browse full catalog" button | `<phase>` | — |
200
+ | `${p}-catalog` | Catalog pane | — | — |
201
+ | `${p}-catalog-back` | The studio's Back button that leaves the catalog | — | — |
202
+ | `${p}-catalog-close` | Close button of the pane's own header (used on its own; the studio hides that header) | — | — |
203
+ | `${p}-catalog-search` | Search input | — | — |
204
+ | `${p}-catalog-category` | Category filter trigger | — | J3 |
205
+ | `${p}-catalog-category-option-<category>` | Category checkbox | `<category>` | J3 |
206
+ | `${p}-catalog-category-clear` | Clear filter button | — | — |
207
+ | `${p}-catalog-empty` | No matching policy | — | — |
208
+ | `${p}-catalog-policy-<policyId>` | Catalog entry (opens the details) | `<policyId>` | — |
209
+ | `${p}-catalog-policy-<policyId>-add` | The entry's add button | `<policyId>` | J3 |
210
+ | `${p}-catalog-details` | Focused policy details header (name, description and add button) | — | — |
211
+ | `${p}-catalog-details-add` | Add button in the details | — | — |
212
+ | `${p}-catalog-details-back` | "Back to policy list", narrow layout only | — | — |
210
213
 
211
214
  ## Policy configuration panel (FOUND-407)
212
215
 
@@ -231,7 +234,7 @@ Each phase has its own quick insert, so it nests under the phase.
231
234
 
232
235
  ## Documentation pane (FOUND-407)
233
236
 
234
- `<docs>` is the prefix the pane gets from where it renders: `${p}-config-docs` or `${p}-catalog-details-docs`.
237
+ `<docs>` is the prefix the pane gets from where it renders: `${p}-config-docs`, or `${p}-catalog-details-docs` in the catalog details (nesting prefix `docs`).
235
238
 
236
239
  | Id | Element | Key rule | Journeys |
237
240
  | -------------------------------- | ----------------------------------------- | ------------- | -------- |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravitee/graphene-policy-studio",
3
- "version": "3.41.0",
3
+ "version": "3.42.0",
4
4
  "type": "module",
5
5
  "description": "Gravitee Policy Studio UI for the Graphene design system.",
6
6
  "keywords": [
@@ -62,7 +62,7 @@
62
62
  "zod": "4.4.3"
63
63
  },
64
64
  "peerDependencies": {
65
- "@gravitee/graphene-core": "^3.41.0",
65
+ "@gravitee/graphene-core": "^3.42.0",
66
66
  "react": "^19.0.0",
67
67
  "react-dom": "^19.0.0",
68
68
  "tailwindcss": "^4.0.0"