[PR #448] Introduce global requests history window #2625

Open
opened 2026-05-29 06:43:37 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/mountain-loop/yaak/pull/448
Author: @julienbourdeau
Created: 4/25/2026
Status: 🔄 Open

Base: mainHead: history-view


📝 Commits (1)

📊 Changes

16 files changed (+949 additions, -184 deletions)

View changed files

📝 crates/yaak-git/bindings/gen_models.ts (+27 -5)
📝 crates/yaak-models/bindings/gen_models.ts (+30 -8)
crates/yaak-models/migrations/20260418000000_http-response-method-and-request-name.sql (+34 -0)
📝 crates/yaak-models/src/models.rs (+12 -0)
📝 crates/yaak-plugins/bindings/gen_events.ts (+80 -80)
📝 crates/yaak-plugins/bindings/gen_models.ts (+1 -1)
📝 crates/yaak-sync/bindings/gen_models.ts (+27 -5)
📝 crates/yaak/src/send.rs (+3 -0)
📝 packages/plugin-runtime-types/src/bindings/gen_events.ts (+80 -80)
📝 packages/plugin-runtime-types/src/bindings/gen_models.ts (+1 -1)
src-web/commands/openHistory.ts (+20 -0)
📝 src-web/components/CommandPaletteDialog.tsx (+6 -0)
src-web/components/HttpHistoryPage.tsx (+546 -0)
📝 src-web/components/HttpResponseTimeline.tsx (+19 -4)
📝 src-web/components/RequestBodyViewer.tsx (+53 -0)
src-web/routes/workspaces/$workspaceId/history.tsx (+10 -0)

📄 Description

Summary

This is getting close but it's still a work in progress.

I'm adding a global history window to see all previous requests, with their body, method and so on. It's mostly frontend work but there is some database schema change needed. I believe this should live together with the existing history per request, not replace it.

  • Small DB change
    Because of the way history works now, some attributes are not saved and rely on the current request. Like method, name and body_type. I have added those to the response table.

  • UI and features
    I went for a separate window because I like it more. It's accessible via the cmd + K palette.
    I added a button to collapse all requests, to delete all requests, to delete one request. I'm missing one button to replay/restore a request specifically.

  • HTTP + Graphql
    For now, only http and graphql requests are supported. gRPC and websocket could be handled in a future release. Ideally, I'd add filters at the very top and you can see only one type at the time. They are in different tables so it's annoying to handle pagination and such. And I think you only really need to see one at a time.

Any feedback is very welcome!

Submission

  • This PR is a bug fix or small-scope improvement.
  • If this PR is not a bug fix or small-scope improvement, I linked an approved feedback item below.
  • I have read and followed CONTRIBUTING.md.
  • I tested this change locally.
  • I added or updated tests when reasonable.

Approved feedback item (required if not a bug fix or small-scope improvement):

https://yaak.app/feedback/posts/show-global-history

Screenshots

CleanShot 2026-04-25 at 10 45 36@2x CleanShot 2026-04-25 at 10 45 45@2x CleanShot 2026-04-25 at 10 46 35@2x CleanShot 2026-04-25 at 14 25 42@2x

Short video

https://github.com/user-attachments/assets/94a8b33a-42d2-4f79-83f0-2c7a6e9bdbe2


🔄 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/448 **Author:** [@julienbourdeau](https://github.com/julienbourdeau) **Created:** 4/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `history-view` --- ### 📝 Commits (1) - [`ee027fb`](https://github.com/mountain-loop/yaak/commit/ee027fbef7a59ef983952ff1399835b478e980f6) v1 ### 📊 Changes **16 files changed** (+949 additions, -184 deletions) <details> <summary>View changed files</summary> 📝 `crates/yaak-git/bindings/gen_models.ts` (+27 -5) 📝 `crates/yaak-models/bindings/gen_models.ts` (+30 -8) ➕ `crates/yaak-models/migrations/20260418000000_http-response-method-and-request-name.sql` (+34 -0) 📝 `crates/yaak-models/src/models.rs` (+12 -0) 📝 `crates/yaak-plugins/bindings/gen_events.ts` (+80 -80) 📝 `crates/yaak-plugins/bindings/gen_models.ts` (+1 -1) 📝 `crates/yaak-sync/bindings/gen_models.ts` (+27 -5) 📝 `crates/yaak/src/send.rs` (+3 -0) 📝 `packages/plugin-runtime-types/src/bindings/gen_events.ts` (+80 -80) 📝 `packages/plugin-runtime-types/src/bindings/gen_models.ts` (+1 -1) ➕ `src-web/commands/openHistory.ts` (+20 -0) 📝 `src-web/components/CommandPaletteDialog.tsx` (+6 -0) ➕ `src-web/components/HttpHistoryPage.tsx` (+546 -0) 📝 `src-web/components/HttpResponseTimeline.tsx` (+19 -4) 📝 `src-web/components/RequestBodyViewer.tsx` (+53 -0) ➕ `src-web/routes/workspaces/$workspaceId/history.tsx` (+10 -0) </details> ### 📄 Description ## Summary This is getting close but **it's still a work in progress**. I'm adding a global history window to see all previous requests, with their body, method and so on. It's mostly frontend work but there is some database schema change needed. I believe this should live together with the existing history per request, not replace it. * **Small DB change** Because of the way history works now, some attributes are not saved and rely on the current request. Like `method`, `name` and `body_type`. I have added those to the response table. * **UI and features** I went for a separate window because I like it more. It's accessible via the `cmd + K` palette. I added a button to collapse all requests, to delete all requests, to delete one request. I'm missing one button to replay/restore a request specifically. * **HTTP + Graphql** For now, only http and graphql requests are supported. gRPC and websocket could be handled in a future release. Ideally, I'd add filters at the very top and you can see only one type at the time. They are in different tables so it's annoying to handle pagination and such. And I think you only really need to see one at a time. Any feedback is very welcome! ## Submission - [x] This PR is a bug fix or small-scope improvement. - [x] If this PR is not a bug fix or small-scope improvement, I linked an approved feedback item below. - [x] I have read and followed [`CONTRIBUTING.md`](CONTRIBUTING.md). - [x] I tested this change locally. - [ ] I added or updated tests when reasonable. Approved feedback item (required if not a bug fix or small-scope improvement): https://yaak.app/feedback/posts/show-global-history ## Related * https://yaak.app/feedback/posts/save-request-data-for-response-history * https://yaak.app/feedback/posts/request-body-on-history * ## Screenshots <img width="3882" height="2394" alt="CleanShot 2026-04-25 at 10 45 36@2x" src="https://github.com/user-attachments/assets/377e3148-ef71-4934-a254-a1f741110641" /> <img width="3882" height="2394" alt="CleanShot 2026-04-25 at 10 45 45@2x" src="https://github.com/user-attachments/assets/05733e94-f3d4-485a-afc0-6d0ef4bd9624" /> <img width="3882" height="2394" alt="CleanShot 2026-04-25 at 10 46 35@2x" src="https://github.com/user-attachments/assets/914d5b4b-9dc8-4033-a885-e63ba1784783" /> <img width="2658" height="2160" alt="CleanShot 2026-04-25 at 14 25 42@2x" src="https://github.com/user-attachments/assets/9d7d5eb4-e9de-429b-8dd1-c15239c89d73" /> ### Short video https://github.com/user-attachments/assets/94a8b33a-42d2-4f79-83f0-2c7a6e9bdbe2 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-29 06:43:37 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/yaak#2625