Summary
truncateMessage defaults to 80 characters. The contract caps a tip message at
280 bytes, and the frontend enforces its own separate number. Three layers, three
unrelated values, none deriving from the others.
80 may be a perfectly reasonable display default, but as an unexplained literal
it reads like a limit rather than a display choice, and there is nothing
connecting it to what the contract actually permits.
Acceptance criteria
Getting started
Fork this repository, clone your fork, and add this repo as upstream:
git clone https://github.com/<your-username>/novatip-sdk.git
cd novatip-sdk
git remote add upstream https://github.com/Novatip/novatip-sdk.git
npm install
Create a branch for this issue:
git checkout -b fix/truncate-message-default
Suggested commit message:
fix: relate the truncation default to the message limit
Run npm run lint, npm run typecheck, and npm run build before pushing, then open a pull request from your fork against main and link this issue. See the contributing guide for the full workflow.
Summary
truncateMessagedefaults to 80 characters. The contract caps a tip message at280 bytes, and the frontend enforces its own separate number. Three layers, three
unrelated values, none deriving from the others.
80 may be a perfectly reasonable display default, but as an unexplained literal
it reads like a limit rather than a display choice, and there is nothing
connecting it to what the contract actually permits.
Acceptance criteria
documented as a display-only choice with its reasoning.
comment, including that one counts bytes and the other characters.
Getting started
Fork this repository, clone your fork, and add this repo as
upstream:Create a branch for this issue:
Suggested commit message:
Run
npm run lint,npm run typecheck, andnpm run buildbefore pushing, then open a pull request from your fork againstmainand link this issue. See the contributing guide for the full workflow.