[PR #1388] [MERGED] feat: input toggle for parameters and headers #3276

Closed
opened 2026-03-17 00:54:24 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/1388
Author: @liyasthomas
Created: 12/15/2020
Status: Merged
Merged: 12/28/2020
Merged by: @liyasthomas

Base: mainHead: feat/input_toggler


📝 Commits (7)

  • ff55132 feat: toggler for parameters and headers
  • aba6613 refactor: move bodyParams to separate component + feat: input toggle
  • dcf21e4 Merge branch 'main' into feat/input_toggler
  • e7655df fix: backward copaitability
  • 10a920f Merge branch 'main' into feat/input_toggler
  • bf59ba5 Merge branch 'main' into feat/input_toggler
  • 9d2fc1e Fixed issue with imported active prop mutations

📊 Changes

7 files changed (+242 additions, -112 deletions)

View changed files

components/http/http-body-parameters.vue (+126 -0)
📝 components/http/http-headers.vue (+28 -3)
📝 components/http/http-parameters.vue (+28 -3)
📝 helpers/requestParams.js (+8 -2)
📝 lang/en-US.json (+1 -0)
📝 pages/index.vue (+25 -104)
📝 store/mutations.js (+26 -0)

📄 Description

  • move bodyParams to separate component - missed in #1372

  • introducing new key active: true (default: true) in:

    • params

    image

    • headers

    image

    • bodyParams

    image

  • checks

    • restore from history

    • restore from collections

    • queryString

    • codegen

  • backward compatibility (when requests imported from History / Collections) might break, toggling active doesn't work on them since there's no such key in old format. yelp : (

@AndrewBastin should we change active key to some non-destructive key like disabled which is false by default..?


🔄 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/1388 **Author:** [@liyasthomas](https://github.com/liyasthomas) **Created:** 12/15/2020 **Status:** ✅ Merged **Merged:** 12/28/2020 **Merged by:** [@liyasthomas](https://github.com/liyasthomas) **Base:** `main` ← **Head:** `feat/input_toggler` --- ### 📝 Commits (7) - [`ff55132`](https://github.com/hoppscotch/hoppscotch/commit/ff5513250990d56d0a9e2bb101d81c3092f4cc42) feat: toggler for parameters and headers - [`aba6613`](https://github.com/hoppscotch/hoppscotch/commit/aba6613fb79d7da778a4cef23ca63c45a2781c83) refactor: move bodyParams to separate component + feat: input toggle - [`dcf21e4`](https://github.com/hoppscotch/hoppscotch/commit/dcf21e4385c92df00f707d341d930f0223687dd4) Merge branch 'main' into feat/input_toggler - [`e7655df`](https://github.com/hoppscotch/hoppscotch/commit/e7655df29bd8f0f1e87f9da50a370b65841bba31) fix: backward copaitability - [`10a920f`](https://github.com/hoppscotch/hoppscotch/commit/10a920ff837c567ff9b38c34e2b35b85c06f49cd) Merge branch 'main' into feat/input_toggler - [`bf59ba5`](https://github.com/hoppscotch/hoppscotch/commit/bf59ba53af5000e49930916e89b10b9ab887a30f) Merge branch 'main' into feat/input_toggler - [`9d2fc1e`](https://github.com/hoppscotch/hoppscotch/commit/9d2fc1e3ccab0f7b0828515fc4eddd7b5eaef75e) Fixed issue with imported active prop mutations ### 📊 Changes **7 files changed** (+242 additions, -112 deletions) <details> <summary>View changed files</summary> ➕ `components/http/http-body-parameters.vue` (+126 -0) 📝 `components/http/http-headers.vue` (+28 -3) 📝 `components/http/http-parameters.vue` (+28 -3) 📝 `helpers/requestParams.js` (+8 -2) 📝 `lang/en-US.json` (+1 -0) 📝 `pages/index.vue` (+25 -104) 📝 `store/mutations.js` (+26 -0) </details> ### 📄 Description - [x] move `bodyParams` to separate component - missed in #1372 - [x] introducing new key `active: true` (default: true) in: - [x] `params` ![image](https://user-images.githubusercontent.com/10395817/102179563-5ded9080-3ecd-11eb-8790-ce55b47471ec.png) - [x] `headers` ![image](https://user-images.githubusercontent.com/10395817/102179716-9d1be180-3ecd-11eb-80d8-d15b0c427df5.png) - [x] `bodyParams` ![image](https://user-images.githubusercontent.com/10395817/102183985-bbd1a680-3ed4-11eb-8bd3-932bc781f086.png) - [x] checks - [x] restore from history - [x] restore from collections - [x] queryString - [x] codegen - [x] backward compatibility (when requests imported from History / Collections) might break, toggling active doesn't work on them since there's no such key in old format. yelp : ( > @AndrewBastin should we change `active` key to some non-destructive key like `disabled` which is `false` by default..? --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 00:54:24 +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#3276
No description provided.