mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +01:00
docs: document the OpenCode client migration surfaces (OM-179)
Adds JSDoc comments to the functions this branch adds or changes, so the touched-code docstring coverage clears the review threshold. Comments only; no code, formatting or import changes.
This commit is contained in:
1 parent
64e87ba1ea
commit
6297403a41
41 files changed
+691
No files matched your search
@@ -36,6 +36,12 @@ interface PermissionRequestDialogProps {
|
||||
onOpenChange?: (open: boolean) => void
|
||||
}
|
||||
|
||||
/**
|
||||
* Renders a modal prompt for the current pending permission request with
|
||||
* allow-once, always-allow, and reject actions plus a count of further queued
|
||||
* requests. Focus starts on allow-once, and the rejection reason resets
|
||||
* whenever the request changes.
|
||||
*/
|
||||
export function PermissionRequestDialog({
|
||||
permission,
|
||||
pendingCount,
|
||||
@@ -60,6 +66,10 @@ export function PermissionRequestDialog({
|
||||
if (!permission) return null
|
||||
if (parentOpen === false) return null
|
||||
|
||||
/**
|
||||
* Sends the user's reply for the current permission request, passing the trimmed rejection reason
|
||||
* only for rejections, and reports failures as a toast while clearing the pending action state.
|
||||
*/
|
||||
const handleResponse = async (response: PermissionReply) => {
|
||||
setIsLoading(true)
|
||||
setLoadingAction(response)
|
||||
|
||||
Reference in new issue
Block a user