Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes several UI Issues identified in the Design Assistant #962

Merged
merged 9 commits into from
Mar 1, 2025

Conversation

Arshardh
Copy link
Contributor

@Arshardh Arshardh commented Mar 1, 2025

Purpose

This PR includes several changes to the UI of API Design Assistant.
Related issue: wso2/api-manager#3564

  1. Removes the API type from the sample query cards, rearranges the order and placing and adds a new card for GraphQL APIs.
    image
  1. Aligns the loading dots with the 'Generating a response' text and also shifts this component a little bit to the right.
    image
  1. Adds a download button for all API types next to the 'View Source' toggle (for REST APIs) to enable downloading the source code of the API specification.

Below is an image of how it is shown for REST APIs.
image

Below is an image of how it is shown for GraphQL or Async APIs.
image

Below is an image of it having the functionality to download the spec to their 'Downloads' folder.
image

  1. Adds functionality to respond to simple non-API related questions and statements.
    image

Below is an image of the assistant creating an API after asking non-API related questions.
image

Related issue: wso2/api-manager#3564

This PR also includes

  1. Allowing .graphql files to be downloaded from the Download button.
    The purpose of this is to enable .graphql files for GraphQL APIs and .yaml files for REST and Async APIs to be downloaded as a .yaml file for GraphQL APIs is not suitable.
  1. Adding a confirmation pop up for 'Create API' in API Design Assistant.
    The purpose of this is to ensure the user confirms that they are ready to create the API and want to move to the API Creation Wizard.
    image

lasanthaS
lasanthaS previously approved these changes Mar 1, 2025
Copy link

sonarqubecloud bot commented Mar 1, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
41.8% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@Arshardh Arshardh merged commit 1b15340 into main Mar 1, 2025
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants