Commit Graph

86 Commits

Author SHA1 Message Date
Udhay-Adithya
3903277aa9 chore: resolve merge conflicts 2025-07-02 21:03:16 +05:30
Udhay-Adithya
a17d6fdd9f chore: remove logging in EditAuthType 2025-07-01 01:16:01 +05:30
Udhay-Adithya
bf170e1446 feat: remove AuthModel from HttpRequestModel and integrate into HistoryRequestModel and RequestModel 2025-07-01 01:15:55 +05:30
Udhay-Adithya
74c09592bb refactor: rename authData to authModel and update related tests 2025-07-01 01:03:52 +05:30
Udhay-Adithya
449e32521e feat: refactor authentication handling to use new ApiAuthModel and update related components 2025-07-01 01:00:59 +05:30
Udhay-Adithya
51fe211ef6 feat: implement authentication handling in HTTP requests 2025-07-01 01:00:59 +05:30
Udhay-Adithya
171a118d38 feat: add authentication support with APIAuthType and APIAuthModel
- Introduced APIAuthType enum for various authentication methods.
- Created APIAuthModel with basic authentication fields.
- Updated RequestModel to include authType and authData.
- Implemented EditAuthType widget for selecting and managing authentication.
- Enhanced CollectionStateNotifier to handle authentication updates.

:wq
2025-07-01 00:57:10 +05:30
Ankit Mahato
7096c2f301 Update request model 2025-06-29 01:21:52 +05:30
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
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
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
Ashita Prasad
2cdacc7d67 Remove httpClientManager dependency 2025-02-15 18:21:18 +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
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
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
DenserMeerkat
2fc02eadd1 feat: history of requests 2024-07-21 19:55:32 +05:30
Ragul Raj
8eadd7f8fa Merge branch 'main' into add-feature-history 2024-07-20 13:59:15 +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
DenserMeerkat
ebe576a118 feat: env variable substitutions 2024-06-16 22:14:27 +05:30
DenserMeerkat
7fcfe4f8e8 feat: environment pane 2024-06-13 18:47:52 +05:30
Ankit Mahato
38b2900075 Update collection_providers.dart 2024-04-19 21:47:48 +05:30
Ankit Mahato
bc2619b5b5 fix collection provider 2024-04-19 19:40:07 +05:30
Ankit Mahato
4fb79ebd25 Update collection_providers.dart 2024-04-19 19:34:16 +05:30
Ankit Mahato
99c02aad19 Merge pull request #365 from yashas-hm/fix-prompt-wo-changes
Fix prompt only when changes made
2024-03-28 23:38:16 +05:30
Ankit Mahato
4518d54af3 Update collection_providers.dart 2024-03-28 23:35:45 +05:30
Ankit Mahato
4932be5ba7 Update collection_providers.dart 2024-03-28 21:46:54 +05:30
Yashas H Majmudar
34f9d27567 fix: renamed changeMade -> hasUnsavedChanges 2024-03-28 17:09:08 +05:30
Yashas H Majmudar
83c6e42864 fix: cleanup code and logic fixup 2024-03-28 14:25:26 +05:30
Yashas H Majmudar
0c04ff3343 fix: prompt when changes made to reorder 2024-03-27 22:10:11 +05:30