[PR #3647] [MERGED] feat: persist line wrap setting #4468

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/3647
Author: @ajmalmohad
Created: 12/13/2023
Status: Merged
Merged: 2/9/2024
Merged by: @AndrewBastin

Base: release/2023.12.4Head: feature/persist-line-wraps


📝 Commits (10+)

  • a22ded2 feat: persist line wrap setting
  • d7063aa chore: removed unused imports
  • 848dfcb chore: settings schema updated
  • 9139bbc feat: persist line wraps
  • 146e7ff fix: applyNestedSetting dispatcher for nested settings
  • 35116f6 chore: type specificity
  • 7c78b1b fix: type errors in setting nested result
  • aa32294 chore: type sepcificity
  • 6546fbd fix: removed wrap line persistence from realtime view
  • e37fa79 chore: add suggestions from review

📊 Changes

21 files changed (+273 additions, -72 deletions)

View changed files

📝 packages/hoppscotch-common/src/components/cookies/EditCookie.vue (+6 -4)
📝 packages/hoppscotch-common/src/components/graphql/Headers.vue (+6 -4)
📝 packages/hoppscotch-common/src/components/graphql/Query.vue (+6 -4)
📝 packages/hoppscotch-common/src/components/graphql/Response.vue (+8 -4)
📝 packages/hoppscotch-common/src/components/graphql/Sidebar.vue (+6 -4)
📝 packages/hoppscotch-common/src/components/graphql/Variable.vue (+6 -4)
📝 packages/hoppscotch-common/src/components/http/CodegenModal.vue (+6 -4)
📝 packages/hoppscotch-common/src/components/http/Headers.vue (+7 -4)
📝 packages/hoppscotch-common/src/components/http/ImportCurl.vue (+6 -4)
📝 packages/hoppscotch-common/src/components/http/Parameters.vue (+6 -4)
📝 packages/hoppscotch-common/src/components/http/PreRequestScript.vue (+6 -4)
📝 packages/hoppscotch-common/src/components/http/RawBody.vue (+6 -4)
📝 packages/hoppscotch-common/src/components/http/Tests.vue (+6 -4)
📝 packages/hoppscotch-common/src/components/http/URLEncodedParams.vue (+6 -4)
📝 packages/hoppscotch-common/src/components/lenses/renderers/HTMLLensRenderer.vue (+6 -4)
📝 packages/hoppscotch-common/src/components/lenses/renderers/JSONLensRenderer.vue (+6 -4)
📝 packages/hoppscotch-common/src/components/lenses/renderers/RawLensRenderer.vue (+6 -4)
📝 packages/hoppscotch-common/src/components/lenses/renderers/XMLLensRenderer.vue (+6 -4)
📝 packages/hoppscotch-common/src/composables/settings.ts (+31 -0)
📝 packages/hoppscotch-common/src/newstore/settings.ts (+111 -0)

...and 1 more files

📄 Description

Persisted line wrap setting across various fields

Closes #3641

Description

Added settings for wrap line toggle for editor fields

HTTP: Request Body, Response Body, Headers, Parameters, URL Encoded, Pre-request, Test
GraphQL: Query, Response Body, Headers, Variables, Schema
Realtime: Communication Body, Realtime Log
Others: Import cURL, Code Generation, Cookie

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

https://github.com/hoppscotch/hoppscotch/assets/55492635/7e9e152e-226e-4af1-ad04-d515fbaa3412


🔄 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/3647 **Author:** [@ajmalmohad](https://github.com/ajmalmohad) **Created:** 12/13/2023 **Status:** ✅ Merged **Merged:** 2/9/2024 **Merged by:** [@AndrewBastin](https://github.com/AndrewBastin) **Base:** `release/2023.12.4` ← **Head:** `feature/persist-line-wraps` --- ### 📝 Commits (10+) - [`a22ded2`](https://github.com/hoppscotch/hoppscotch/commit/a22ded2f28fc87608ec360d0484961eb2ed9c028) feat: persist line wrap setting - [`d7063aa`](https://github.com/hoppscotch/hoppscotch/commit/d7063aa4f85f3c7bfe86c7423fc4089751835847) chore: removed unused imports - [`848dfcb`](https://github.com/hoppscotch/hoppscotch/commit/848dfcbf0660420c1ceddff5c4e0af2303bfcdcc) chore: settings schema updated - [`9139bbc`](https://github.com/hoppscotch/hoppscotch/commit/9139bbc785fabeacfddeb517d8e7e9a849befd8c) feat: persist line wraps - [`146e7ff`](https://github.com/hoppscotch/hoppscotch/commit/146e7ff72ca5c2d6a6659c4ec1b3629c29473f3b) fix: applyNestedSetting dispatcher for nested settings - [`35116f6`](https://github.com/hoppscotch/hoppscotch/commit/35116f625e460c00fe9a9e55255b45ad8df81813) chore: type specificity - [`7c78b1b`](https://github.com/hoppscotch/hoppscotch/commit/7c78b1b9b0b4d69ee62bf1e3b675932b6023601c) fix: type errors in setting nested result - [`aa32294`](https://github.com/hoppscotch/hoppscotch/commit/aa32294fae7dd0aa06d66a41d8e4cd55d4769e5e) chore: type sepcificity - [`6546fbd`](https://github.com/hoppscotch/hoppscotch/commit/6546fbd22e24d5f3469624db2d54e0dc1bd74643) fix: removed wrap line persistence from realtime view - [`e37fa79`](https://github.com/hoppscotch/hoppscotch/commit/e37fa795fa124e98895b381bdceba711552c06e8) chore: add suggestions from review ### 📊 Changes **21 files changed** (+273 additions, -72 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-common/src/components/cookies/EditCookie.vue` (+6 -4) 📝 `packages/hoppscotch-common/src/components/graphql/Headers.vue` (+6 -4) 📝 `packages/hoppscotch-common/src/components/graphql/Query.vue` (+6 -4) 📝 `packages/hoppscotch-common/src/components/graphql/Response.vue` (+8 -4) 📝 `packages/hoppscotch-common/src/components/graphql/Sidebar.vue` (+6 -4) 📝 `packages/hoppscotch-common/src/components/graphql/Variable.vue` (+6 -4) 📝 `packages/hoppscotch-common/src/components/http/CodegenModal.vue` (+6 -4) 📝 `packages/hoppscotch-common/src/components/http/Headers.vue` (+7 -4) 📝 `packages/hoppscotch-common/src/components/http/ImportCurl.vue` (+6 -4) 📝 `packages/hoppscotch-common/src/components/http/Parameters.vue` (+6 -4) 📝 `packages/hoppscotch-common/src/components/http/PreRequestScript.vue` (+6 -4) 📝 `packages/hoppscotch-common/src/components/http/RawBody.vue` (+6 -4) 📝 `packages/hoppscotch-common/src/components/http/Tests.vue` (+6 -4) 📝 `packages/hoppscotch-common/src/components/http/URLEncodedParams.vue` (+6 -4) 📝 `packages/hoppscotch-common/src/components/lenses/renderers/HTMLLensRenderer.vue` (+6 -4) 📝 `packages/hoppscotch-common/src/components/lenses/renderers/JSONLensRenderer.vue` (+6 -4) 📝 `packages/hoppscotch-common/src/components/lenses/renderers/RawLensRenderer.vue` (+6 -4) 📝 `packages/hoppscotch-common/src/components/lenses/renderers/XMLLensRenderer.vue` (+6 -4) 📝 `packages/hoppscotch-common/src/composables/settings.ts` (+31 -0) 📝 `packages/hoppscotch-common/src/newstore/settings.ts` (+111 -0) _...and 1 more files_ </details> ### 📄 Description Persisted line wrap setting across various fields <!-- 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 settings for wrap line toggle for editor fields **HTTP:** Request Body, Response Body, Headers, Parameters, URL Encoded, Pre-request, Test **GraphQL:** Query, Response Body, Headers, Variables, Schema **Realtime:** Communication Body, Realtime Log **Others:** Import cURL, Code Generation, Cookie <!-- 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 - [x] All the tests have passed ### Additional Information https://github.com/hoppscotch/hoppscotch/assets/55492635/7e9e152e-226e-4af1-ad04-d515fbaa3412 --- <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#4468
No description provided.