Skip to content

fix(frontend): surface validate timeout error message instead of 503#55

Merged
ilramdhan merged 1 commit into
mutugading:mainfrom
ilramdhan:fix/seed-master-data-product-cost
Jun 28, 2026
Merged

fix(frontend): surface validate timeout error message instead of 503#55
ilramdhan merged 1 commit into
mutugading:mainfrom
ilramdhan:fix/seed-master-data-product-cost

Conversation

@ilramdhan

Copy link
Copy Markdown
Member

BFF validate route now returns 422 with base.message when finance service returns isSuccess=false (e.g. timeout on large file). validateBulkProductRoutingFile reads base.message from error responses so the toast shows the backend's readable message rather than "Validation failed: 503".

Description

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 🎨 UI/UX improvement
  • ♻️ Refactor
  • 📚 Documentation
  • 🔧 Chore (deps, config)

Module/Component Affected

  • Dashboard
  • Finance
  • HR / IT / CI / EXSIM
  • Components (common/)
  • Components (ui/)
  • Navigation
  • API Routes

Changes Made

Related Issues

Fixes #
Related to #

Screenshots

Before

After

Testing Performed

Manual Testing

  • Desktop (1440px+)
  • Tablet (768px)
  • Mobile (375px)
  • Light mode
  • Dark mode

Browser Testing

  • Chrome
  • Firefox
  • Safari
  • Edge

Build Verification

  • npm run lint passes
  • npx tsc --noEmit passes
  • npm run build succeeds

Accessibility

  • Keyboard navigation works
  • Screen reader compatible
  • Proper ARIA labels
  • Color contrast adequate

Performance

  • No unnecessary re-renders
  • Images optimized
  • Heavy components lazy loaded

Pre-merge Checklist

  • I have read and followed RULES.md
  • I have read and followed CONTRIBUTING.md
  • Loading states implemented (if data fetching)
  • Error handling present
  • Component props typed properly
  • Uses semantic color classes
  • Responsive design tested
  • Dark mode compatible
  • Screenshots included (for UI changes)

Reviewer Notes

BFF validate route now returns 422 with base.message when finance
service returns isSuccess=false (e.g. timeout on large file).
validateBulkProductRoutingFile reads base.message from error responses
so the toast shows the backend's readable message rather than
"Validation failed: 503".

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@ilramdhan ilramdhan merged commit c30eb3e into mutugading:main Jun 28, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant