[PR #7] [MERGED] Initial "plugin" system with importer #1

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

📋 Pull Request Information

Original PR: https://github.com/mountain-loop/yaak/pull/7
Author: @gschier
Created: 10/31/2023
Status: Merged
Merged: 11/3/2023
Merged by: @gschier

Base: mainHead: importers


📝 Commits (10+)

  • 91405a9 Better plugin calling into JS
  • 062c71b Fix launch panic when no command
  • d0bff6b Got simple Insomnia requests importing!
  • 572b7a1 Merge branch 'main' into importers
  • 1f87289 Flexible parsing of imported resources array
  • 80fdaad Better upsert request
  • cc67d98 Upsert environments too
  • 30b4770 Upsert workspaces
  • 40a73a3 UI for importing and import improvements
  • 82c3bed Fix import

📊 Changes

27 files changed (+970 additions, -450 deletions)

View changed files

📝 Makefile (+4 -0)
📝 design/logo.afdesign (+0 -0)
plugins/hello-world/greet.js (+4 -0)
📝 plugins/hello-world/index.js (+3 -3)
plugins/insomnia-importer/Insomnia_hello-world.json (+100 -0)
plugins/insomnia-importer/importers/environment.js (+23 -0)
plugins/insomnia-importer/importers/request.js (+28 -0)
plugins/insomnia-importer/importers/workspace.js (+14 -0)
plugins/insomnia-importer/index.js (+50 -0)
📝 src-tauri/Cargo.lock (+67 -1)
📝 src-tauri/Cargo.toml (+13 -1)
src-tauri/migrations/20231103004111_workspace-variables.sql (+1 -0)
src-tauri/plugins/hello-world/hello.js (+0 -3)
📝 src-tauri/sqlx-data.json (+114 -122)
📝 src-tauri/src/main.rs (+107 -65)
📝 src-tauri/src/models.rs (+91 -138)
📝 src-tauri/src/plugin.rs (+101 -16)
📝 src-tauri/tauri.conf.json (+22 -1)
📝 src-web/components/EnvironmentActionsDropdown.tsx (+2 -4)
📝 src-web/components/EnvironmentEditDialog.tsx (+93 -55)

...and 7 more files

📄 Description

This PR introduces a very basic way to run internal-only plugins, and includes
a plugin that provides a basic Insomnia importer.

  • Call into import plugin with file contents
  • Handle return value from plugin to create resources
  • Add CLI cmd to import a file
  • Add UI/UX to import a file

🔄 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/7 **Author:** [@gschier](https://github.com/gschier) **Created:** 10/31/2023 **Status:** ✅ Merged **Merged:** 11/3/2023 **Merged by:** [@gschier](https://github.com/gschier) **Base:** `main` ← **Head:** `importers` --- ### 📝 Commits (10+) - [`91405a9`](https://github.com/mountain-loop/yaak/commit/91405a9a014ce4bc13636f86b9a9d651d94ddb83) Better plugin calling into JS - [`062c71b`](https://github.com/mountain-loop/yaak/commit/062c71b4de8e14ae74b9317029f4866039be688e) Fix launch panic when no command - [`d0bff6b`](https://github.com/mountain-loop/yaak/commit/d0bff6b3a344fa00eeec0f1560ebeaa2722cb9b1) Got simple Insomnia requests importing! - [`572b7a1`](https://github.com/mountain-loop/yaak/commit/572b7a1280891fbb4bbf6afb06bb3b249bfd04db) Merge branch 'main' into importers - [`1f87289`](https://github.com/mountain-loop/yaak/commit/1f87289c9a342397fdd77f5e4b9448d904e39d8a) Flexible parsing of imported resources array - [`80fdaad`](https://github.com/mountain-loop/yaak/commit/80fdaad739b148861602d4d67d00aba4c19cd496) Better upsert request - [`cc67d98`](https://github.com/mountain-loop/yaak/commit/cc67d98074ed7d3f7d7c576d84b661c609aa30f3) Upsert environments too - [`30b4770`](https://github.com/mountain-loop/yaak/commit/30b47702fb089cdbb9b249b425d8aac13372fb0b) Upsert workspaces - [`40a73a3`](https://github.com/mountain-loop/yaak/commit/40a73a3701e9ae1d85b888e7298589bf4d87bef9) UI for importing and import improvements - [`82c3bed`](https://github.com/mountain-loop/yaak/commit/82c3bed06afa26170269de0e0fabc18867ff5f7f) Fix import ### 📊 Changes **27 files changed** (+970 additions, -450 deletions) <details> <summary>View changed files</summary> 📝 `Makefile` (+4 -0) 📝 `design/logo.afdesign` (+0 -0) ➕ `plugins/hello-world/greet.js` (+4 -0) 📝 `plugins/hello-world/index.js` (+3 -3) ➕ `plugins/insomnia-importer/Insomnia_hello-world.json` (+100 -0) ➕ `plugins/insomnia-importer/importers/environment.js` (+23 -0) ➕ `plugins/insomnia-importer/importers/request.js` (+28 -0) ➕ `plugins/insomnia-importer/importers/workspace.js` (+14 -0) ➕ `plugins/insomnia-importer/index.js` (+50 -0) 📝 `src-tauri/Cargo.lock` (+67 -1) 📝 `src-tauri/Cargo.toml` (+13 -1) ➕ `src-tauri/migrations/20231103004111_workspace-variables.sql` (+1 -0) ➖ `src-tauri/plugins/hello-world/hello.js` (+0 -3) 📝 `src-tauri/sqlx-data.json` (+114 -122) 📝 `src-tauri/src/main.rs` (+107 -65) 📝 `src-tauri/src/models.rs` (+91 -138) 📝 `src-tauri/src/plugin.rs` (+101 -16) 📝 `src-tauri/tauri.conf.json` (+22 -1) 📝 `src-web/components/EnvironmentActionsDropdown.tsx` (+2 -4) 📝 `src-web/components/EnvironmentEditDialog.tsx` (+93 -55) _...and 7 more files_ </details> ### 📄 Description This PR introduces a very basic way to run internal-only plugins, and includes a plugin that provides a basic Insomnia importer. - [x] Call into import plugin with file contents - [x] Handle return value from plugin to create resources - [x] Add CLI cmd to import a file - [x] Add UI/UX to import a file --- <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:18:51 +01:00
adam closed this issue 2025-12-29 07:18:51 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/yaak#1