-
Notifications
You must be signed in to change notification settings - Fork 380
Make the confirmation prompt action type generic #4519
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -346,9 +346,7 @@ function collectSignOutConfirmElements(elements: FlowElement[] | undefined): Flo | |
| } | ||
|
|
||
| return elements.flatMap((element) => [ | ||
| ...((element as FlowElement & {actionType?: string}).actionType === PromptActionTypes.SignOutConfirm | ||
| ? [element] | ||
| : []), | ||
| ...((element as FlowElement & {actionType?: string}).actionType === PromptActionTypes.Confirm ? [element] : []), | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift Scope this rule to sign-out confirmation flows. Line 349 now collects every Scope collection to session sign-out context, or split validation by target executor. Add a test for a non-sign-out 🤖 Prompt for AI Agents |
||
| ...collectSignOutConfirmElements(element.components), | ||
| ]); | ||
| } | ||
|
|
||
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.
🗄️ Data Integrity & Integration | 🟠 Major | 🏗️ Heavy lift
🧩 Analysis chain
🏁 Script executed:
Repository: thunder-id/thunderid
Length of output: 1903
🏁 Script executed:
Repository: thunder-id/thunderid
Length of output: 17953
🏁 Script executed:
Repository: thunder-id/thunderid
Length of output: 33789
Preserve compatibility for existing
SIGN_OUT_CONFIRMflow data.PromptActionTypesnow only exportsCONFIRM, the button selector writesCONFIRM,extractActionFromComponentforwardscomponent.actionTypeasprompts[].action.type, andsignOutConfirmActionRulereadsPromptActionTypes.Confirm. Existing definitions can still contain the oldSIGN_OUT_CONFIRMvalue, so they can fail sign-out validation or stop sign-out validation from running. Keep a read-time alias, normalize saved definitions, or migrate stored flows before writing onlyCONFIRM.🤖 Prompt for AI Agents