Skip to content

fix: correct spelling of "TradeTrust" in various components#1128

Open
manishdex25 wants to merge 2 commits intomasterfrom
TT-1317/correct-naming-of-tradetrust
Open

fix: correct spelling of "TradeTrust" in various components#1128
manishdex25 wants to merge 2 commits intomasterfrom
TT-1317/correct-naming-of-tradetrust

Conversation

@manishdex25
Copy link
Copy Markdown

@manishdex25 manishdex25 commented Apr 9, 2026

Summary

What is the background of this pull request?

Changes

  • What are the changes made in this pull request?
  • Change this and that, etc...

Issues

What are the related issues or stories?

Summary by CodeRabbit

  • Style

    • Corrected and standardized product branding terminology in button labels, interface text, and component labels throughout the application to ensure consistent, accurate, and professional presentation to all users.
  • Tests

    • Updated automated test selectors and test expectations to match the corrected product branding terminology reflected in the updated UI labels and button text.

@manishdex25 manishdex25 requested a review from RishabhS7 April 9, 2026 07:13
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 9, 2026

Deploy Preview for reference-implementation ready!

Name Link
🔨 Latest commit 8506504
🔍 Latest deploy log https://app.netlify.com/projects/reference-implementation/deploys/69d751b9baa01a0008b2bd9a
😎 Deploy Preview https://deploy-preview-1128--reference-implementation.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 9, 2026

📝 Walkthrough

Walkthrough

This PR updates branding text from "Tradetrust" to "TradeTrust" (proper capitalization) across component labels, documentation, and test selectors. No functional logic, routing, or component structure changes are included.

Changes

Cohort / File(s) Summary
UI Component Text Updates
src/components/CertificateDropZone/LoadDemoCertificate.tsx, src/components/NavigationBar/NavigationBar.stories.tsx
Updated branding text from "Tradetrust" to "TradeTrust" in button labels and Storybook subtitle.
Test Selector Update
src/test/demo-sample.spec.ts
Updated TestCafe button selector text from "View Demo Tradetrust Document" to "View Demo TradeTrust Document" to match component changes.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Suggested reviewers

  • rongquan1

Poem

