Skip to content

Conversation

@camielvs
Copy link
Collaborator

@camielvs camielvs commented Jan 24, 2026

Description

Adds a display_name annotation to tasks. This will change the displayed name of the task, but not its ID or the component name. It can be changed using the "rename task" action or by editing annotations.

The display name will show on:

  • Task Card
  • Task Details
  • Task Inputs
  • Task Arguments

Note: the rename display name task action is not available for subgraphs because they already have their own naming system. However, the display name can still be updated via annotations if desired.

rename-tasks-demo.mov (uploaded via Graphite)

Related Issue and Pull requests

Closes https://github.com/Shopify/oasis-frontend/issues/469

Type of Change

  • New feature

Checklist

  • I have tested this does not break current pipelines / runs functionality
  • I have tested the changes on staging

Screenshots (if applicable)

image.png

image.png

Test Instructions

Additional Comments

Copy link
Collaborator Author

camielvs commented Jan 24, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

type: "json",
},
{
annotation: "display_name",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I start thinking we need a central place to note all the "system" annotations, we have a good number of them now. It can be docs, or smth inside the app (better)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have the launcherTaskAnnotationSchema.json which takes precedence over this static list, so arguably we could remove this and rely only on the schema.

{taskId}
</Text>
)}
{displayName !== name && (
Copy link
Collaborator

@maxy-shpfy maxy-shpfy Jan 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Breaking change". Older pipelines without "displayName" would lose current "description".

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Solution? The fact they were using task id as a description field is less than ideal and is not behaviour we want to encourage going forward.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've brought this back in after a little thought. We'll use the new system if a display name is set. Otherwise we'll use the old system.

};

return (
<RenameDialog
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In regards to our last conversation. What if instead of a dialog for this specific case use "inplace editing", similar to how Description editing works now: when user clicks on a task id - it turns into editing input, and applies in blur.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's feasible... I went with dialog because it's consistent with how we rename pipelines and subgraphs. I think it's okay for now and I'd prefer to change all of them at once to inline editing if we decide to make that UX switch.

@camielvs camielvs force-pushed the 01-23-feat_task_display_names branch 2 times, most recently from f749f2b to d08755d Compare January 26, 2026 20:24
@camielvs camielvs marked this pull request as ready for review January 26, 2026 20:46
@camielvs camielvs requested a review from a team as a code owner January 26, 2026 20:46
@camielvs camielvs force-pushed the 01-23-feat_task_display_names branch from d08755d to 072fc93 Compare January 27, 2026 00:20
@camielvs camielvs requested a review from maxy-shpfy January 27, 2026 18:22
@camielvs camielvs force-pushed the 01-23-feat_task_display_names branch from 072fc93 to c182c2a Compare January 28, 2026 01:33
@camielvs camielvs force-pushed the 01-23-feat_task_display_names branch from c182c2a to 1bb985a Compare January 28, 2026 01:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants