Wang1rrr opened a new pull request, #6277:
URL: https://github.com/apache/rocketmq-dashboard/pull/6277

   ### Which Issue(s) This PR Fixes
   
   Fixes #4044.
   
   ### Brief Description
   
   Cover padded, mixed-case reserved property names and the complete preview 
result for both form rows and pasted text. The existing reserved-name test 
covers an uppercase form entry but leaves whitespace handling and the text-mode 
warning path unprotected.
   
   The new cases verify that only exact reserved names trigger a non-blocking 
warning, that ordinary names such as `TAGS_EXTRA` remain ordinary properties, 
and that detection preserves the normalized spelling and values in the outgoing 
property map. This is a test-only change.
   
   ### How Did You Test This Change?
   
   - `npm test -- src/utils/messagePayloadPreview.test.ts 
src/utils/messageProperties.test.ts --maxWorkers=1`: 20 passed after restoring 
the production source.
   - Mutation checks, run separately: removing reserved-name trimming failed 
the new padded-name case; disabling reserved-name detection for pasted text 
failed the new text-mode case. In each run, the other 15 preview cases passed. 
Neither mutation is included in this PR.
   - `npx eslint src/utils/messagePayloadPreview.test.ts`, `npx prettier 
--check src/utils/messagePayloadPreview.test.ts` and `git diff --check`: passed.
   - `npm run build`: passed, including the license check (133 components, 140 
license files). Vendored assets were checked out with their exact committed 
bytes to avoid the existing Windows `core.autocrlf` license-hash mismatch. No 
license or production file changes are included.
   
   The full frontend suite and Java tests were not run. AI assistance was used; 
the final diff and mutation results were inspected.
   
   ### Checklist
   
   - [x] One coherent change
   - [x] Conventional Commit subject
   - [x] Regression coverage with discriminating mutation checks
   - [x] No new UI text, source files, runtime behavior or architecture changes
   


-- 
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