Skip to content

Extract hardcoded UI strings in AddressBookSettings and StreamPreview into lib/copy - #1011

Merged
Austinaminu2 merged 2 commits into
FlowwStar:mainfrom
RennyThompson:feature/extract-copy-957-958
Oct 17, 2026
Merged

Austinaminu2 merged 2 commits into
FlowwStar:mainfrom
RennyThompson:feature/extract-copy-957-958

Conversation

@RennyThompson

Copy link
Copy Markdown
Contributor

Extracts the remaining hardcoded UI strings from two components into the existing lib/copy modules, following the pattern already established for the settings page/webhook settings and the create-stream form. Wording is unchanged; interpolated strings are expressed as arrow functions.

#958 — AddressBookSettings

All user-visible strings from components/settings/address-book-settings.tsx now live under a new top-level settingsCopy.addressBook in lib/copy/settings.ts:

  • emptyState — empty-state text
  • saveAria, cancelAria, editAria, deleteAria — button aria-labels
  • confirmRemoveLabel, confirmButton, cancelButton — inline delete-confirmation UI
  • validation.emptyLabel — "Label cannot be empty" toast
  • toasts.entryUpdated, toasts.entryRemoved — success toasts

The existing settingsCopy.page.sections.addressBook (settings page section heading) is untouched.

#957 — StreamPreview

All user-visible strings from components/streams/stream-preview.tsx now live under a new createFormCopy.streamPreview key in lib/copy/create-form.ts:

  • emptyState, title
  • lowRateWarning(perHour, symbol) — interpolated low-rate warning
  • totalDurationLabel, unlockRateLabel, cliffAmountLabel, cliffWaitLabel, timelineLabel, startLabel
  • perMonthSuffix, perHourSuffix, perDaySuffix — rate unit suffixes
  • cliffLabel(duration), endLabel(duration) — interpolated timeline labels
  • duration.days/hours/minutes(n), duration.none, duration.belowOneMinute — formatDuration output

Non-visible strings (className, data-testid, event keys, imported helper values) are intentionally left in place.

Closes #957
Closes #958

Moves every user-visible string out of AddressBookSettings and StreamPreview
into lib/copy/settings.ts and lib/copy/create-form.ts respectively, following
the established copy-module pattern.

Closes FlowwStar#957
Closes FlowwStar#958
@drips-wave

drips-wave Bot commented Oct 17, 2026

Copy link
Copy Markdown

@RennyThompson Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Austinaminu2
Austinaminu2 merged commit 8bf03f0 into FlowwStar:main Oct 17, 2026
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.

Extract hardcoded UI strings in AddressBookSettings into lib/copy Extract hardcoded UI strings in StreamPreview into lib/copy

2 participants