Skip to content

Merge Changes into Main from Canary (v1.13.1-3d04103)#112

Merged
mergify[bot] merged 34 commits intomainfrom
canary
Jan 24, 2025
Merged

Merge Changes into Main from Canary (v1.13.1-3d04103)#112
mergify[bot] merged 34 commits intomainfrom
canary

Conversation

@Marty-Byrde
Copy link
Member

@Marty-Byrde Marty-Byrde commented Jan 23, 2025

This PR was automatically created by the Auto-Create-PR-Canary workflow to merge changes from the canary branch into main. These changes are based on v1.13.1 and the latest commit on main (3d04103).

This pull requested comes with the following changes of #110 and #111

Marty-Byrde and others added 30 commits January 23, 2025 10:54
This component is used to wrap the contents of the power-plants/[id] details page within a Context provider. This way it can be used to access properties of the context within client-side components with ease.
Externalized the buttons used within the power-plants-details page into a separate client-side component.
This component is used to render the different water-gate related options, e.g. closing, opening the gate. Note that this component is rendered conditionally, depending on whether or not the management is enabled.
This endpoint is used to simulate a fetch request of an external API to gather a given PowerPlant.
Made some major improvements to the power-plants/[id] detail page by using newly created components to improve readability and maintainability.
Reverted the introduction of the query argument to the Link component within the PowerPlantPreview component, because it is no longer needed.
The reason for this change is that the use searchParams was removed, thereby resulting in a failing test-case.
The reason for this change is that the name is used to fetch a given power-plants information from the api and not the id.
This change was made within the PowerPlantPreview component for the name of a given powerplant.
The reason for this change is that the id property does not reflect the id of the power-plant but the id of the db-row that returned the information. This means that the id always increases by the amount of power-plants stored.
Fixed a typo in the base_endpoint property that is used to send commands to the given api. Changed the value of this property from the Database to the Control api endpoint.
Added toast messages depending on the response of the respective fetch requests.
Update the fetch request and response of the power-plant detail fetch retrieval to follow the api implementation.
This provider is used to provide specific environment variables to all client components.
@Marty-Byrde
Copy link
Member Author

🎉 This PR is included in version 1.14.0-canary.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@codecov
Copy link

codecov bot commented Jan 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Files with missing lines Coverage Δ
components/power-plants/PowerPlantPreview.tsx 100.00% <100.00%> (ø)

@mergify
Copy link
Contributor

mergify bot commented Jan 23, 2025

Keep in mind, that this Pull request is only merged once it is marked as done!

@Marty-Byrde
Copy link
Member Author

🎉 This PR is included in version 1.14.0-canary.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@mergify
Copy link
Contributor

mergify bot commented Jan 23, 2025

Keep in mind, that this Pull request is only merged once it is marked as done!

@Marty-Byrde Marty-Byrde added the done Marks a PR as done so that it is merged into the main branch label Jan 24, 2025
@mergify mergify bot merged commit 48a2bcb into main Jan 24, 2025
9 checks passed
@mergify
Copy link
Contributor

mergify bot commented Jan 24, 2025

This Pull request satisfies all status-checks and will be automatically merged soon.

@Marty-Byrde
Copy link
Member Author

🎉 This PR is included in version 1.14.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

done Marks a PR as done so that it is merged into the main branch released on @canary released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant