Commit Graph

2901 Commits

Author SHA1 Message Date
Ankit Mahato
625254b20f Refactor auth handling in HTTP request functions
Removed redundant AuthModel parameter from sendHttpRequest and streamHttpRequest functions, now using authModel from HttpRequestModel directly. Updated all usages, tests, and related logic to reflect this change. Improved streaming response handling in CollectionStateNotifier and HttpResponseModel.
2025-08-06 02:42:23 +05:30
Ankit Mahato
81e967b1b3 Update collection_providers.dart 2025-08-06 00:44:00 +05:30
Ankit Mahato
d491f0540d Refactor SSE response handling and display
Updated response body widgets to handle SSE output as a list of strings instead of a single string. Adjusted view options for SSE-related media types and refactored SSEDisplay to be a stateless widget that accepts a list of SSE events. This improves clarity and consistency in handling and displaying SSE responses.
2025-08-06 00:32:02 +05:30
Ankit Mahato
ce2f98af07 import update 2025-08-05 23:03:48 +05:30
Ankit Mahato
3d8cf8ea2b Refactor SSE display widget styling and layout
Updated the SSE display widget to use ListView with improved padding and card styling. Switched to consistent use of kCodeStyle and theme-based colors, and simplified font size and color handling for better dark/light mode support.
2025-08-05 22:47:53 +05:30
Ankit Mahato
af87942bdd Remove unused imports from test and widget files
Cleaned up several files by removing unused import statements to improve code clarity and reduce unnecessary dependencies.
2025-08-05 21:22:16 +05:30
Ankit Mahato
be16016d95 Refactor dark mode color blending to extension method
Moved dark mode color blending logic to a Color extension (toDark) in the design system. Updated usages in ui_utils.dart and related tests to use the new extension. Removed the old getDarkModeColor function for cleaner and more idiomatic code organization.
2025-08-05 21:17:39 +05:30
Ankit Mahato
d1fe07ac8d Add 'Stop' label constant and use in SendButton
Introduces kLabelStop to consts.dart and updates SendButton to use the new constant when isStreaming is true, improving consistency in label management.
2025-08-05 19:50:13 +05:30
Ankit Mahato
c4d6965e93 Simplify cancellation test assertions
Refactored test assertions in gql_test.dart and sse_test.dart to remove the 'reason' parameter from expect calls, making the code more concise.
2025-08-05 19:02:22 +05:30
Ankit Mahato
2680392c2a Update REST API test endpoints and assertions
Changed test URLs from jsonplaceholder to api.apidash.dev and api.github.com. Updated test assertions to match new response formats and status codes. Added debug prints and improved cancellation test logic for streamHttpRequest. Enhanced overrideContentType tests for header validation.
2025-08-05 18:58:22 +05:30
Ankit Mahato
3bdc5cd5c9 Use media type parser for streamed response
Replaces direct access to 'content-type' header with getMediaTypeFromHeaders for improved MIME type extraction in streamHttpRequest.
2025-08-05 17:18:58 +05:30
Ankit Mahato
304447bf17 Expand streaming response types and subtypes
Added more constants for streaming-related MIME subtypes and updated kStreamingResponseTypes to include additional formats. This improves support for various streaming response types in the networking package.
2025-08-05 16:22:27 +05:30
Ankit Mahato
ae478c85ed Reorder imports in http_response_utils.dart
Moved the 'dart:convert' import to the top of the file for consistency with Dart import conventions.
2025-08-05 15:47:04 +05:30
Ankit Mahato
c3bec79176 Update README.md 2025-08-05 15:28:13 +05:30
Ankit Mahato
06bb997d2d Update README formatting and license info
Removed emoji and improved markdown formatting for consistency. Updated maintainer section and changed license reference from MIT to Apache License 2.0.
2025-08-05 13:16:06 +05:30
Ankit Mahato
9772ff9e5e Rename variables for clarity in CollectionStateNotifier
Renamed respModel and historyM to httpResponseModel and historyModel for improved code readability and consistency within the CollectionStateNotifier class.
2025-08-05 13:09:47 +05:30
Ankit Mahato
257b30a1e9 Add authData parameter to HTTP request functions
Introduces an optional AuthModel parameter to sendHttpRequest and streamHttpRequest, allowing authentication handling for HTTP requests. Updates all usages and tests to pass null for the new parameter where authentication is not required.
2025-08-05 12:49:33 +05:30
Ankit Mahato
254530d9ae Refactor null checks in CollectionStateNotifier
Improved readability by expanding null checks with braces in CollectionStateNotifier methods. Also added a non-null assertion for historyM when adding a history request.
2025-08-05 12:48:54 +05:30
Ankit Mahato
f4e0f82125 Merge branch 'main' into better_networking/sse 2025-08-05 06:18:21 +05:30
Ankit Mahato
95586abffc Update http_service.dart 2025-08-05 06:04:25 +05:30
Ankit Mahato
e06a5a8315 Merge pull request #865 from Udhay-Adithya/scripting-tests
add tests for pre-request scripts and post-response scripts
2025-07-21 00:47:00 +05:30
Udhay-Adithya
d9bc0d0c67 test: add tests for CodeEditor widget(coverage:100%) 2025-07-18 23:27:41 +05:30
Udhay-Adithya
5839bf58ed test: add tests for pre and post request scripts handling in collection state notifier 2025-07-18 23:05:29 +05:30
Udhay-Adithya
efc49497c3 feat: improve script utils test(coverage 100%) 2025-07-18 20:53:10 +05:30
Udhay Adithya
1347d4ccfc Merge branch 'foss42:main' into scripting-tests 2025-07-18 20:00:10 +05:30
Manas Hejmadi
835d7a0cea SSE: RAW Mode added & SSEDisplay: kCodeStyle used 2025-07-16 19:29:29 +05:30
Ankit Mahato
572688cb3b Merge pull request #855 from Udhay-Adithya/basic-auth
add basic authentication features
2025-07-14 02:03:57 +05:30
Ankit Mahato
1dea1b442e Fix test 2025-07-14 01:52:01 +05:30
Ankit Mahato
744b8c0994 Fix dropdown labels 2025-07-14 01:51:50 +05:30
Ankit Mahato
351131f99d Update pubspec.yaml 2025-07-14 01:19:54 +05:30
Ankit Mahato
245a7b79ac Fix EditGraphQLRequestPane provider 2025-07-14 01:09:54 +05:30
Ankit Mahato
862319b3df Update hisotry rwquest pane auth 2025-07-14 01:01:44 +05:30
Ankit Mahato
972d8be6b0 Add AuthPage 2025-07-14 01:01:21 +05:30
Ankit Mahato
394835187a turns fields optional 2025-07-14 01:00:49 +05:30
Ankit Mahato
b8d0d034eb reinstate highlight 2025-07-13 03:26:21 +05:30
Ankit Mahato
32dcbda803 JWT refactor 2025-07-12 23:36:27 +05:30
Ankit Mahato
1e10606ebf Remove comments from JWT 2025-07-12 18:05:40 +05:30
Ankit Mahato
447cbd4fa7 refactor for digest 2025-07-12 18:04:19 +05:30
Ankit Mahato
33acbc8e5e Update pubspec.yaml 2025-07-12 18:04:11 +05:30
Ankit Mahato
4f11185195 Update imports in tests 2025-07-12 16:23:46 +05:30
Ankit Mahato
13a4000569 refactor imports 2025-07-12 16:22:47 +05:30
Ankit Mahato
568927b369 rename AuthTextField 2025-07-12 16:22:38 +05:30
Ankit Mahato
5d89dfddaa Update consts.dart 2025-07-12 16:18:31 +05:30
Ankit Mahato
7925a385f6 Update bearer_auth_fields.dart 2025-07-12 16:18:29 +05:30
Ankit Mahato
759e90663d Update basic_auth_fields.dart 2025-07-12 16:18:19 +05:30
Ankit Mahato
5afce7438b Update consts.dart 2025-07-12 15:52:47 +05:30
Ankit Mahato
99c38c4f96 refactor API Key auth 2025-07-12 15:52:10 +05:30
Ankit Mahato
9850b7a044 Update auth widgets export 2025-07-12 15:24:57 +05:30
Udhay-Adithya
69e7f7bc26 docs: add authentication testing links 2025-07-12 01:00:41 +05:30
Udhay-Adithya
db2f5af773 refactor: move auth_textfield to widgets folder 2025-07-12 00:49:48 +05:30