[PR #3645] [CLOSED] feat: Persist Wrap Line Setting for Tabs #4470

Closed
opened 2026-03-17 02:00:08 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/3645
Author: @ajmalmohad
Created: 12/12/2023
Status: Closed

Base: mainHead: feature/persist-wrap-lines


📝 Commits (1)

  • 50d5d4b feat: persist wrap line setting for rest tabs

📊 Changes

13 files changed (+117 additions, -11 deletions)

View changed files

📝 packages/hoppscotch-common/src/components/collections/SaveRequest.vue (+26 -3)
📝 packages/hoppscotch-common/src/components/http/Body.vue (+9 -1)
📝 packages/hoppscotch-common/src/components/http/RawBody.vue (+12 -1)
📝 packages/hoppscotch-common/src/components/http/RequestOptions.vue (+5 -0)
📝 packages/hoppscotch-common/src/components/http/RequestTab.vue (+5 -1)
📝 packages/hoppscotch-common/src/components/http/Response.vue (+5 -1)
📝 packages/hoppscotch-common/src/components/lenses/ResponseBodyRenderer.vue (+9 -2)
📝 packages/hoppscotch-common/src/components/lenses/renderers/JSONLensRenderer.vue (+19 -2)
📝 packages/hoppscotch-common/src/helpers/rest/document.ts (+10 -0)
📝 packages/hoppscotch-common/src/pages/index.vue (+5 -0)
📝 packages/hoppscotch-common/src/services/context-menu/menu/url.menu.ts (+4 -0)
📝 packages/hoppscotch-common/src/services/spotlight/searchers/collections.searcher.ts (+4 -0)
📝 packages/hoppscotch-common/src/services/tab/rest.ts (+4 -0)

📄 Description

Added support for persisting the wrap line setting for both request and response views in REST tabs.

  • Add support for REST Tabs
  • Add support for GraphQL Tabs
  • Add Support for Websocket Tab
  • Update tests for supporting new document format

Closes #3641

Description

Added an additional field called editorSettings in REST Tabs which contains requestWrapLines and responseWrapLines which'll store the boolean of Wrap Line button on both request and response sections.

Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

Additional Information

Tests need to be changed to accommodate the new document format


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/3645 **Author:** [@ajmalmohad](https://github.com/ajmalmohad) **Created:** 12/12/2023 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feature/persist-wrap-lines` --- ### 📝 Commits (1) - [`50d5d4b`](https://github.com/hoppscotch/hoppscotch/commit/50d5d4b6905fc30c947ec35bae20c58949a90180) feat: persist wrap line setting for rest tabs ### 📊 Changes **13 files changed** (+117 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-common/src/components/collections/SaveRequest.vue` (+26 -3) 📝 `packages/hoppscotch-common/src/components/http/Body.vue` (+9 -1) 📝 `packages/hoppscotch-common/src/components/http/RawBody.vue` (+12 -1) 📝 `packages/hoppscotch-common/src/components/http/RequestOptions.vue` (+5 -0) 📝 `packages/hoppscotch-common/src/components/http/RequestTab.vue` (+5 -1) 📝 `packages/hoppscotch-common/src/components/http/Response.vue` (+5 -1) 📝 `packages/hoppscotch-common/src/components/lenses/ResponseBodyRenderer.vue` (+9 -2) 📝 `packages/hoppscotch-common/src/components/lenses/renderers/JSONLensRenderer.vue` (+19 -2) 📝 `packages/hoppscotch-common/src/helpers/rest/document.ts` (+10 -0) 📝 `packages/hoppscotch-common/src/pages/index.vue` (+5 -0) 📝 `packages/hoppscotch-common/src/services/context-menu/menu/url.menu.ts` (+4 -0) 📝 `packages/hoppscotch-common/src/services/spotlight/searchers/collections.searcher.ts` (+4 -0) 📝 `packages/hoppscotch-common/src/services/tab/rest.ts` (+4 -0) </details> ### 📄 Description Added support for persisting the wrap line setting for both request and response views in REST tabs. - [x] Add support for REST Tabs - [ ] Add support for GraphQL Tabs - [ ] Add Support for Websocket Tab - [ ] Update tests for supporting new document format <!-- Thanks for creating this pull request 🤗 Please make sure that the pull request is limited to one type (docs, feature, etc.) and keep it as small as possible. You can open multiple prs instead of opening a huge one. --> <!-- If this pull request closes an issue, please mention the issue number below --> Closes #3641 ### Description Added an additional field called editorSettings in REST Tabs which contains requestWrapLines and responseWrapLines which'll store the boolean of `Wrap Line` button on both request and response sections. <!-- You can also choose to add a list of changes and if they have been completed or not by using the markdown to-do list syntax - [ ] Not Completed - [x] Completed --> ### Checks <!-- Make sure your pull request passes the CI checks and do check the following fields as needed - --> - [x] My pull request adheres to the code style of this project - [ ] My code requires changes to the documentation - [ ] I have updated the documentation as required - [ ] All the tests have passed ### Additional Information Tests need to be changed to accommodate the new document format --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:00:08 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#4470
No description provided.