fix(dropdown): add dependsOn to dropdown component to dynamically fetch options predicated on another subblock#1886
Merged
Merged
Conversation
…ch options predicated on another subblock
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Greptile OverviewGreptile SummaryAdded
The implementation follows a clean pattern: when a user selects new credentials, the dependency tracking detects the change, clears the existing options, and automatically fetches fresh options using the new credential. Confidence Score: 4/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant User
participant Dropdown
participant SubBlockStore
participant API
User->>Dropdown: Select credential (triggerCredentials)
Dropdown->>SubBlockStore: Update credential value
SubBlockStore-->>Dropdown: Notify value change
Note over Dropdown: dependencyValues changes detected
Dropdown->>Dropdown: Clear fetchedOptions (line 312)
Dropdown->>Dropdown: Trigger refetch useEffect (line 322-340)
Dropdown->>API: fetchOptions(blockId, subBlockId)
Note over API: Uses credentialId from store<br/>(line 37-42 in poller.ts)
API-->>Dropdown: Return new options (labels/folders)
Dropdown->>Dropdown: Update fetchedOptions state
Dropdown->>User: Display updated options
|
waleedlatif1
added a commit
that referenced
this pull request
Nov 12, 2025
…ch options predicated on another subblock (#1886)
waleedlatif1
added a commit
that referenced
this pull request
Nov 12, 2025
…ch options predicated on another subblock (#1886)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Type of Change
Testing
Tested manually
Checklist