Skip to content

Transactions insights standalone component#1021

Open
glad-adyen wants to merge 2 commits intodevelopfrom
feature/transactions-insights-component
Open

Transactions insights standalone component#1021
glad-adyen wants to merge 2 commits intodevelopfrom
feature/transactions-insights-component

Conversation

@glad-adyen
Copy link
Copy Markdown
Contributor

Summary

This PR introduces changes to expose a standalone TransactionsInsights /> external component. It also adds a base set of stories for the standalone component.

@glad-adyen glad-adyen self-assigned this Mar 2, 2026
@glad-adyen glad-adyen requested a review from a team as a code owner March 2, 2026 13:26
@glad-adyen glad-adyen requested review from ElifDogaliBal and isuert and removed request for a team March 2, 2026 13:26
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on modularizing the Transactions Insights functionality by creating a dedicated external component. This change enables the Transactions Insights view to be rendered as a standalone UI element, enhancing reusability and simplifying its integration into different contexts. The implementation includes defining the component's structure, types, and ensuring its proper registration within the application's component availability system. Additionally, robust Storybook coverage has been added to facilitate development and testing of this new component.

Highlights

  • New Standalone Component: Introduced a new standalone TransactionsInsights external component, allowing it to be integrated and used independently.
  • Component Integration: Integrated the new component into the existing UI element structure and the external component registry, including its type definition and availability checks.
  • Storybook Support: Added a comprehensive set of Storybook stories, including API-connected and mocked scenarios, to demonstrate the component's usage and various states.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • src/components/external/TransactionsInsights/TransactionsInsightsElement.tsx
    • Added a new React component that wraps TransactionsInsightsContainer and extends UIElement to expose it as an external component.
  • src/components/external/TransactionsInsights/components/TransactionsInsightsContainer/TransactionsInsightsContainer.tsx
    • Added the core container component for Transactions Insights, responsible for fetching balance accounts and rendering the insights view using DataOverviewContainer and TransactionsOverviewProvider.
  • src/components/external/TransactionsInsights/components/TransactionsInsightsContainer/constants.ts
    • Added a constant BASE_CLASS for the CSS class of the Transactions Insights container.
  • src/components/external/TransactionsInsights/index.ts
    • Exported the new TransactionsInsightsElement as TransactionsInsights for external consumption.
  • src/components/external/TransactionsInsights/types.ts
    • Defined TransactionsInsightsProps to specify the properties required by the new component.
  • src/components/external/index.ts
    • Exported the new TransactionsInsights module to make it available through the main external components entry point.
  • src/components/types.ts
    • Added TransactionsInsightsComponentProps to define the specific props for the insights component.
    • Included transactionsInsights in the ExternalComponentType union type to register it as a recognized external component.
  • src/core/ConfigContext/session/utils/sessionAwareComponentAvailability/helpers/componentAvailabilityErrors.ts
    • Added a placeholder translation key for transactionsInsights errors within the component availability error handling.
  • src/core/ConfigContext/session/utils/sessionAwareComponentAvailability/helpers/componentAvailabilityRegistry.ts
    • Registered transactionsInsights with the getTransactionTotals endpoint for session-aware component availability checks.
  • src/types/api/resources/PlatformComponentsUxdsResource.ts
    • Updated the Component type definition to include transactionsInsights, reflecting its availability in the platform's UXDS resources.
  • stories/api/transactionsInsights.stories.tsx
    • Added Storybook API stories for the TransactionsInsights component, demonstrating its default behavior with session controls.
  • stories/components/transactionsInsights.tsx
    • Defined Storybook metadata (TransactionsInsightsMeta) and controls for the TransactionsInsights component, including onFiltersChanged, onContactSupport, and hideTitle.
  • stories/mocked/transactionsInsights.stories.tsx
    • Added Storybook mocked API stories for TransactionsInsights, covering scenarios like default, single balance account, single balance currency, and error states for totals.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@glad-adyen glad-adyen requested a review from german664 March 2, 2026 13:26
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request successfully introduces a standalone TransactionsInsights component, including its structure, types, and Storybook stories. The implementation is well-structured. I've left a few comments regarding code cleanup and technical debt, such as removing redundant code and addressing TODO items with any type assertions. Addressing these points will improve the maintainability and type safety of the new component.

Comment thread src/components/external/TransactionsInsights/TransactionsInsightsElement.tsx Outdated
Comment thread src/components/external/TransactionsInsights/types.ts Outdated
@glad-adyen glad-adyen force-pushed the feature/transactions-insights-component branch 2 times, most recently from 59260d4 to 04aeaca Compare March 2, 2026 13:35
@glad-adyen glad-adyen force-pushed the feature/transactions-insights-component branch from 04aeaca to fb475fe Compare March 2, 2026 16:52
@glad-adyen glad-adyen force-pushed the feature/transactions-overview-shell branch from c5a5e14 to 47d96fb Compare April 16, 2026 09:29
Base automatically changed from feature/transactions-overview-shell to group/transactions-insights April 16, 2026 14:57
@glad-adyen glad-adyen force-pushed the group/transactions-insights branch from 36e38e9 to 91f083d Compare April 17, 2026 14:33
Base automatically changed from group/transactions-insights to develop April 17, 2026 15:14
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.

1 participant