Skip to content

Align payment point create tooltip key with module convention#69

Merged
zikani03 merged 1 commit intorelease/26.04from
fix/payment-point-create-tooltip-key
Apr 18, 2026
Merged

Align payment point create tooltip key with module convention#69
zikani03 merged 1 commit intorelease/26.04from
fix/payment-point-create-tooltip-key

Conversation

@Shahzaibahmad97
Copy link
Copy Markdown

@Shahzaibahmad97 Shahzaibahmad97 commented Apr 16, 2026

Description

PaymentPointsPage used formatMessage('tooltip.createButton') while the rest of this module — and every other openIMIS module — uses formatMessage('createButton.tooltip'). The mismatched key diverged from the established convention used across the platform and made the tooltip harder to locate when searching module translations.

This PR renames the translation key to payroll.createButton.tooltip and updates the consumer to match.

Type of Change

  • Feature
  • Bug fix
  • Chore (Refactor, Docs, CI/CD)
  • Other, please specify

Related Issue(s) / Task(s)

Blocked by / related to: openimis/openimis-dist_dkr#99 (this key is exercised by the payment-point E2E tests added in that PR).


Changes

  • Rename payroll.tooltip.createButtonpayroll.createButton.tooltip in src/translations/en.json
  • Update PaymentPointsPage.js to use formatMessage('createButton.tooltip')

Behaviour Before / After

Scenario Before After
Hover the Create FAB on the Payment Points page Tooltip resolves via tooltip.createButton (diverged key) Tooltip resolves via createButton.tooltip (module convention)
Visible text "Create" "Create" (unchanged)

No user-visible behaviour changes — this is a key-naming cleanup that aligns with the rest of the module and platform.


Demo

No visible change — the rendered tooltip text is identical.

Checklist

  • Naming matches the createButton.tooltip convention used in other openIMIS modules
  • No stale references to the old key remain (grep tooltip.createButton is clean in this repo)
  • No translation strings lost — only the key is renamed

PaymentPointsPage used formatMessage('tooltip.createButton') while the
rest of this module — and all other openIMIS modules — use
formatMessage('createButton.tooltip').  The mismatched key diverged
from the established convention used across the platform and made the
tooltip harder to locate when searching module translations.

Rename the translation key to payroll.createButton.tooltip and update
the consumer to match.
@sonarqubecloud
Copy link
Copy Markdown

@zikani03 zikani03 changed the base branch from develop to release/26.04 April 18, 2026 17:15
@zikani03 zikani03 merged commit b5bad8d into release/26.04 Apr 18, 2026
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.

2 participants