You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7cadbfc
Browse filesBrowse the repository at this point in the historyBrowse files
Artifact integrations: keep references in the References pill and present item actions on their item (#347045)
* Artifact integrations: keep references in the References pill and present item actions on their item
Only artifacts get a pill of their own from their integration's group ID. A reference, such as an ExP scorecard or a commit, is now listed in the References pill with the other references instead of in a single pill of its own, and a reference to the resource of an artifact with a pill of its own is represented by that artifact.
A prompt that an item action runs for one details item, such as Fix Issue on one of a test plan item's reported issues, is now presented in chat as that item action on that item alone, rather than as the artifact action on every item it could apply to.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Artifact integrations: address review feedback on references and item action capture
- A new extension details model starts from the latest details the extension sent for that list, rather than those from when the integration was created, so the request for an item action finds an item listed since. When the details no longer list the item, the request names the item action without the details of every item.
- A reference is no longer hidden behind an artifact with a pill of its own. That pill's filters, such as showing only open pull requests, could hide both, and the reference's pin could not be shown or cleared. The reference stays in the References pill with the other references.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
`ArtifactIcon.id` and `colorId` reference registered icons and theme colors; a missing color uses the normal foreground. This permits domain colors such as a merged PR's icon without accepting arbitrary CSS or hardcoded RGB values. Color always accompanies a text meaning.
529
529
530
-
The main integration decides, per artifact, whether the artifact gets a pill of its own. An artifact whose main integration assigns a `groupId` is presented in a dedicated pill; without one, the artifact is listed in the client's ordinary pill for its kind, such as Artifacts or References, alongside unintegrated records, with the integration's icon and label. Activating such a row opens the artifact's details, a row action opens the resource, and an artifact that is its pill's only entry renders as its full integration pill. The ID can follow the resource's state, but changing it moves the artifact between pills, so integrations should keep it stable.
530
+
The main integration decides, per artifact, whether the artifact gets a pill of its own. An artifact whose main integration assigns a `groupId` is presented in a dedicated pill; without one, the artifact is listed in the client's ordinary pill for its kind, such as Artifacts, alongside unintegrated records, with the integration's icon and label. References are always listed in the References pill with the other references, whatever their `groupId`. Activating such a row opens the artifact's details, a row action opens the resource, and an artifact that is its pill's only entry renders as its full integration pill. The ID can follow the resource's state, but changing it moves the artifact between pills, so integrations should keep it stable.
531
531
532
-
When several recorded artifacts share a `groupId`, including artifacts of different integrations, the client may present them as one group whose members keep their own segmented controls in a list. References assigned a `groupId` keep a pill of their own and never join a group. The main integration names such a group with a fixed, registration-level `groupLabel`, such as "Pull Requests", taken from the group's first artifact; each artifact's optional `group` supplies the icon the group shows and a priority, so a group of pull requests shows a failing pull request's icon over an open one's. Only the main integration's `groupId` and `group` are consulted, and priorities are compared only among the group's artifacts; the client picks the highest priority and keeps the earlier artifact on ties. Without a `groupLabel` or `group`, the client falls back to the integration label and the first artifact's main icon. Grouping is presentation only: it never merges bindings, consent, runs, or details.
532
+
When several recorded artifacts share a `groupId`, including artifacts of different integrations, the client may present them as one group whose members keep their own segmented controls in a list. References never join a group. The main integration names such a group with a fixed, registration-level `groupLabel`, such as "Pull Requests", taken from the group's first artifact; each artifact's optional `group` supplies the icon the group shows and a priority, so a group of pull requests shows a failing pull request's icon over an open one's. Only the main integration's `groupId` and `group` are consulted, and priorities are compared only among the group's artifacts; the client picks the highest priority and keeps the earlier artifact on ties. Without a `groupLabel` or `group`, the client falls back to the integration label and the first artifact's main icon. Grouping is presentation only: it never merges bindings, consent, runs, or details.
533
533
534
-
Each contribution exposes its binding's canonical `resourceKey`, the match key that identifies aliases of the same resource. When the main integration binds several recorded artifacts or references to the same resource, such as several scorecard links of one experiment step, the client shows them once, keeping the first artifact among them, else the first reference. Like grouping, this is presentation only: each record keeps its own binding, consent, runs, and recorded label. A record with enabled Autopilot rules or activity remains visible, since only its own entry reaches its controls, and a dedicated pill stays pinned while any alias it hides is pinned; unpinning it clears every such pin.
534
+
Each contribution exposes its binding's canonical `resourceKey`, the match key that identifies aliases of the same resource. When the main integration binds several recorded artifacts or references to the same resource, such as several scorecard links of one experiment step, the client shows them once, keeping the first artifact among them, else the first reference. An artifact with a pill of its own stands in only for its aliases among the other artifacts with pills of their own: its pill's filters can hide it and its pins are kept apart, so a reference to its resource stays listed in the References pill. Like grouping, this is presentation only: each record keeps its own binding, consent, runs, and recorded label. A record with enabled Autopilot rules or activity remains visible, since only its own entry reaches its controls, and a dedicated pill stays pinned while any alias it hides is pinned; unpinning it clears every such pin.
535
535
536
536
The main part's label may be a provider-supplied display label, but it does not rewrite the recorded label, resource, or provenance. Its open target always comes from the artifact record. `main` is optional for integrations that only contribute sections/actions; the generic artifact presentation is the fallback.
// The details no longer list the item, so the request names the item action without the details of every item.
1297
+
['3',[]],
1298
+
]asconst){
1299
+
test(`a prompt an item action starts for ${itemId==='2' ? 'a listed' : 'an unlisted'} item is presented as that action on its own item`,()=>run(asyncstore=>{
0 commit comments