🐰 A hop, a skip, capitalization's right,
TradeTrust now gleams with proper delight!
From buttons to tests, the branding takes flight,
Small changes that make the whole product shine bright! ✨

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The pull request description is incomplete and consists entirely of template placeholders without any actual content or details about the changes. Fill in the template sections with actual information: provide background context, detail the specific files modified and changes made, and list any related issues or stories (e.g., TT-1317).
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and accurately summarizes the main change: correcting the spelling of 'TradeTrust' across various components, which matches the actual modifications in the three files.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch TT-1317/correct-naming-of-tradetrust

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@src/components/CertificateDropZone/LoadDemoCertificate.tsx`:
- Line 20: Replace the remaining incorrect capitalization occurrences of the
document name "Tradetrust-bill-of-lading.tt" with the correct
"TradeTrust-bill-of-lading.tt" across the FormTransferableRecordPanel code and
its tests/stories; specifically update the string literal inside the
FormTransferableRecordPanel component (component name:
FormTransferableRecordPanel), the corresponding test assertions in
FormTransferableRecordPanel.test (update any expect/match/text selectors), and
the example in FormTransferableRecordPanel.stories (update displayed/prop values
and any snapshot text) so all references use "TradeTrust-bill-of-lading.tt"
consistently.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 589be21b-2c62-4e4e-bc3a-3536a1bc7645

📥 Commits

Reviewing files that changed from the base of the PR and between 9ede505 and 8506504.

📒 Files selected for processing (3)
  • src/components/CertificateDropZone/LoadDemoCertificate.tsx
  • src/components/NavigationBar/NavigationBar.stories.tsx
  • src/test/demo-sample.spec.ts

}}
>
View Demo Tradetrust Document
View Demo TradeTrust Document
Copy link
Copy Markdown

@coderabbitai coderabbitai Bot Apr 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Search for remaining instances of "Tradetrust" (incorrect capitalization)
# Exclude common directories and look for the old branding

rg -i 'tradetrust' \
  --type ts --type tsx --type js --type jsx \
  -g '!node_modules' -g '!dist' -g '!build' \
  | rg -v 'TradeTrust' \
  | rg 'Tradetrust'

Repository: TradeTrust/tradetrust-website

Length of output: 100


🏁 Script executed:

#!/bin/bash
# Check for remaining instances of "Tradetrust" (incorrect capitalization) 
# using correct rg syntax
rg 'Tradetrust' --type ts -g '!node_modules' -g '!dist' -g '!build'

Repository: TradeTrust/tradetrust-website

Length of output: 789


🏁 Script executed:

# View the actual file content at the lines mentioned
cat -n src/components/CertificateDropZone/LoadDemoCertificate.tsx | sed -n '15,30p'

Repository: TradeTrust/tradetrust-website

Length of output: 669


🏁 Script executed:

# Also check the test file mentioned in the comment
cat -n src/test/demo-sample.spec.ts | sed -n '25,35p'

Repository: TradeTrust/tradetrust-website

Length of output: 470


LGTM! Branding text updated correctly.

The button labels in LoadDemoCertificate.tsx have been updated to use the correct "TradeTrust" capitalization, and the corresponding test selector has been updated to match.

However, verification found remaining instances of incorrect capitalization ("Tradetrust-bill-of-lading.tt") in the FormTransferableRecordPanel component files that should also be updated to "TradeTrust-bill-of-lading.tt" for consistency:

  • src/components/Creator/FormTransferableRecordPanel/FormTransferableRecordPanel.tsx
  • src/components/Creator/FormTransferableRecordPanel/FormTransferableRecordPanel.test.tsx
  • src/components/Creator/FormTransferableRecordPanel/FormTransferableRecordPanel.stories.tsx
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/components/CertificateDropZone/LoadDemoCertificate.tsx` at line 20,
Replace the remaining incorrect capitalization occurrences of the document name
"Tradetrust-bill-of-lading.tt" with the correct "TradeTrust-bill-of-lading.tt"
across the FormTransferableRecordPanel code and its tests/stories; specifically
update the string literal inside the FormTransferableRecordPanel component
(component name: FormTransferableRecordPanel), the corresponding test assertions
in FormTransferableRecordPanel.test (update any expect/match/text selectors),
and the example in FormTransferableRecordPanel.stories (update displayed/prop
values and any snapshot text) so all references use
"TradeTrust-bill-of-lading.tt" consistently.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for file name changes

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@manishdex25, understood! The "Tradetrust-bill-of-lading.tt" references are actual file names/identifiers, so leaving them unchanged is the right call — renaming them could break functionality. The scope of this PR is correctly limited to fixing visible UI display text only.


✏️ Learnings added
Learnt from: manishdex25
Repo: TradeTrust/tradetrust-website PR: 1128
File: src/components/CertificateDropZone/LoadDemoCertificate.tsx:20-20
Timestamp: 2026-04-09T07:28:10.229Z
Learning: In the TradeTrust/tradetrust-website repository, the filename literal "Tradetrust-bill-of-lading.tt" (used in FormTransferableRecordPanel component and its test/stories files) should NOT be renamed to "TradeTrust-bill-of-lading.tt". It is an actual file name/identifier, not display text, and must remain unchanged. Only visible UI text labels need the correct "TradeTrust" capitalization.

Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 23, 2026

Deploy Preview for tradetrust-dev failed. Why did it fail? →

Name Link
🔨 Latest commit 8506504
🔍 Latest deploy log https://app.netlify.com/projects/tradetrust-dev/deploys/69d751b9a20ec200080923be

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.

1 participant