Skip to content

Feat/scroll persist rich text - #8826

Closed
sachin-thakur-bruno wants to merge 56 commits into
mainfrom
feat/scroll-persist-rich-text
Closed

sachin-thakur-bruno wants to merge 56 commits into
mainfrom
feat/scroll-persist-rich-text

Conversation

@sachin-thakur-bruno

@sachin-thakur-bruno sachin-thakur-bruno commented Jul 30, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Problem

Fix

Screenshots

Before After

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.
  • I've run the claude code review skill locally.

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 a rich-text documentation editor with Markdown mode.
    • Added formatting tools for headings, lists, task lists, tables, links, quotes, code blocks, and media.
    • Added link previews and editing controls, including safe URL handling.
    • Added documentation editing controls across request, folder, collection, and workspace views.
  • Bug Fixes

    • Improved Markdown round-tripping and preservation of raw HTML content.
    • Improved scroll-position persistence when switching documentation views.
    • Improved toolbar responsiveness and dropdown active-state behavior.

sanish-bruno and others added 30 commits June 30, 2026 15:45
…list styles and command state management, reactivity when in active state
- Refactor handleLinkClick to correctly resolve full link mark ranges when a link is partially selected.
- Add javascript: schema validation to prevent XSS through link URLs.
- Remove redundant onKeyDown Enter handler from DocsLinkModal to fix double-submit bug.
- Fix DOCS_MENU_DROPDOWN_PROPS spread in DocsToolbar for MenuDropdown.
@coderabbitai

coderabbitai Bot commented Jul 30, 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: e7b55187-0b6c-45ad-8bed-65d0dcba8971

📥 Commits

Reviewing files that changed from the base of the PR and between 7cff8d7 and 80283d0.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (78)
  • packages/bruno-app/package.json
  • packages/bruno-app/src/components/CollectionSettings/Docs/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/Docs/index.js
  • packages/bruno-app/src/components/Documentation/DocsAction/StyledWrapper.js
  • packages/bruno-app/src/components/Documentation/DocsAction/index.js
  • packages/bruno-app/src/components/Documentation/DocsEditor/StyledWrapper.js
  • packages/bruno-app/src/components/Documentation/DocsEditor/index.js
  • packages/bruno-app/src/components/Documentation/StyledWrapper.js
  • packages/bruno-app/src/components/Documentation/index.js
  • packages/bruno-app/src/components/Documentation/useDocsEditingState/index.js
  • packages/bruno-app/src/components/Dropdown/StyledWrapper.js
  • packages/bruno-app/src/components/FolderSettings/Documentation/index.js
  • packages/bruno-app/src/components/MarkDown/StyledWrapper.js
  • packages/bruno-app/src/components/MarkDown/index.jsx
  • packages/bruno-app/src/components/ModeSwitch/StyledWrapper.js
  • packages/bruno-app/src/components/ModeSwitch/index.js
  • packages/bruno-app/src/components/Notifications/NotificationsModal/NotificationDetail.js
  • packages/bruno-app/src/components/RequestPane/GraphQLRequestPane/index.js
  • packages/bruno-app/src/components/RequestPane/GrpcRequestPane/index.js
  • packages/bruno-app/src/components/RequestPane/HttpRequestPane/index.js
  • packages/bruno-app/src/components/RequestPane/WSRequestPane/index.js
  • packages/bruno-app/src/components/RequestTabPanel/index.js
  • packages/bruno-app/src/components/WorkspaceHome/WorkspaceDocs/StyledWrapper.js
  • packages/bruno-app/src/components/WorkspaceHome/WorkspaceDocs/index.js
  • packages/bruno-app/src/components/WorkspaceHome/WorkspaceOverview/index.js
  • packages/bruno-app/src/hooks/useTrackScroll/index.ts
  • packages/bruno-app/src/ui/MenuDropdown/index.js
  • packages/bruno-app/src/ui/ResponsiveTabs/index.js
  • packages/bruno-app/src/ui/RichTextEditor/components/EditorLinkEditPopover/StyledWrapper.js
  • packages/bruno-app/src/ui/RichTextEditor/components/EditorLinkEditPopover/index.js
  • packages/bruno-app/src/ui/RichTextEditor/components/EditorLinkPopover/StyledWrapper.js
  • packages/bruno-app/src/ui/RichTextEditor/components/EditorLinkPopover/index.js
  • packages/bruno-app/src/ui/RichTextEditor/components/EditorTableMenu/index.js
  • packages/bruno-app/src/ui/RichTextEditor/components/EditorToolbar/StyledWrapper.js
  • packages/bruno-app/src/ui/RichTextEditor/components/EditorToolbar/index.js
  • packages/bruno-app/src/ui/RichTextEditor/components/EditorToolbar/index.spec.js
  • packages/bruno-app/src/ui/RichTextEditor/components/StyledWrapper.js
  • packages/bruno-app/src/ui/RichTextEditor/editorContentStyles.js
  • packages/bruno-app/src/ui/RichTextEditor/extensions/EditorGapCursor/index.js
  • packages/bruno-app/src/ui/RichTextEditor/extensions/EditorHardBreak/index.js
  • packages/bruno-app/src/ui/RichTextEditor/extensions/EditorInlineHtmlMarks/index.js
  • packages/bruno-app/src/ui/RichTextEditor/extensions/EditorListKeyboard/index.js
  • packages/bruno-app/src/ui/RichTextEditor/extensions/EditorParagraph/index.js
  • packages/bruno-app/src/ui/RichTextEditor/extensions/EditorRawHtmlBlock/index.js
  • packages/bruno-app/src/ui/RichTextEditor/extensions/EditorRelativeAssets/index.js
  • packages/bruno-app/src/ui/RichTextEditor/extensions/EditorTable/index.js
  • packages/bruno-app/src/ui/RichTextEditor/extensions/EditorTableAlignment/index.js
  • packages/bruno-app/src/ui/RichTextEditor/extensions/EditorTableKeyboard/index.js
  • packages/bruno-app/src/ui/RichTextEditor/extensions/EditorTableView/index.js
  • packages/bruno-app/src/ui/RichTextEditor/extensions/EditorTaskList/index.js
  • packages/bruno-app/src/ui/RichTextEditor/extensions/EditorTaskList/index.spec.js
  • packages/bruno-app/src/ui/RichTextEditor/extensions/index.js
  • packages/bruno-app/src/ui/RichTextEditor/hooks/useLinkHandlers/index.js
  • packages/bruno-app/src/ui/RichTextEditor/hooks/useToolbarOverflow/index.js
  • packages/bruno-app/src/ui/RichTextEditor/index.js
  • packages/bruno-app/src/ui/RichTextEditor/utils/editorMarkdownParse.js
  • packages/bruno-app/src/ui/RichTextEditor/utils/editorMarkdownParse.spec.js
  • packages/bruno-app/src/ui/RichTextEditor/utils/editorMarkdownSerialize.js
  • packages/bruno-app/src/ui/RichTextEditor/utils/editorMarkdownSerialize.spec.js
  • packages/bruno-app/src/ui/RichTextEditor/utils/editorToolbarConfig.js
  • packages/bruno-app/src/ui/RichTextEditor/utils/editorToolbarUi.js
  • packages/bruno-app/src/ui/RichTextEditor/utils/markdownitSetupOnce.js
  • packages/bruno-app/src/utils/url/index.js
  • tests/request/body-scroll/scroll-persistent.spec.ts
  • tests/richtext-editor/actions.ts
  • tests/richtext-editor/blockquote-codeblock.spec.ts
  • tests/richtext-editor/docs-entry-points.spec.ts
  • tests/richtext-editor/heading-levels.spec.ts
  • tests/richtext-editor/line-formatting.spec.ts
  • tests/richtext-editor/lists.spec.ts
  • tests/richtext-editor/markdown-roundtrip.spec.ts
  • tests/richtext-editor/markdown-sync.spec.ts
  • tests/richtext-editor/overflow-menu.spec.ts
  • tests/richtext-editor/raw-html-passthrough.spec.ts
  • tests/richtext-editor/table-menu.spec.ts
  • tests/richtext-editor/table.spec.ts
  • tests/utils/page/docs/index.ts
  • tests/utils/page/locators.ts

