Skip to content

Web component run method#899

Merged
loiswells97 merged 7 commits intooutput-only-wcfrom
web-component-run-method
Jan 30, 2024
Merged

Web component run method#899
loiswells97 merged 7 commits intooutput-only-wcfrom
web-component-run-method

Conversation

@loiswells97
Copy link
Contributor

No description provided.

@loiswells97 loiswells97 changed the base branch from main to output-only-wc January 19, 2024 17:43
@loiswells97 loiswells97 temporarily deployed to previews/web-component-run-method January 26, 2024 16:15 — with GitHub Actions Inactive
@github-actions
Copy link

@loiswells97 loiswells97 temporarily deployed to previews/web-component-run-method January 26, 2024 17:27 — with GitHub Actions Inactive
@github-actions
Copy link

@loiswells97 loiswells97 temporarily deployed to previews/web-component-run-method January 29, 2024 09:25 — with GitHub Actions Inactive
@github-actions
Copy link

@loiswells97 loiswells97 temporarily deployed to previews/web-component-run-method January 29, 2024 09:44 — with GitHub Actions Inactive
@github-actions
Copy link

@loiswells97 loiswells97 temporarily deployed to previews/web-component-run-method January 29, 2024 09:48 — with GitHub Actions Inactive
@github-actions
Copy link

@github-actions
Copy link

Copy link
Contributor

@sra405 sra405 left a comment

Choose a reason for hiding this comment

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

👍 lgtm - again loving exposing some methods through the web component!!

@loiswells97 loiswells97 merged commit 5519f94 into output-only-wc Jan 30, 2024
@loiswells97 loiswells97 deleted the web-component-run-method branch January 30, 2024 17:36
floehopper pushed a commit that referenced this pull request May 20, 2024
floehopper pushed a commit that referenced this pull request May 20, 2024
floehopper pushed a commit that referenced this pull request May 20, 2024
floehopper pushed a commit that referenced this pull request May 20, 2024
floehopper pushed a commit that referenced this pull request May 22, 2024
floehopper pushed a commit that referenced this pull request May 22, 2024
floehopper pushed a commit that referenced this pull request May 28, 2024
floehopper pushed a commit that referenced this pull request May 29, 2024
floehopper pushed a commit that referenced this pull request May 30, 2024
Based on [1] & #899.

The motivation for this change is to support the Block-to-Text app [2].

This mainly adds the `runCode`, `stopCode`, & `rerunCode` methods to the
web component, but it also adds a check on the `webComponent` boolean
state in `Output` to determine whether or not to render the `RunBar`. I
don't really understand why this is needed, but having chatted to
@loiswells97 we've got a nagging feeling there's a use case that does
need it, so I'm going to leave it in plae for now. I've added a unit
test to illustate the behaviour.

I plan to add an e2e spec in a subsequent commit which will test the new
methods on the web component.

[1]: f9086a8
[2]: https://github.com/RaspberryPiFoundation/block-to-text-alpha/
floehopper pushed a commit that referenced this pull request May 30, 2024
Based on [1] & #899.

The motivation for this change is to support the Block-to-Text app [2].

This mainly adds the `runCode`, `stopCode`, & `rerunCode` methods to the
web component, but it also adds a check on the `webComponent` boolean
state in `Output` to determine whether or not to render the `RunBar`. I
don't really understand why this is needed, but having chatted to
@loiswells97 we've got a nagging feeling there's a use case that does
need it, so I'm going to leave it in plae for now. I've added a unit
test to illustate the behaviour.

I plan to add an e2e spec in a subsequent commit which will test the new
methods on the web component.

[1]: f9086a8
[2]: https://github.com/RaspberryPiFoundation/block-to-text-alpha/
floehopper pushed a commit that referenced this pull request May 31, 2024
Based on [1] & #899.

The motivation for this change is to support the Block-to-Text app [2]
which uses the `rerunCode` method in its exercise to allow the user to
run the code from the button outside the web component [3].

This mainly adds the `runCode`, `stopCode`, & `rerunCode` methods to the
web component, but it also adds a check on the `webComponent` boolean
state in `Output` to determine whether or not to render the `RunBar`. I
don't really understand why this is needed, but having chatted to
@loiswells97 we've got a nagging feeling there's a use case that does
need it, so I'm going to leave it in plae for now. I've added a unit
test to illustrate the new behaviour.

I plan to add an e2e spec in a subsequent commit which will test the new
methods on the web component.

[1]: f9086a8
[2]: https://github.com/RaspberryPiFoundation/block-to-text-alpha/
[3]: https://github.com/RaspberryPiFoundation/block-to-text-alpha/blob/d16a8ecc1d3da202363fb16db31f4bf93f46aa04/src/components/Step.js#L87
@floehopper floehopper mentioned this pull request Jun 3, 2024
floehopper added a commit that referenced this pull request Jun 4, 2024
### Added

- Add `project_name_editable` attribute to web component (#1009)
- Fires custom event when the theme changes (#1015)
- Add `output_only` attribute to web component (#1019 & originally #782)
- Add `assets_identifier` attribute to web component (#1019 & originally
#901)
- Enhance `code` attribute on web component to override project main
component content (#1019 & originally #901)
- Add `runCode`, `stopCode` & `rerunCode` methods to web component
(#1019 & originally #899)
- Send error details in "editor-runCompleted" event (#1019 & originally
#915)
- Return error details to web component (#1019 & originally #915)
- Add `output_panels` attribute to web component (#1019 & originally
#909)

### Changed

- Remove unused `/embedded/projects/:identifier` route (#1013)

### Fixed

- Remove unused `REACT_APP_LOGIN_ENABLED` env var (#1006)
- Fix infinite remix loop when `BYPASS_AUTH` set in `editor-api` (#1007)
- Fixes for docker-compose.yml (#1008)
- Fix deprecation warnings in GitHub Actions (#1011)
- Removed unused `isEmbedded` param from `useProject` call in
`EmbeddedViewer` (#1016)
- Improvements to Cypress specs in CI (#1017)
- Fix warnings and verbose output when starting Webpack Dev Server
(#1018)
- Add e2e spec for project remix behaviour in web component (#1020)
- Fix initial value of `user` in `WebComponentLoader` (#1021)
- Make `authKey` in e2e web component spec more realistic (#1022)
- Remove unused `ComponentStore` (#1023)
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