Skip to content

feat(timeline-headers): show headers info in timeline - #8741

Closed
shubh-bruno wants to merge 8 commits into
usebruno:mainfrom
shubh-bruno:fix/timeline-headers
Closed

shubh-bruno wants to merge 8 commits into
usebruno:mainfrom
shubh-bruno:fix/timeline-headers

Conversation

@shubh-bruno

@shubh-bruno shubh-bruno commented Jul 23, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Contribution Checklist:

  • I've used AI significantly to create this pull request
  • The pull request only addresses one issue or adds one feature.
  • The pull request does not introduce any breaking changes
  • I have added screenshots or gifs to help explain the change if applicable.
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.

Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.

Publishing to New Package Managers

Please see here for more information.

Summary by CodeRabbit

  • New Features

    • Added collapsible, source-aware header sections for requests and responses.
    • Added navigation from timeline headers to the corresponding request, settings, or script location.
    • Added automatic scrolling and visual highlighting for focused header rows.
    • Improved network timelines by displaying missing request headers and preserving header order.
    • Added reduced-motion-friendly visual feedback for focused rows and editor lines.
  • Bug Fixes

    • Improved accuracy when identifying headers added or modified by pre-request scripts.
    • Enhanced request and response header details across timeline and network views.

@coderabbitai

coderabbitai Bot commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 9a52ab77-228a-44d0-891e-62d6e1db2660

📥 Commits

Reviewing files that changed from the base of the PR and between 4f02e61 and 6f9fa80.

📒 Files selected for processing (20)
  • packages/bruno-app/src/components/CodeEditor/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/Headers/index.js
  • packages/bruno-app/src/components/Devtools/Console/RequestDetailsPanel/index.js
  • packages/bruno-app/src/components/EditableTable/StyledWrapper.js
  • packages/bruno-app/src/components/EditableTable/index.js
  • packages/bruno-app/src/components/FolderSettings/Headers/index.js
  • packages/bruno-app/src/components/RequestPane/RequestHeaders/index.js
  • packages/bruno-app/src/components/ResponsePane/Timeline/TimelineItem/Common/Headers/index.js
  • packages/bruno-app/src/components/ResponsePane/Timeline/TimelineItem/Network/index.js
  • packages/bruno-app/src/components/ResponsePane/Timeline/TimelineItem/Request/index.js
  • packages/bruno-app/src/components/ResponsePane/Timeline/TimelineItem/StyledWrapper.js
  • packages/bruno-app/src/components/ResponsePane/Timeline/TimelineItem/index.js
  • packages/bruno-app/src/hooks/useFocusErrorLine/index.js
  • packages/bruno-app/src/hooks/useFocusHeaderRow/index.js
  • packages/bruno-app/src/providers/ReduxStore/slices/tabs.js
  • packages/bruno-app/src/utils/codemirror/focusErrorLine.js
  • packages/bruno-common/src/utils/headers-source.js
  • packages/bruno-common/src/utils/index.ts
  • packages/bruno-electron/src/ipc/network/axios-instance.js
  • packages/bruno-electron/src/ipc/network/index.js

Walkthrough

Adds request-header provenance tracking, grouped timeline header views, navigation into source definitions, focused table-row highlighting, and variant-based editor flashes across the app and Electron network layer.

Changes

Header provenance and navigation

Layer / File(s) Summary
Capture sent and script-modified headers
packages/bruno-electron/src/ipc/network/*
Request execution records headers changed by pre-request scripts and backfills missing transport headers into success and failure timelines.
Build shared header source sections
packages/bruno-common/src/utils/headers-source.js, packages/bruno-common/src/utils/index.ts
Header utilities normalize values, attribute sources across collection levels and scripts, attach navigation metadata, and flatten sections.
Route focus signals to editors and tables
packages/bruno-app/src/providers/ReduxStore/slices/tabs.js, packages/bruno-app/src/hooks/*, packages/bruno-app/src/components/EditableTable/*, packages/bruno-app/src/components/CodeEditor/StyledWrapper.js, packages/bruno-app/src/utils/codemirror/focusErrorLine.js, packages/bruno-app/src/components/{CollectionSettings,FolderSettings,RequestPane}/Headers/index.js
Redux focus signals drive virtualized row scrolling and timed flashes; CodeMirror supports error and informational variants, including reduced-motion styling.
Render and navigate timeline headers
packages/bruno-app/src/components/ResponsePane/Timeline/TimelineItem/{Common/Headers,Request,Network,StyledWrapper,index.js}
Timeline headers render recursively grouped sections with counts and navigation actions, while network entries follow the derived header order.
Integrate derived headers into devtools
packages/bruno-app/src/components/Devtools/Console/RequestDetailsPanel/index.js
Request details derives shared header rows and passes collection, item, and request context to the relevant tabs.

Estimated code review effort: 4 (Complex) | ~45 minutes

Suggested reviewers: sid-bruno

Poem

Headers whisper where they came,
Rows now flash and point the way.
Scripts leave their traced-out name,
Timelines bloom in grouped display.
A focused click completes the frame.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
⚔️ Resolve merge conflicts
  • Resolve merge conflict in branch fix/timeline-headers

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant