[PR #151] [MERGED] Preserve Editor State #86

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

📋 Pull Request Information

Original PR: https://github.com/mountain-loop/yaak/pull/151
Author: @gschier
Created: 12/29/2024
Status: Merged
Merged: 12/31/2024
Merged by: @gschier

Base: masterHead: editor-perf


📝 Commits (2)

  • e70bc27 Checkpoint (state restore is working)
  • 00e8fde Better state saving and use state key everywhere

📊 Changes

33 files changed (+293 additions, -175 deletions)

View changed files

📝 package-lock.json (+19 -10)
📝 src-tauri/src/lib.rs (+5 -1)
📝 src-tauri/src/render.rs (+12 -0)
📝 src-tauri/yaak_models/src/models.rs (+4 -0)
📝 src-web/components/BasicAuth.tsx (+2 -0)
📝 src-web/components/BearerAuth.tsx (+1 -0)
📝 src-web/components/EnvironmentEditDialog.tsx (+1 -0)
📝 src-web/components/FolderSettingsDialog.tsx (+1 -0)
📝 src-web/components/FormMultipartEditor.tsx (+6 -5)
📝 src-web/components/FormUrlencodedEditor.tsx (+5 -4)
📝 src-web/components/GraphQLEditor.tsx (+8 -6)
📝 src-web/components/GrpcConnectionSetupPane.tsx (+3 -0)
📝 src-web/components/GrpcEditor.tsx (+1 -0)
📝 src-web/components/HeadersEditor.tsx (+5 -4)
📝 src-web/components/MarkdownEditor.tsx (+3 -1)
📝 src-web/components/RequestPane.tsx (+11 -6)
📝 src-web/components/Settings/SettingsAppearance.tsx (+1 -0)
📝 src-web/components/Settings/SettingsDesign.tsx (+2 -0)
📝 src-web/components/UrlBar.tsx (+4 -2)
📝 src-web/components/UrlParameterEditor.tsx (+10 -8)

...and 13 more files

📄 Description

This PR adds state preservation to all <Input/> fields. This means that switching requests will no longer wipe undo history (amongst other things) for request body, headers, etc.


🔄 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/151 **Author:** [@gschier](https://github.com/gschier) **Created:** 12/29/2024 **Status:** ✅ Merged **Merged:** 12/31/2024 **Merged by:** [@gschier](https://github.com/gschier) **Base:** `master` ← **Head:** `editor-perf` --- ### 📝 Commits (2) - [`e70bc27`](https://github.com/mountain-loop/yaak/commit/e70bc27aacf37694c3df1204ce8e7c2e87d26cb2) Checkpoint (state restore is working) - [`00e8fde`](https://github.com/mountain-loop/yaak/commit/00e8fdefa9514b57baf88dcd221ea33c382c1c38) Better state saving and use state key everywhere ### 📊 Changes **33 files changed** (+293 additions, -175 deletions) <details> <summary>View changed files</summary> 📝 `package-lock.json` (+19 -10) 📝 `src-tauri/src/lib.rs` (+5 -1) 📝 `src-tauri/src/render.rs` (+12 -0) 📝 `src-tauri/yaak_models/src/models.rs` (+4 -0) 📝 `src-web/components/BasicAuth.tsx` (+2 -0) 📝 `src-web/components/BearerAuth.tsx` (+1 -0) 📝 `src-web/components/EnvironmentEditDialog.tsx` (+1 -0) 📝 `src-web/components/FolderSettingsDialog.tsx` (+1 -0) 📝 `src-web/components/FormMultipartEditor.tsx` (+6 -5) 📝 `src-web/components/FormUrlencodedEditor.tsx` (+5 -4) 📝 `src-web/components/GraphQLEditor.tsx` (+8 -6) 📝 `src-web/components/GrpcConnectionSetupPane.tsx` (+3 -0) 📝 `src-web/components/GrpcEditor.tsx` (+1 -0) 📝 `src-web/components/HeadersEditor.tsx` (+5 -4) 📝 `src-web/components/MarkdownEditor.tsx` (+3 -1) 📝 `src-web/components/RequestPane.tsx` (+11 -6) 📝 `src-web/components/Settings/SettingsAppearance.tsx` (+1 -0) 📝 `src-web/components/Settings/SettingsDesign.tsx` (+2 -0) 📝 `src-web/components/UrlBar.tsx` (+4 -2) 📝 `src-web/components/UrlParameterEditor.tsx` (+10 -8) _...and 13 more files_ </details> ### 📄 Description This PR adds state preservation to all `<Input/>` fields. This means that switching requests will no longer wipe undo history (amongst other things) for request body, headers, etc. --- <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:16 +01:00
adam closed this issue 2025-12-29 07:19:16 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/yaak#86