[PR #266] [MERGED] Dynamic template function args and TTL option for request chaining #191

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

📋 Pull Request Information

Original PR: https://github.com/mountain-loop/yaak/pull/266
Author: @gschier
Created: 10/16/2025
Status: Merged
Merged: 10/16/2025
Merged by: @gschier

Base: mainHead: response-expiry


📝 Commits (2)

  • 8fc3f0a Template functions are now dynamic, and added response() expiry
  • 1512e3e Done

📊 Changes

15 files changed (+365 additions, -95 deletions)

View changed files

📝 packages/plugin-runtime-types/src/bindings/gen_events.ts (+6 -2)
📝 packages/plugin-runtime-types/src/plugins/TemplateFunctionPlugin.ts (+15 -6)
📝 packages/plugin-runtime/src/PluginInstance.ts (+45 -10)
📝 packages/plugin-runtime/src/migrations.ts (+4 -2)
📝 plugins/template-function-response/src/index.ts (+43 -4)
📝 src-tauri/src/lib.rs (+34 -14)
📝 src-tauri/yaak-plugins/bindings/gen_events.ts (+6 -2)
📝 src-tauri/yaak-plugins/src/events.rs (+22 -3)
📝 src-tauri/yaak-plugins/src/manager.rs (+79 -26)
📝 src-web/components/TemplateFunctionDialog.tsx (+20 -7)
📝 src-web/components/core/Editor/Editor.tsx (+18 -12)
📝 src-web/hooks/useHttpAuthenticationConfig.ts (+3 -3)
src-web/hooks/useTemplateFunctionConfig.ts (+60 -0)
📝 src-web/hooks/useTemplateFunctions.ts (+8 -3)
📝 src-web/lib/tauri.ts (+2 -1)

📄 Description

This PR adds a "When Expired" sending behavior to the response.* template functions.

In order to support this, template function plugins needed the ability to only show certain inputs depending on the value of others (like auth can do) so that was added too.

CleanShot 2025-10-16 at 14 31 57@2x

🔄 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/266 **Author:** [@gschier](https://github.com/gschier) **Created:** 10/16/2025 **Status:** ✅ Merged **Merged:** 10/16/2025 **Merged by:** [@gschier](https://github.com/gschier) **Base:** `main` ← **Head:** `response-expiry` --- ### 📝 Commits (2) - [`8fc3f0a`](https://github.com/mountain-loop/yaak/commit/8fc3f0a6329c25ade405ae997569c3b12f762202) Template functions are now dynamic, and added response() expiry - [`1512e3e`](https://github.com/mountain-loop/yaak/commit/1512e3edc7a16225d70d801cf40ee3f1b1eba5dd) Done ### 📊 Changes **15 files changed** (+365 additions, -95 deletions) <details> <summary>View changed files</summary> 📝 `packages/plugin-runtime-types/src/bindings/gen_events.ts` (+6 -2) 📝 `packages/plugin-runtime-types/src/plugins/TemplateFunctionPlugin.ts` (+15 -6) 📝 `packages/plugin-runtime/src/PluginInstance.ts` (+45 -10) 📝 `packages/plugin-runtime/src/migrations.ts` (+4 -2) 📝 `plugins/template-function-response/src/index.ts` (+43 -4) 📝 `src-tauri/src/lib.rs` (+34 -14) 📝 `src-tauri/yaak-plugins/bindings/gen_events.ts` (+6 -2) 📝 `src-tauri/yaak-plugins/src/events.rs` (+22 -3) 📝 `src-tauri/yaak-plugins/src/manager.rs` (+79 -26) 📝 `src-web/components/TemplateFunctionDialog.tsx` (+20 -7) 📝 `src-web/components/core/Editor/Editor.tsx` (+18 -12) 📝 `src-web/hooks/useHttpAuthenticationConfig.ts` (+3 -3) ➕ `src-web/hooks/useTemplateFunctionConfig.ts` (+60 -0) 📝 `src-web/hooks/useTemplateFunctions.ts` (+8 -3) 📝 `src-web/lib/tauri.ts` (+2 -1) </details> ### 📄 Description This PR adds a "When Expired" sending behavior to the `response.*` template functions. In order to support this, template function plugins needed the ability to only show certain inputs depending on the value of others (like auth can do) so that was added too. <img width="1978" height="1300" alt="CleanShot 2025-10-16 at 14 31 57@2x" src="https://github.com/user-attachments/assets/942aca26-640a-4ee0-8843-b12b0155a3db" /> --- <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:48 +01:00
adam closed this issue 2025-12-29 07:19:48 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/yaak#191