Skip to content
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

Update to v1.1.0 #5

Merged
merged 20 commits into from
Jan 15, 2025
Merged

Update to v1.1.0 #5

merged 20 commits into from
Jan 15, 2025

Conversation

rafal-gorecki
Copy link
Collaborator

@rafal-gorecki rafal-gorecki commented Jan 8, 2025

Description:

  • Add new ToggleSrvButton
  • Add notification block while calling srv failed
  • Unify colors between panels

@rafal-gorecki rafal-gorecki changed the title Bool srv button Update to v1.1.0 Jan 8, 2025
Comment on lines +264 to +271
setSrvState({ status: "error", response: undefined });
return;
}

const serviceName = eStopAction === "go" ? config.goServiceName : config.stopServiceName;

if (!serviceName) {
setReqState({ status: "error", value: "Service name is not configured" });
setSrvState({ status: "error", response: undefined });

Choose a reason for hiding this comment

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

Shouldn't these errors be propagated to the user?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

What was previously contained in the value field. I don't think it was used, instead I put the service response there and if it fails then a notification window will pop up.

Choose a reason for hiding this comment

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

LGTM

Comment on lines +37 to +38
capabilities: allowToggleSrvButton ? [PlayerCapabilities.toggleSrvButtons] : [],
toggleSrvButton,

Choose a reason for hiding this comment

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

Checks have failed

Choose a reason for hiding this comment

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

At least some of them seem to originate from this PR

@rafal-gorecki rafal-gorecki merged commit 6305ac4 into develop Jan 15, 2025
6 of 10 checks passed
@rafal-gorecki rafal-gorecki deleted the bool-srv-button branch January 15, 2025 09:29
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