feat: add enterprise user activity events for request/document actions - #10337
Open
fiosman wants to merge 7 commits into
Open
feat: add enterprise user activity events for request/document actions#10337fiosman wants to merge 7 commits into
fiosman wants to merge 7 commits into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR integrates the new POST /v3/users/me/actions endpoint by adding a lightweight “fire-and-forget” tracking helper in the UI and emitting user-action events when documents/requests are created and when requests are executed.
Changes:
- Added
trackUserActionAPI wrapper andUserActionTypeunion ininsomnia-api. - Added
trackUserActivityUI utility to generateeventIds and no-op when logged out. - Wired activity tracking into workspace/document creation, request creation, and request execution routes.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/insomnia/src/ui/utils/track-user-activity.ts | New UI helper that reads session id, generates an event id, and posts the user action (best-effort). |
| packages/insomnia/src/routes/organization.$organizationId.project.$projectId.workspace.new.tsx | Emits document_created and request_created activity events after corresponding create flows. |
| packages/insomnia/src/routes/organization.$organizationId.project.$projectId.workspace.$workspaceId.debug.request.new.tsx | Emits request_created activity event on request creation via debug route. |
| packages/insomnia/src/routes/organization.$organizationId.project.$projectId.workspace.$workspaceId.debug.request.$requestId.send.tsx | Emits request_executed activity event after successful request execution analytics. |
| packages/insomnia-api/src/user.ts | Adds the API client wrapper (trackUserAction) for POST /v3/users/me/actions. |
Suppressed comments (1)
packages/insomnia/src/ui/utils/track-user-activity.ts:8
- The doc comment endpoint path is missing the
/v3prefix; it should match the actualtrackUserActionpath (/v3/users/me/actions).
* POST /users/me/actions. Fire-and-forget: never throws, no-ops when logged out.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
✅ Circular References ReportGenerated at: 2026-08-07T22:08:13.178Z Summary
Click to view all circular references in PR (9)Click to view all circular references in base branch (9)Analysis✅ No Change: This PR does not introduce or remove any circular references. This report was generated automatically by comparing against the |
fiosman
force-pushed
the
feat/account-tracking-activity-events
branch
from
August 6, 2026 15:05
cd08be7 to
85fc792
Compare
fiosman
marked this pull request as draft
August 6, 2026 15:57
fiosman
marked this pull request as ready for review
August 6, 2026 20:25
fiosman
force-pushed
the
feat/account-tracking-activity-events
branch
from
August 7, 2026 15:22
338fb1c to
f81f662
Compare
fiosman
force-pushed
the
feat/account-tracking-activity-events
branch
from
August 7, 2026 15:41
f81f662 to
8d2ae9b
Compare
Ali-Sab
reviewed
Aug 7, 2026
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.
This PR adds logic to integrate new POST /v3/users/me/actions API endpoint. It fires off events after a request/design document is created and a request is executed. All events are fire and forget.
Jira