Commit Graph

138 Commits

Author SHA1 Message Date
Udhay-Adithya
68318e6b90 feat: add preRequestScript and postRequestScript to HistoryRequestModel 2025-06-23 22:33:22 +05:30
Ashita Prasad
67af625ccb Create pre post script utilities 2025-06-22 22:29:11 +05:30
Ashita Prasad
9e686a8145 export flutter_js_services 2025-06-22 21:28:09 +05:30
Ankit Mahato
9cb7f0fe10 Merge branch 'main' into add-feature-scripts 2025-06-21 20:39:25 +05:30
Udhay-Adithya
fe4858ecd0 feat: update pre-request and post-response script handling in CollectionStateNotifier
- Changed return type of handlePreRequestScript and handlePostResponseScript to Future<RequestModel> for better type safety.
- Updated the logic to return the modified request model after executing scripts.
- Ensured that the request model is updated correctly in the sendRequest method after executing the pre-request script.
2025-05-19 16:54:32 +05:30
Ashita Prasad
6e638bb383 Add DashBot to settings 2025-05-17 16:57:16 +05:30
Udhay-Adithya
14ff728870 fix: JS bridge message handling and script execution checks
Refines JS bridge handlers to process messages directly as typed arguments, removing unnecessary JSON decoding and clarifying error logs.
Updates logic to only execute post-response scripts when present and corrects a warning message.
2025-05-16 14:30:58 +05:30
Udhay-Adithya
c2c67a7fca feat: implement post-response script handling and update environment variables 2025-05-02 01:26:52 +05:30
Udhay-Adithya
0645ab1a33 feat: allow scripts to modify environment variables
Refactors pre-request script execution to support environment variable manipulation.

Introduces a simplified key-value map for the environment within the JavaScript context, allowing easier script interaction. Updates the `ad.environment` JS API accordingly.

Implements logic on the Dart side to translate the structured environment model to the simple map before script execution and merge changes back from the map to the model afterward, persisting the modifications.
2025-05-01 20:14:00 +05:30
Udhay-Adithya
36061f660a feat add pre-request script execution
Initializes JavaScript runtime during application startup.
Executes user-defined pre-request scripts before sending API requests, allowing modification of request details like URL, headers, and body.
Updates script execution environment for better scoping and uses synchronous evaluation.
2025-05-01 16:48:50 +05:30
Udhay-Adithya
56137769f8 feat: adds pre/post-request script editing
Updates request model state management to include pre-request and post-request script fields.
Connects the script editor UI to the state notifier, allowing script changes to be persisted.
2025-04-26 00:11:08 +05:30
Ankit Mahato
c0a622ccfb Fix mobile app rebuilding issue 2025-04-06 02:01:15 +05:30
Ashita Prasad
9cf22669bf Merge pull request #525 from StormGear/add-feat-insomia
Added insomia importer
2025-02-24 12:52:33 +05:30
Ashita Prasad
11055f7ea8 Update environment_providers.dart 2025-02-24 12:13:13 +05:30
Ashita Prasad
b54074ad4b Merge pull request #563 from opheliagame/fix/clear-history
fix: clear history button now updates parts of the history page
2025-02-16 11:22:13 +05:30
Ashita Prasad
d753a7f83d Update history_providers.dart 2025-02-16 11:18:56 +05:30
Ashita Prasad
2400c66bae revert re-arrange 2025-02-15 18:42:33 +05:30
Ashita Prasad
2cdacc7d67 Remove httpClientManager dependency 2025-02-15 18:21:18 +05:30
opheliagame
d30d209739 fix: clear history button now updates parts of the history page correctly 2025-02-10 09:38:08 +05:30
Clasherzz
2aefc56a89 closed client in remove function 2025-02-09 21:06:16 +05:30
Ashita Prasad
18f4687d30 Update HistoryMetaModel 2025-01-12 16:37:57 +05:30
Ashita Prasad
76341d7e0c code optimization 2025-01-12 15:48:00 +05:30
Ashita Prasad
e89118b22d Support to add request name 2024-12-26 05:14:10 +05:30
Ashita Prasad
4ba44b728f refactor 2024-12-21 17:37:21 +05:30
Ashita Prasad
1df49bd727 Refactor 2024-12-21 10:19:34 +05:30
Clasherzz
157ecf220c last minute code refactoring 2024-12-19 09:50:33 +05:30
Clasherzz
c416932efd edited collection_provider 2024-12-18 22:36:30 +05:30
Ashita Prasad
1ea4dd07b4 Update collection_providers.dart 2024-12-16 04:00:18 +05:30
Ashita Prasad
b3be6a9fa5 refactor collection provider 2024-12-16 00:10:49 +05:30
Ashita Prasad
bc2fc49fc7 Update collection_providers.dart 2024-12-15 23:51:46 +05:30
Ashita Prasad
26ad73c63b Revert unnecessary changes 2024-12-15 23:41:12 +05:30
Ashita Prasad
fbe1fbecdc Update collection_providers.dart 2024-12-15 23:38:17 +05:30
Ashita Prasad
db23d199fa Merge branch 'main' into add-request-cancellation 2024-12-15 07:51:01 +05:30
Ashita Prasad
65668fddcc Update environment_providers.dart 2024-12-15 07:39:45 +05:30
Ashita Prasad
2bb54ec4d6 Add SupportedUriSchemes support 2024-12-15 07:37:18 +05:30
sasanktumpati
7d073f2567 feat: implement request cancellation tracking with bounded queue 2024-12-13 07:47:56 +05:30
sasanktumpati
edd69b986a refactor: remove unnecessary state changes 2024-12-07 15:52:18 +05:30
sasanktumpati
036bac311c feat: add ability to cancel in-flight HTTP requests and manage client lifecycle 2024-12-07 13:06:15 +05:30
sasanktumpati
41bd86692f feat: add request cancellation functionality 2024-12-04 02:38:30 +05:30
Ashita Prasad
a3536b021b refactor 2024-10-22 07:06:06 +05:30
Ashita Prasad
802d9e4607 workspace 2024-09-08 15:17:21 +05:30
DenserMeerkat
063b9258c2 test: his_request_test mobile 2024-08-21 22:09:30 +05:30
DenserMeerkat
dace495264 fix: ui tests 2024-07-23 16:02:46 +05:30
DenserMeerkat
b2cd91274f wip: manage history dialog 2024-07-22 00:56:44 +05:30
DenserMeerkat
2fc02eadd1 feat: history of requests 2024-07-21 19:55:32 +05:30
DenserMeerkat
f8ede1edc8 wip: history panes 2024-07-20 22:05:08 +05:30
Ragul Raj
8eadd7f8fa Merge branch 'main' into add-feature-history 2024-07-20 13:59:15 +05:30
DenserMeerkat
cad6c97f89 wip: history details pane 2024-07-19 18:11:37 +05:30
Ashita Prasad
71f987e72f Update providers 2024-07-15 00:08:44 +05:30
DenserMeerkat
d5feb0b091 wip: history request groups 2024-07-14 23:16:29 +05:30