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

[Feature] Api tile enhancement #12161

Merged
merged 6 commits into from
Oct 2, 2023

Conversation

dulithsenanayake
Copy link
Contributor

@dulithsenanayake dulithsenanayake commented Sep 21, 2023

We introduced this PR to add the new feature API tile enhancement to both the publisher & dev portals. The current API tile information lacks some necessary business details from a marketplace perspective. With this feature, we are extending the API tile information structure to accommodate optional properties such as business information, external APIs, and the monetization-enabled state of the APIs. These properties are displayed in the API tile through a config. Users can set the 'display' property of optional properties as per their preference. By default, the configuration for the 'display' property is set to 'false.' This configuration can be found in the 'settings.json' file in both portals.

For the publisher portal, the configuration is as follows:

"apis": {
    "tileDisplayInfo": {
      "showMonetizedState": false,
      "showBusinessDetails": false,
      "showTechnicalDetails": false
    }, 

For the dev portal, the configuration is as follows:

"apis": {
        "tileDisplayInfo": {
            "showMonetizedState": false,
            "showBusinessDetails": false,
            "showTechnicalDetails": false
        }
    }

Please note that we haven't introduced a new configuration for the 'display' property of external APIs, as this label is already displayed in the API tile of the publisher portal when an API is marked as a Third-Party API. Therefore, we have added the same behaviour to the dev portal as well.

Below are screenshots of the new API tile for reference.

Publisher Portal

publisher_tile

Dev Portal

dev_tile

Here we have added a popover to display the email of the business owner & technical owner. But we are not going to add more details here by taking the performance impact into consideration.

With Popover

With_popover

Additionally, we have added this business info, monetization status and third-party label to the API Thumb plain tile as well for both portals. Below are the screenshots of the new Plain API tile for reference.

Publisher Portal

Pub_APIThumbPlain

Dev Portal

Dev_APIThumbPlain

Related PRs:

@dulithsenanayake dulithsenanayake merged commit c2d8c7c into wso2:master Oct 2, 2023
2 of 6 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