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

New frontend web client #557

Merged
merged 10 commits into from
Aug 2, 2024
Merged

New frontend web client #557

merged 10 commits into from
Aug 2, 2024

Conversation

chris-dietz
Copy link
Collaborator

chris-dietz and others added 8 commits June 1, 2024 23:41
Adds a new web client runner built from the ground up using rust and
yew.rs.
Part of #261 

Right now web client must be manually built and launched separate to
launching the backend. A followup PR will add a new flag to tell runner
to use the new web client. Both the old and new client will be supported
until the new front end has been thoroughly tested and has feature
parity.

---------

Co-authored-by: Julien Cretin <github@ia0.eu>
Co-authored-by: Julien Cretin <cretin@google.com>
…549)

- Added CSS to match existing web client look.
- Changed timeout on websockets to 1 second (1000 ms)
- Also made the client reset and disable input when the websocket
connection goes down.

Should be the final bit that needs to be done to replace the old web
client.

---------

Co-authored-by: Julien Cretin <github@ia0.eu>
@chris-dietz chris-dietz requested a review from ia0 as a code owner August 1, 2024 18:08
@ia0 ia0 added for:usability Improves users (and maintainers) life for:maintainability Improves maintainers life runner:host Modifies the Linux runner labels Aug 1, 2024
Copy link
Member

@ia0 ia0 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'll add @invernizzi to review the *.scss and *.html files and possibly do an end-to-end test too.

@ia0 ia0 requested a review from invernizzi August 1, 2024 19:48
@ia0
Copy link
Member

ia0 commented Aug 1, 2024

Hey @invernizzi , could you take a look at the *.scss and *.html file? It looks good to me, but I don't know what idiomatic SCSS and HTML should look like. You can also do an end-to-end test with the following commands:

cargo xtask applet rust hello runner host --no-default-features --web --log=info
cargo xtask applet rust button_abort runner host --no-default-features --web --log=info
cargo xtask applet rust panic runner host --no-default-features --web --log=info

@ia0
Copy link
Member

ia0 commented Aug 2, 2024

Actually, let me merge this because I'm going to do some changes that conflict, and the PR is good enough to merge, we can always address comments in follow-up PRs (like for the verbose logging).

@ia0 ia0 requested review from invernizzi and ia0-review and removed request for invernizzi August 2, 2024 07:33
@ia0 ia0 merged commit 79f0d3f into main Aug 2, 2024
41 checks passed
@ia0 ia0 deleted the dev/web-ui branch August 2, 2024 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for:maintainability Improves maintainers life for:usability Improves users (and maintainers) life runner:host Modifies the Linux runner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Write the web client of the host runner in Rust
4 participants