Skip to content

Conversation

@lukaw3d
Copy link
Member

@lukaw3d lukaw3d commented Dec 23, 2025

Part of #367
Closes #370

Limitations:

  • grants permission on one machine
  • machine restarts after
Screenshot from 2025-12-23 02-45-59 Screenshot from 2025-12-23 02-46-07

@lukaw3d lukaw3d requested review from buberdds and lubej December 23, 2025 01:54
@github-actions
Copy link

github-actions bot commented Dec 23, 2025

Deployed to Cloudflare Pages

Latest commit: 183b44804e84ed901aefc3393ee0e76c85795a48
Status:✅ Deploy successful!
Preview URL: https://ebfa7f6b.rofl-app.pages.dev
Alias: https://pr-391.rofl-app.pages.dev

Comment on lines 40 to 53
useEffect(() => {
if (open) {
form.reset({
evmAddress: '0x',
})
}
}, [open, form])

const handleOpenChange = (newOpen: boolean) => {
setOpen(newOpen)
if (!newOpen) {
form.reset()
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't this logic duplicated?

Copy link
Member Author

Choose a reason for hiding this comment

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

ah yeah. and maybe we dont even need to clear - especially if user cancels and reopens

import { FileText } from 'lucide-react'

const formSchema = z.object({
evmAddress: z.string().regex(/^0x[a-fA-F0-9]{40}$/, {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe checking the checksum of the address would be nice.

import { getAddress } from 'viem'

Copy link
Member Author

Choose a reason for hiding this comment

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

+1

<DialogTrigger asChild>
<Button variant="outline" className="w-full md:w-auto" disabled={disabled}>
<FileText />
Grant logs permission
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a bit misleading, after I granted logs permissions, I am suddenly able to restart/top-up the machine on the granted account - I would not expect this to happen. I am also able to modify the secrets of the app, even though it fails - here it would be nice that UI would be hidden, for actions I can not complete.

And then recursively I am able to grant logs permissions, on the "log permissioned account", which means, that that account can add another account. But on that account I am only able to top up and restart the machine. And not able to actually see the logs.

Not sure what about this is expected or not.

Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure. Should discuss on slack

@lukaw3d lukaw3d requested a review from lubej January 6, 2026 21:25
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.

3 participants