Skip to content

Comments

Fix/pfc 414/handle app 2 app samsung get intent#36

Merged
neijrbuilders merged 3 commits intodevelopfrom
fix/PFC-414/handle-app-2-app-samsung-get-intent
Jan 22, 2026
Merged

Fix/pfc 414/handle app 2 app samsung get intent#36
neijrbuilders merged 3 commits intodevelopfrom
fix/PFC-414/handle-app-2-app-samsung-get-intent

Conversation

@neijrbuilders
Copy link
Contributor

@neijrbuilders neijrbuilders commented Jan 22, 2026

Task Jira

https://digitaldesk.pernambucanas.com.br/browse/PFC-414

Descrição

Screenshot nova tela alterada

Captura de Tela 2026-01-22 às 12 11 23 Captura de Tela 2026-01-22 às 12 11 46

Descrição

  • O que foi alterado?
  • Adicionado campo de input editável para Token Reference ID nas telas de mock do Samsung Wallet e Google Wallet
  • Implementado ícone de limpar (X) dentro do campo de input que aparece quando há conteúdo
  • Ajustado tamanho do texto do input para melhor legibilidade
  • Refatorado código para remover método não utilizado e simplificar geração de dados simulados
  • Atualizados arquivos de configuração do exemplo Android (build.gradle, AndroidManifest.xml, settings.gradle)
  • Removidos arquivos MainActivity.kt e MainApplication.kt do exemplo que não eram mais necessários
  • O que motivou essa alteração?

A necessidade de permitir que desenvolvedores testem diferentes valores de Token Reference ID durante o desenvolvimento e testes, ao invés de ter um valor fixo hardcoded. Isso facilita a validação de diferentes cenários de ativação de tokens nas wallets.

  • Qual é o resultado esperado?
  • Interface mais flexível permitindo editar o Token Reference ID antes de simular o App 2 App
  • Melhor experiência de uso com ícone de limpar integrado ao campo de input
  • Valor padrão pré-preenchido mantido para facilitar testes rápidos
  • Código mais limpo e manutenível
  • Há impacto em outros serviços/sistemas?

Não. As alterações são apenas nos apps mock de desenvolvimento/teste (Samsung Wallet Mock e Google Wallet Mock) e não afetam o código de produção.

  • Como testar esta mudança? (Passos, comandos, cenários de teste)
  1. Compilar e executar os apps mock:

    • cd samsung-wallet-app-mock && ./gradlew installDebug
    • cd google-wallet-app-mock && ./gradlew installDebug
  2. Abrir o app mock no dispositivo/emulador

  3. Verificar que o campo de input está visível com valor padrão preenchido

  4. Testar edição do campo:

    • Editar o Token Reference ID
    • Verificar que o ícone "X" aparece quando há conteúdo
    • Clicar no ícone "X" e verificar que o campo é limpo
  5. Testar simulação:

    • Com valor padrão: clicar em "Simular" e verificar que funciona
    • Com valor editado: alterar o valor, clicar em "Simular" e verificar que o novo valor é usado
    • Com campo vazio: limpar o campo e verificar comportamento
  • Quem solicitou a alteração?

Equipe de desenvolvimento - melhoria de UX para facilitar testes durante desenvolvimento.

Tipo de alteração

  • Correção de bug
  • Nova funcionalidade
  • Refactoring

Checklist:

  • Versão do projeto foi atualizada no pom.xml
  • Código devidamente documentado (swagger / javadoc) e formatado
  • Imports desnecessários foram removidos
  • Novo código sem warnings do sonarlint
  • Novas dependências SEM avisos de vulnerabilidades
  • Testes foram implementados para as novas funcionalidades e executados com sucesso localmente
  • Readme atualizado

@gemini-code-assist
Copy link

Summary of Changes

Hello @neijrbuilders, 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 introduces a crucial enhancement to the App2App simulation capabilities within both the Google Wallet and Samsung Wallet mock applications. It transitions the simulation process from relying on static or programmatically generated data to accepting dynamic user input for the 'Token Reference ID'. This modification empowers users with greater control over the simulation parameters, thereby facilitating more comprehensive and flexible testing of App2App integration flows.

Highlights

  • Dynamic Simulated Data Input: The mock applications for Google Wallet and Samsung Wallet now allow users to manually input simulated data (e.g., Token Reference ID) via a new text field, replacing previously hardcoded or internally generated values.
  • Enhanced Testing Flexibility: This change significantly improves the flexibility of App2App simulation, enabling testers and developers to easily test various scenarios by providing custom input for the App2App intent.
  • UI Improvements: A new TextField component with a clear button has been added to the simulator UI in both mock applications for a better user experience when entering simulated data.

🧠 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.

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.

Copy link

@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

Este pull request melhora os aplicativos de mock do Google Wallet e Samsung Wallet, substituindo o dado simulado fixo por um campo de texto editável. Isso aumenta a flexibilidade para testes, permitindo a inserção de dados customizados em tempo de execução. As alterações são consistentes em ambos os aplicativos. A revisão inclui uma sugestão para extrair o valor padrão para uma constante, visando melhorar a manutenibilidade do código.

@neijrbuilders neijrbuilders merged commit 6b56214 into develop Jan 22, 2026
2 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.

2 participants