Skip to content

Conversation

@Udhay-Adithya
Copy link
Contributor

@Udhay-Adithya Udhay-Adithya commented Sep 2, 2025

PR Description

Adds all core features of DashBot

Related Issues

Checklist

  • I have gone through the contributing guide
  • I have updated my branch and synced it with project main branch before making this PR
  • I am using the latest Flutter stable branch (run flutter upgrade and verify)
  • I have run the tests (flutter test) and all tests are passing

Added/updated tests?

We encourage you to add relevant test cases.

  • Yes
  • No, and this is why: please replace this line with details on why tests have not been included

OS on which you have developed and tested the feature?

  • Windows
  • macOS
  • Linux

Udhay-Adithya and others added 13 commits August 31, 2025 11:54
- Created a new Dashbot package with core functionalities.
- Implemented Dashbot window model and notifier for state management.
- Added UI components including Dashbot default page and home page.
- Integrated routing for Dashbot with initial routes defined.
- Included assets for Dashbot icons and set up pubspec.yaml.
- Added tests for Dashbot window notifier to ensure functionality.
- Established a basic README and CHANGELOG for the package.
…chat viewmodel to use the existing request model
@animator animator added the gsoc25 label Sep 2, 2025
@animator animator linked an issue Sep 28, 2025 that may be closed by this pull request
@animator animator requested a review from Copilot September 29, 2025 01:59
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 180 out of 185 changed files in this pull request and generated 3 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment on lines +20 to +21
expect(initialState.width, 350);
expect(initialState.height, 450);
Copy link

Copilot AI Sep 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test expects width 350 and height 450, but the actual DashbotWindowModel test shows default values of width 400 and height 515. This inconsistency suggests either the test data is wrong or there are different default values being used.

Suggested change
expect(initialState.width, 350);
expect(initialState.height, 450);
expect(initialState.width, 400);
expect(initialState.height, 515);

Copilot uses AI. Check for mistakes.
Comment on lines +24 to +27
/// Provides `firstOrNull` for lists.
extension FirstOrNull<T> on List<T> {
T? get firstOrNull => isEmpty ? null : first;
}
Copy link

Copilot AI Sep 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This extension duplicates functionality that's available in Dart's collection package. Consider using import 'package:collection/collection.dart' and remove this custom extension to reduce code duplication.

Copilot uses AI. Check for mistakes.
Comment on lines 52 to 54
Curl({
required this.method,
required this.uri,
Copy link

Copilot AI Sep 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The constructor now requires method parameter but removed the previous assertion validations. This could allow invalid HTTP methods to be created. Consider adding validation back or documenting the expected method values.

Copilot uses AI. Check for mistakes.
Copy link
Member

@animator animator left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@animator animator merged commit 0a6a2bb into foss42:main Sep 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DashBot - the AI assistant for API Dash AI Agent for API Testing Importing Requests from OpenAPI Specification file

2 participants