Skip to content

Feature/bilingual i18n with tests#1

Open
picspin wants to merge 16 commits into
masterfrom
feature/bilingual-i18n-with-tests
Open

Feature/bilingual i18n with tests#1
picspin wants to merge 16 commits into
masterfrom
feature/bilingual-i18n-with-tests

Conversation

@picspin

@picspin picspin commented Aug 19, 2025

Copy link
Copy Markdown
Owner

Add more adverse highlight such as contrast volume to make this tool more comprehensive, and build bilingual mode for i18n usres.

cher2bb added 7 commits August 19, 2025 08:33
…suite

- Add i18n system with Chinese as default and English toggle
- Implement LanguageToggle component with Globe icon
- Update App, Header, and InputSection components to use translations
- Add comprehensive test suite with 49 passing tests:
  * Business logic tests (calculations, ROI, formatting)
  * Data management tests (device specs, validation)
  * State management tests (Zustand store)
  * Component tests (App navigation, UI)
- Add Vitest testing framework with React Testing Library
- Include test coverage reporting with V8
- Add testing documentation and guides
- 100% coverage on core business logic
- All tests passing with zero failures

Features:
- Bilingual UI (中文/English) with language toggle
- Comprehensive ROI calculations for medical equipment
- Device comparison and analysis
- Professional test suite for enterprise deployment
- Document bilingual support (Chinese/English) with language toggle
- Explain comprehensive test suite (49 tests, 100% core coverage)
- Provide quick start guide and usage instructions
- Detail technical implementation and architecture
- Include quality metrics and deployment readiness
- Ready for production use in healthcare environments
- Fix App tests to include I18nProvider wrapper
- Use role-based queries to avoid text conflicts
- Add within() helper for specific element scoping
- All 49 tests now passing with bilingual functionality
- Tests validate both Chinese (default) and navigation behavior
- All text elements use the translation system for bilingual support

- Tooltips in the radar chart properly display translated content

- The analysis conclusion section uses translated content with dynamic values

- All charts and components maintain their bilingual functionality
@vercel

vercel Bot commented Aug 19, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
roi-calc Ready Ready Preview Comment Sep 17, 2025 0:53am

@netlify

netlify Bot commented Aug 19, 2025

Copy link
Copy Markdown

Deploy Preview for centargo-roi ready!

Name Link
🔨 Latest commit 4a56c19
🔍 Latest deploy log https://app.netlify.com/projects/centargo-roi/deploys/68caaf32267ea90007313dad
😎 Deploy Preview https://deploy-preview-1--centargo-roi.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.

cher2bb added 2 commits September 3, 2025 11:53
- Added percentage input field (0-100%) in InputSection
- Includes helper text explaining the purpose Validates input range with visual percentage indicator
- Updated Calculation Logic:

Modified calculateDeltaP() to factor in CT enhancement rate
- Only enhanced scans benefit from time savings (multiplied by enhancement rate)
- Updated all calculation functions to use the new parameter

Additional Revenue Calculation:

- New calculateAdditionalRevenue() function
- Calculates potential revenue from saved time distributed by enhancement rate
- Uses national CT fee standards
- Accounts for different exam durations

New Metric Card:

- Purple-themed "Potential Additional Revenue" card in ResultsSection
- Shows monthly potential additional revenue from saved time
- Responsive grid layout (4 columns on large screens)
Regarding some platform, add a verification.txt file is necessary.
Add echarts and echarts-for-react dependencies to enable interactive charting capabilities for displaying radiology equipment ROI comparisons. The ECharts library will provide advanced visualization features for comparing financial metrics between baseline and target equipment configurations.
- Import and integrate CumulativeRevenueChart component into results layout
- Refactor chart grid to include full-width cumulative revenue chart
- Fix monthly time saved calculation using consistent methodology
- Add comprehensive integration tests for AdditionalRevenueCard translations
- Implement language switching tests for I18n provider functionality
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