Skip to content

#821 Migrate PhotoCapture component#1

Draft
NoelDeMartin wants to merge 1 commit into
improvementsfrom
821-photo-capture
Draft

#821 Migrate PhotoCapture component#1
NoelDeMartin wants to merge 1 commit into
improvementsfrom
821-photo-capture

Conversation

@NoelDeMartin

Copy link
Copy Markdown
Owner

This is a first pass towards modernizing this component, but it can still be improved further to use newer patterns, such as:

  • Using the InputTrait for form participation
  • Using the new Dialog system
  • Using the new convention for custom events using the solid-ui- prefix.

Also removed some inline comments about attribution, leaving them here for documentation purposes:

The original code was written by Sir Tim Berners-Lee. It was made into a web component by AI Model GPT-5.4

Prompt: Take the code from src/media/media-capture.ts and make it a web component. Make it work in forms as well as not. Make it configurable and follow LoginButton.

This is a first pass towards modernizing this component, but it can still be improved further to use newer patterns, such as:

- Using the InputTrait for form participation
- Using the new Dialog system
- Using the new convention for custom events using the `solid-ui-` prefix.

Also removed some inline comments about attribution, leaving them here for documentation purposes:

> The original code was written by Sir Tim Berners-Lee. It was made into a web component by AI Model GPT-5.4
>
> Prompt: Take the code from src/media/media-capture.ts and make it a web component. Make it work in forms as well as not. Make it configurable and follow LoginButton.
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.

Photo Capture Web component

1 participant