Skip to content

feat(adoption-insights): add frontend plugin for adoption insights#464

Merged
rohitkrai03 merged 6 commits intoredhat-developer:mainfrom
Eswaraiahsapram:feat-adoption-insights-fe
Mar 17, 2025
Merged

feat(adoption-insights): add frontend plugin for adoption insights#464
rohitkrai03 merged 6 commits intoredhat-developer:mainfrom
Eswaraiahsapram:feat-adoption-insights-fe

Conversation

@Eswaraiahsapram
Copy link
Copy Markdown
Member

@Eswaraiahsapram Eswaraiahsapram commented Mar 4, 2025

Hey, I just made a Pull Request!

Fixes - RHDHPAI-571

This PR introduces frontend changes for the new Adoption Insights plugin, enhancing the experience by providing key insights into adoption metrics.

Changes Implemented

✅ Added UI components to display Adoption Insights metrics.
✅ Integrated data visualization using Recharts to present trends effectively.
✅ Integrated date range using MUI x-date-pickers
✅ Added Unit tests
✅ Implemented pagination.

Screen recording

Screen.Recording.2025-03-11.at.2.45.59.PM.mov

Screenshots

Screenshot 2025-03-17 at 6 42 25 PM Screenshot 2025-03-17 at 6 42 54 PM Screenshot 2025-03-17 at 6 43 18 PM Screenshot 2025-03-17 at 6 43 33 PM Screenshot 2025-03-17 at 6 43 46 PM

✔️ Checklist

  • A changeset describing the change and affected packages. (more info)
  • Added or Updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)

@rhdh-gh-app
Copy link
Copy Markdown

rhdh-gh-app Bot commented Mar 4, 2025

Changed Packages

Package Name Package Path Changeset Bump Current Version
app workspaces/adoption-insights/packages/app none v0.0.0
backend workspaces/adoption-insights/packages/backend none v0.0.0
@red-hat-developer-hub/backstage-plugin-adoption-insights workspaces/adoption-insights/plugins/adoption-insights none v0.0.1

@ShiranHi
Copy link
Copy Markdown

@Eswaraiahsapram it looks amazing!

I have a few questions:

  1. Can we change the title from "Active Users" to "Active users"?
  2. Can we add the "Export CSV" button to the "Active users" card?
  3. Can we display a double dash (--) when there is no data in a cell? I noticed this is already implemented in the "Top catalog entities" card.
  4. Can we add a clickable link to catalog entity and template names so that users are directed to the corresponding page when they click on them?
  5. In the header dropdown labeled "All time", can we rename it to "Date range" instead of "Date Range"?
  6. Regarding the "Date range" dropdown with the calendar view:
    A. Can we reduce the title size to match the design?
    B. Can we make the "Start date" field pre-selected?
    C. Can we include the date format (e.g., mm/dd/yyyy) as a placeholder in the field?
    D. Can we align the date picker width to match the text fields?

@Eswaraiahsapram
Copy link
Copy Markdown
Member Author

Eswaraiahsapram commented Mar 11, 2025

@Eswaraiahsapram it looks amazing!

I have a few questions:

  1. Can we change the title from "Active Users" to "Active users"?
  2. Can we add the "Export CSV" button to the "Active users" card?
  3. Can we display a double dash (--) when there is no data in a cell? I noticed this is already implemented in the "Top catalog entities" card.
  4. Can we add a clickable link to catalog entity and template names so that users are directed to the corresponding page when they click on them?
  5. In the header dropdown labeled "All time", can we rename it to "Date range" instead of "Date Range"?
  6. Regarding the "Date range" dropdown with the calendar view:
    A. Can we reduce the title size to match the design?
    B. Can we make the "Start date" field pre-selected?
    C. Can we include the date format (e.g., mm/dd/yyyy) as a placeholder in the field?
    D. Can we align the date picker width to match the text fields?

@ShiranHi thanks for the feedback!

I forgot to update the screenshots earlier. I'm adding a new screen recording now. Please let me know if anything needs to update.

