feat: send emdash version with feedback#1730
Conversation
Greptile SummaryThis PR enriches the feedback payload sent to the Discord webhook by appending the running app version (sourced from Confidence Score: 5/5Safe to merge — the change is minimal, correct, and well-guarded against edge cases. All changes are P2 or lower. The version is read from an existing context query, the undefined case is handled with a fallback, and the dependency array is updated correctly. No logic errors or regressions were found. No files require special attention.
|
| Filename | Overview |
|---|---|
| src/renderer/components/FeedbackModal.tsx | Adds appVersion from AppContextProvider to feedback metadata; appends it to the Discord webhook payload with a safe 'unknown' fallback and correctly adds it to the useCallback dependency array. |
Sequence Diagram
sequenceDiagram
participant User
participant FeedbackModal
participant AppContextProvider
participant ElectronAPI
participant DiscordWebhook
AppContextProvider->>ElectronAPI: getAppVersion()
ElectronAPI-->>AppContextProvider: version string (or undefined)
User->>FeedbackModal: opens modal
FeedbackModal->>AppContextProvider: useAppContext() → appVersion
User->>FeedbackModal: submits feedback
FeedbackModal->>FeedbackModal: build metadataLines (Contact, GitHub, Emdash Version)
FeedbackModal->>DiscordWebhook: POST content with metadata
DiscordWebhook-->>FeedbackModal: 200 OK
FeedbackModal-->>User: toast("Feedback sent")
Reviews (1): Last reviewed commit: "feat: send emdash version with feedback" | Re-trigger Greptile
No description provided.