Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📊 Coverage ReportConnectorKit Packages Test Results Coverage reports have been generated for all packages. 📁 View Coverage ArtifactsCoverage reports have been generated for all packages:
|
Greptile SummaryThis PR introduces a major architectural refactor that replaces the React-based Key Changes:
Architecture:
The implementation shows solid engineering practices with proper error handling, HTML escaping for user-controlled data, safe JSON parsing, and SSR guards. Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant App as Application
participant Provider as ConnectorProvider
participant Client as ConnectorClient
participant Devtools as ConnectorDevtools
participant Plugin as Plugin (Transactions/Events/Overview)
participant Storage as localStorage
participant RPC as Solana RPC
App->>Provider: Render with ConnectorProvider
Provider->>Client: Initialize ConnectorClient
Provider->>Client: Expose as window.__connectorClient
App->>Devtools: new ConnectorDevtools()
Devtools->>Storage: Load persisted state/cache
Storage-->>Devtools: Return cached data
Devtools->>Client: Auto-detect from window.__connectorClient
App->>Devtools: mount(container)
Devtools->>Client: Subscribe to events (on)
Devtools->>Devtools: Create Shadow DOM element
Devtools->>Plugin: Initialize plugins (Overview, Events, Transactions)
Client->>Devtools: Emit transaction:preparing
Devtools->>Storage: Update cache with inflight transaction
Devtools->>Plugin: Notify cache subscribers
Client->>Devtools: Emit transaction:signing
Devtools->>Storage: Update inflight stage
Client->>Devtools: Emit transaction:sent (signature)
Devtools->>Storage: Persist transaction to cache
Devtools->>Client: Track transaction via client.trackTransaction()
Plugin->>RPC: fetchSignatureStatus(signature)
RPC-->>Plugin: Return status/confirmations
Plugin->>RPC: fetchTransactionJsonParsed(signature)
RPC-->>Plugin: Return transaction details
Plugin->>Devtools: updateCache with RPC data
Devtools->>Storage: Persist updated cache
Devtools->>Client: updateTransactionStatus()
App->>Devtools: unmount()
Devtools->>Client: Unsubscribe from events
Devtools->>Plugin: Call plugin.destroy()
Devtools->>Devtools: Remove Shadow DOM
|
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.
No description provided.