Skip to content

Comments

Add i15-1 app#14

Open
EmsArnold wants to merge 5 commits intomainfrom
ea/add_i15-1_app
Open

Add i15-1 app#14
EmsArnold wants to merge 5 commits intomainfrom
ea/add_i15-1_app

Conversation

@EmsArnold
Copy link
Contributor

Adds i15-1 app, in line with #13

@EmsArnold EmsArnold marked this pull request as ready for review February 19, 2026 15:30
Copy link
Collaborator

@noemifrisina noemifrisina left a comment

Choose a reason for hiding this comment

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

Thanks, I only have one suggestion but as mentioned yesterday I think this is a good start for a first test and we can grow from here

Comment on lines +20 to +35
return (
<Button
variant="contained"
loading={loading}
sx={{ width: "150px" }}
onClick={async () => {
const taskRequest: TaskRequest = {
name: name,
params: params,
instrument_session: instrumentSession,
};
setLoading(true);
await createAndStartTask(taskRequest);
setLoading(false);
}}
>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
return (
<Button
variant="contained"
loading={loading}
sx={{ width: "150px" }}
onClick={async () => {
const taskRequest: TaskRequest = {
name: name,
params: params,
instrument_session: instrumentSession,
};
setLoading(true);
await createAndStartTask(taskRequest);
setLoading(false);
}}
>
const handleClick = () => {
async () => {
const taskRequest: TaskRequest = {
name: name,
params: params,
instrument_session: instrumentSession,
};
setLoading(true);
await createAndStartTask(taskRequest);
setLoading(false);
}
}
return (
<Button
variant="contained"
loading={loading}
sx={{ width: "150px" }}
onClick={handleClick}
>

Could: I think this would make it a bit more readable and easier to change for any bugfix/refactoring that may come later

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.

2 participants