Skip to content

feat: add task page #18076

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

Merged
merged 4 commits into from
May 28, 2025
Merged

feat: add task page #18076

merged 4 commits into from
May 28, 2025

Conversation

BrunoQuaresma
Copy link
Collaborator

Demo:

image

@@ -244,7 +244,9 @@ const TerminalPage: FC = () => {

// Open the web socket and hook it up to the terminal.
terminalWebsocketUrl(
proxy.preferredPathAppURL,
process.env.NODE_ENV !== "development"
Copy link
Contributor

Choose a reason for hiding this comment

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

What problem does this change solve? Please add a comment if this wasn't committed by mistake.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added comment.

...MockWorkspaceApp,
id: "cloud-code",
display_name: "Cloud Code",
icon: "https://uxwing.com/wp-content/themes/uxwing/download/brands-and-social-media/claude-ai-icon.png",
Copy link
Contributor

@hugodutka hugodutka May 28, 2025

Choose a reason for hiding this comment

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

We probably shouldn't use externally hosted images.

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 do this for many other storybook tests 😄 it has not been a problem so far

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Using /icons/claude.svg

Comment on lines 115 to 150
...MockWorkspaceApp,
id: "cloud-code",
display_name: "Cloud Code",
icon: "https://uxwing.com/wp-content/themes/uxwing/download/brands-and-social-media/claude-ai-icon.png",
url: `${window.location.protocol}/iframe.html?viewMode=story&id=pages-terminal--ready&args=&globals=`,
external: true,
statuses: [
MockWorkspaceAppStatus,
{
...MockWorkspaceAppStatus,
id: "2",
message: "Planning changes",
state: "working",
},
],
},
{
...MockWorkspaceApp,
id: "vscode",
display_name: "VSCode",
icon: "/icon/code.svg",
},
],
},
],
},
],
},
latest_app_status: {
...MockWorkspaceAppStatus,
app_id: "cloud-code",
},
},
});
},
};
Copy link
Contributor

Choose a reason for hiding this comment

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

typo: cloud-code -> claude-code

{prompt}
</span>
<RouterLink
to={`/tasks/${workspace.owner_name}/${workspace.name}`}
Copy link
Contributor

Choose a reason for hiding this comment

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

is there a risk that either owner_name or workspace name will contain url-incompatible characters and the resulting path will be invalid? or would RouterLink handle that internally?

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 think it would handle that since we never had this problem before.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah, owner_name here is the username, so there are no invalid characters allowed.

@BrunoQuaresma BrunoQuaresma requested a review from hugodutka May 28, 2025 15:55
@BrunoQuaresma BrunoQuaresma merged commit bc3b8d5 into main May 28, 2025
33 checks passed
@BrunoQuaresma BrunoQuaresma deleted the bq/task-page branch May 28, 2025 18:19
@github-actions github-actions bot locked and limited conversation to collaborators May 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants