[PR #89] [MERGED] Parse and import querystring on paste #40

Closed
opened 2025-12-29 07:19:01 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/mountain-loop/yaak/pull/89
Author: @gschier
Created: 9/15/2024
Status: Merged
Merged: 9/15/2024
Merged by: @gschier

Base: masterHead: parse-query-on-paste


📝 Commits (6)

📊 Changes

5 files changed (+111 additions, -16 deletions)

View changed files

📝 src-web/components/RequestPane.tsx (+13 -9)
📝 src-web/components/UrlParameterEditor.tsx (+3 -2)
📝 src-web/components/core/Editor/Editor.tsx (+1 -1)
src-web/hooks/useImportQuerystring.ts (+69 -0)
📝 src-web/hooks/useRequestEditor.tsx (+25 -4)

📄 Description

This PR adds a new feature to:

  • User pastes URL into url input
  • Querystring is parsed from input
  • URL updated to remove querystring
  • Params updated to include parsed query parameters
  • URL and params editors forced to refresh
  • Toast shown to notify the user what happened

https://feedback.yaak.app/p/paste-url-path-with-query-params-to-replace-existing-query

https://github.com/user-attachments/assets/3f0060b1-e666-4d85-931c-3ac88602d601


🔄 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/mountain-loop/yaak/pull/89 **Author:** [@gschier](https://github.com/gschier) **Created:** 9/15/2024 **Status:** ✅ Merged **Merged:** 9/15/2024 **Merged by:** [@gschier](https://github.com/gschier) **Base:** `master` ← **Head:** `parse-query-on-paste` --- ### 📝 Commits (6) - [`0f05e89`](https://github.com/mountain-loop/yaak/commit/0f05e8925e718849dea9ea265e7af0ff29a5a22d) Import query params from URL - [`4541749`](https://github.com/mountain-loop/yaak/commit/45417492319a5f8de6546f08d0442c1b8a95210a) Fix null check - [`5daab7c`](https://github.com/mountain-loop/yaak/commit/5daab7cf95cc0c28f15b4e65a0fa57471a0132f9) Rename - [`2449467`](https://github.com/mountain-loop/yaak/commit/24494675d7b5dc76c278160ae151edb349ede461) Rename key - [`bed1ed6`](https://github.com/mountain-loop/yaak/commit/bed1ed6d11ec6e6c80bf9677d852f16ace496d4b) Fix base url - [`f740256`](https://github.com/mountain-loop/yaak/commit/f74025604fc4b94093d742ec8985d10717fa6db6) Decode params on import ### 📊 Changes **5 files changed** (+111 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `src-web/components/RequestPane.tsx` (+13 -9) 📝 `src-web/components/UrlParameterEditor.tsx` (+3 -2) 📝 `src-web/components/core/Editor/Editor.tsx` (+1 -1) ➕ `src-web/hooks/useImportQuerystring.ts` (+69 -0) 📝 `src-web/hooks/useRequestEditor.tsx` (+25 -4) </details> ### 📄 Description This PR adds a new feature to: - User pastes URL into url input - Querystring is parsed from input - URL updated to remove querystring - Params updated to include parsed query parameters - URL and params editors forced to refresh - Toast shown to notify the user what happened https://feedback.yaak.app/p/paste-url-path-with-query-params-to-replace-existing-query https://github.com/user-attachments/assets/3f0060b1-e666-4d85-931c-3ac88602d601 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 07:19:01 +01:00
adam closed this issue 2025-12-29 07:19:01 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/yaak#40