internal: nits for claude demo (#6141)

* nits for claude demo

* better prompt
This commit is contained in:
centdix
2025-07-08 12:53:26 +02:00
committed by GitHub
parent bb92319eb7
commit 2b87584554
2 changed files with 6 additions and 1 deletions

View File

@@ -38,4 +38,6 @@ jobs:
Provide constructive feedback with specific suggestions for improvement.
Use inline comments to highlight specific areas of concern.
At the end of your review, add complete instructions to reproduce the added changes through the app interface. These instructions will be given to a tester so he can verify the changes. It should be a short descriptive text (not a step by step or a list) on how to navigate the app (what page, what action, what input, etc) to see the changes.
allowed_tools: "mcp__github__create_pending_pull_request_review,mcp__github__add_pull_request_review_comment_to_pending_review,mcp__github__submit_pending_pull_request_review,mcp__github__get_pull_request_diff"

View File

@@ -61,11 +61,14 @@ export function triggerableByAI(element: HTMLElement, options: TriggerableByAIOp
// register the triggerable
const currentData = { description, onTrigger: handleTrigger }
triggerablesByAi[id] = currentData
element.setAttribute('ai-description', description)
}
function unregister() {
if (isDisabled || !id) return
element.removeAttribute('ai-description')
// unregister the triggerable
if (triggerablesByAi[id]) {
delete triggerablesByAi[id]
@@ -77,7 +80,7 @@ export function triggerableByAI(element: HTMLElement, options: TriggerableByAIOp
return {
update(newOptions: TriggerableByAIOptions) {
; ({ id, description, callback, showAnimation = true } = newOptions)
;({ id, description, callback, showAnimation = true } = newOptions)
register()
},
destroy() {