Regarding aligning the date picker width with the text fields, there are some limitations with the StaticDatePicker in MUI. However, I’ll explore possible adjustments to improve the alignment.

@ShiranHi
Copy link
Copy Markdown

Thanks for the video! I can now see more cards. I have a few follow-up questions:

  1. "Top 3 templates" card: Can we reduce the padding between the columns so they are closer together?
  2. "Active users" tooltip: Can we adjust the layout to match the design?
  3. "Top 3 techdocs" card: The content in the Entity column should be clickable as well.
  4. "X searches" card: The tooltip needs some adjustments to align with the design.
  5. For the empty state, instead of "No data available" can we change it to "No results for this time range."?

Comment thread workspaces/adoption-insights/package.json Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I feel we might be able put some of these into the common plugin once we have it.

Copy link
Copy Markdown
Member

@karthikjeeyar karthikjeeyar left a comment

Choose a reason for hiding this comment

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

@Eswaraiahsapram This looks great 🎉, I have added few comments, PTAL.

FYI, Sonarcloud issues has to be fixed too.

Copy link
Copy Markdown
Member

@karthikjeeyar karthikjeeyar left a comment

Choose a reason for hiding this comment

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

fyi, after recent changes Pie chart is not working as expected.

image

@Eswaraiahsapram
Copy link
Copy Markdown
Member Author

fyi, after recent changes Pie chart is not working as expected.

image

@karthikjeeyar, could you please help me reproduce this issue? I haven't encountered it myself.

Copy link
Copy Markdown
Member

@karthikjeeyar karthikjeeyar left a comment

Choose a reason for hiding this comment

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

Techdocs chart is not showing up if there is less than 3 data from the API response. Notice the API is returning the 2 items in response but it is not visible in the techdocs chart.

image

Comment thread workspaces/adoption-insights/packages/app/src/App.tsx Outdated
@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Member

@karthikjeeyar karthikjeeyar left a comment

Choose a reason for hiding this comment

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

Thanks @Eswaraiahsapram for the follow up. Changes looks good to me

/lgtm

Copy link
Copy Markdown
Contributor

@rohitkrai03 rohitkrai03 left a comment

Choose a reason for hiding this comment

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

/approve

@rohitkrai03 rohitkrai03 merged commit eda0343 into redhat-developer:main Mar 17, 2025
ishanjogi89 added a commit to ishanjogi89/rhdh-plugins that referenced this pull request Mar 18, 2025
…nto FLPATH-2143

* 'main' of https://github.com/ijogi-redhat/rhdh-plugins:
  chore: update code owners (redhat-developer#505)
  chore(marketplace): add package examples and link them from plugins (redhat-developer#503)
  Version Packages (redhat-developer#439)
  Version Packages (redhat-developer#437)
  feat(global-header): changing create to self-service (redhat-developer#495)
  fix(fab): fixing css issues (redhat-developer#427)
  Version Packages (redhat-developer#504)
  feat(marketplace): add monaco editor (redhat-developer#500)
  Version Packages (redhat-developer#502)
  fix(marketplace): align with UXD: add grey placeholder if icon is missing and placeholder when there is no description (redhat-developer#498)
  feat(adoption-insights): add frontend plugin for adoption insights (redhat-developer#464)
  fix(adoption-insights): remove unwanted columns and add techdocs type (redhat-developer#497)
  fix(adoption-insights): add redirection links and cast count as integers (redhat-developer#496)
  fix(adoption-insights): camel case column names to lower case (redhat-developer#494)
  Version Packages (redhat-developer#492)
  fix(lightspeed): remove resets from PF CSS import (redhat-developer#469)
  feat(adoption-insights): add grouping configuration in insights endpoints (redhat-developer#488)
elai-shalev pushed a commit to elai-shalev/rhdh-plugins that referenced this pull request Jan 21, 2026
…edhat-developer#464)

* feat(adoption-insights): add frontend plugin for adoption insights

* resolved the type issue

* updated unit tests

* add github backend module

* remove unwanted column techdocs

* remove unwanted column techdocs
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.

4 participants