ayushcodes27 opened a new pull request, #194:
URL: https://github.com/apache/fineract-consumer-facing/pull/194

   ## What and why
   
   Migrate `shell.component.ts`, `language-switcher.component.ts`, 
`otp.component.ts`, and `status-badge.component.ts` to the application 
translation adapter:
   - Swapped `import { TranslatePipe } from '@ngx-translate/core'` to `import { 
TranslatePipe } from '../core/adapters'` (or `../../core/adapters`).
   - Updated template pipe usages from `| translate` to `| appTranslate`.
   - Pruned the four migrated entries from `eslint-suppressions.json`.
   
   Part of #172. Fixes #182.
   
   ## Verification
   
   - `npm run lint`: passed cleanly (0 errors).
   - `npm run i18n:check`: passed cleanly.
   - `npm test -- --watch=false`: 109 unit tests pass. 35 store/service tests 
fail locally, most likely because of the stub; 
`.github/workflows/build-tests-frontend.yml` generates the real client via `npm 
run e2e:docker:up:backend && npm run generate:client` before running `npm test`.
   - Verified none of the four migrated components have unit specs 
(`Get-ChildItem src/app/layout, src/app/shared -Recurse -Filter "*.spec.ts"` 
returns empty).
   - Commits are cryptographically signed.
   
   ## Screenshots
   
   Not applicable (pure template pipe refactoring with no UI or layout changes).
   
   ## AI assistance (optional)
   
   - Tool / model: Gemini, Claude
   - Harness / workflow: Antigravity IDE and chat assistance for planning, 
refactoring, and verification
   
   ## Checklist
   
   - [x] I did not hand-edit generated files under 
`frontend/src/openapi-client/` (the stub at `src/openapi-client/index.ts` is 
local-only, gitignored, and not part of this PR).
   - [x] Backend code follows the feature and CQRS layout in 
[AGENTS.md](AGENTS.md#backend-conventions-consumer) (command and query sides, 
module boundaries); frontend code goes through the adapters in 
`frontend/src/app/core/adapters/`.
   - [x] I did not add entries to a lint or architecture baseline 
(suppressions, frozen violations) to get the build passing.
   - [x] User-facing strings use translation keys.
   - [x] I added or updated tests appropriate to this change, or explained why 
tests were not needed (no new tests: mechanical template change, none of these 
four components have unit specs, and lint plus i18n:check cover the migration).
   - [ ] UI workflow changes include suitable e2e coverage, including 
real-backend testing where relevant. *(N/A: mechanical template refactoring 
without workflow changes)*
   - [x] Commits are signed — see [Signing your 
commits](CONTRIBUTING.md#signing-your-commits) in CONTRIBUTING.md.
   - [x] I followed the [AI-assisted contributions 
guidance](CONTRIBUTING.md#ai-assisted-contributions).
   - [x] If this adds a feature or changes what a consumer can see or do, I 
raised it on
         
[[email protected]](https://lists.apache.org/[email protected])
 first,
         or it is a bug fix, refactor or test change, where that does not apply.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to