-
Notifications
You must be signed in to change notification settings - Fork 58
feat: Device sharing #601
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
base: master
Are you sure you want to change the base?
feat: Device sharing #601
Conversation
Changes:
Total lines: 4795 (+65) |
deployed preview: https://601.connect-d5y.pages.devWelcome to connect! Make sure to:
Mobile
Desktop
|
incognitojam
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR, let's just fix these things
|
thanks for the feedback! I didn't even notice those APIs were already available, thanks for catching that! I tried using onInput already, but it didn't seem to work. I'll try again, maybe I did something wrong. Agree on the design, it definitely needs some improvement. will work on that, appreciate it |
|
Those methods are in the other comma-api package, but we aren't using that directly because it's written in JS and doesn't have TypeScript type hints |
incognitojam
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks better, but I think it needs a little more work
The device settings didn't look nice in the first place, but you can see in this PR (since reverted, will be added again eventually) where I added the device name field and made the text field take up all of the space, with the update button at the end.
commaai/connect#576
https://590.connect-d5y.pages.dev/c1bd6d7f12f35286/settings

| )} | ||
| </For> | ||
| <div class="flex items-center gap-2 justify-between"> | ||
| <TextField |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make the text field fill the entire space instead of leaving a gap between it and the share button
|
got it, thank you! |
|
Oh I think I see the problem you had with adding your own listener - let me have a look at what I did last time |
|
This link should show you how I used the Then you can |
|
that's really helpful, I appreciate it! working on doing this now |
importing action from solidjs-router brought bundle size up by a little over 1kb, exceeding max bundle size limit. moved to a classic event handler









adds device sharing & un-sharing device as well as a list of users the device is shared with. here's a demo video:
Screen.Recording.2025-05-06.at.3.59.53.PM.mov
open to feedback, would like to know what to change/fix etc. thanks!