Walkthrough

This change introduces a TipTap rich text documentation editor with Markdown synchronization, formatting and table controls, task-list and raw-HTML support, link popovers, persisted scrolling, updated documentation entry points, and broad unit and Playwright coverage.

Changes

Rich text editor foundation

Layer / File(s) Summary
Editor model and Markdown pipeline
packages/bruno-app/package.json, packages/bruno-app/src/ui/RichTextEditor/extensions/*, packages/bruno-app/src/ui/RichTextEditor/utils/*, packages/bruno-app/src/utils/url/index.js
Adds TipTap dependencies, custom extensions, Markdown parsing/serialization, task lists, tables, hard breaks, raw HTML, relative assets, and safe URL validation.
Editor toolbar and link interactions
packages/bruno-app/src/ui/RichTextEditor/*
Adds the editor shell, toolbar actions, overflow handling, table menu, link preview/edit popovers, and link insertion/removal handlers.
Documentation editor flow
packages/bruno-app/src/components/Documentation/*, packages/bruno-app/src/components/CollectionSettings/Docs/*, packages/bruno-app/src/components/FolderSettings/Documentation/*, packages/bruno-app/src/components/WorkspaceHome/WorkspaceDocs/*
Routes documentation editing and preview through DocsEditor, with mode switching, persisted scrolling, save/discard handling, and AI context wiring.
Shared UI integration
packages/bruno-app/src/components/RequestPane/*, packages/bruno-app/src/ui/MenuDropdown/*, packages/bruno-app/src/ui/ResponsiveTabs/*, packages/bruno-app/src/hooks/useTrackScroll/*
Adds documentation actions to request panes and updates dropdown activity, responsive sizing, panel width, and scroll-container resolution.
Validation coverage
packages/bruno-app/src/ui/RichTextEditor/**/*.spec.js, tests/richtext-editor/*, tests/request/body-scroll/*, tests/utils/page/*
Adds unit and end-to-end coverage for editor formatting, Markdown round trips, lists, tables, raw HTML, entry points, toolbar overflow, and scroll persistence.

Estimated code review effort: 5 (Critical) | ~120 minutes

Possibly related PRs

Suggested reviewers: bijin-bruno, sid-bruno

Poem

Markdown wakes, rich text takes flight,
Tables bloom in editor light.
Links pop up and lists align,
Scrolls return by saved design.
TipTap hums through every page.

✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Fix failing CI checks
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/scroll-persist-rich-text

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.

3 participants