Skip to content

Conversation

@aliraza556
Copy link
Contributor

This PR centralizes repeated user-facing strings used in Hive Chat into a single constants object to improve consistency and maintainability.

Changes:

  • Added ERROR_MESSAGES to src/people/utils/Constants.tsx
  • Replaced hardcoded strings in src/people/hiveChat/index.tsx:
    • "Cannot Send Message" toast title
    • GitHub PAT expired message
    • Workspace setup incomplete message
    • "Type your message..." textarea placeholder

Why:

  • Single source of truth for messages
  • Easier future edits and localization
  • Reduces risk of inconsistencies/typos

Notes:

  • No behavioral changes; user-visible text remains the same
  • Lint passes locally with no new issues

Testing:

  • Open Hive Chat
  • With incomplete setup or expired PAT, verify toast messages display correctly
  • Verify the input placeholder shows the constant when applicable

@aliraza556
Copy link
Contributor Author

@kevkevinpal, @tomsmith8 Please review this PR.

@kevkevinpal kevkevinpal merged commit 79db848 into stakwork:master Aug 22, 2025
68 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