Skip to content

SDK 56 upgrade, Observability implementation in monorepo#143

Merged
MeryAmr merged 11 commits into
mainfrom
ui-improvement
May 27, 2026
Merged

SDK 56 upgrade, Observability implementation in monorepo#143
MeryAmr merged 11 commits into
mainfrom
ui-improvement

Conversation

@MeryAmr
Copy link
Copy Markdown
Collaborator

@MeryAmr MeryAmr commented May 27, 2026

  1. Upgraded and migrated to expo sdk 56
  2. Unified components such as text, textarea, dialog, button, seperator, with RNR
  3. Unified Observability across all projects in the monorepo, effectively standaralising error standards accroding to RFC 9457 which is the standard for all error handling.
  4. Fixed supabase realtime not working which was reported after the revamped error system
  5. Wrapped the proiect with sentry, added sentry replayablity, screenshots, errors.
  6. Installed pino and used pino for error logging in backend
  7. Added new package/errors for source of errors in the monorepo
  8. Revamped backend to handle errors in the new unified way
    closes expo versions migration #145 , (observability) logging in frontend and backend #141

MeryAmr added 9 commits May 25, 2026 15:40
- Add package.json (zod-only runtime dep; vitest devDep)
- Add tsconfig.json extending @FixIt/config
- Add vitest.config.ts (node env, self-contained)
- Runtime-neutrality gate: axios/@sentry/express/pino zero matches
Adopts a strict AppError taxonomy (RFC 9457) and centralizes error normalization, replacing ad hoc error message extraction and raw toasts with structured handling. Introduces a global logger that routes logs and breadcrumbs to monitoring, removing direct console usage. Integrates Sentry for error boundaries, user context, and navigation tracing, improving reliability and observability.

Replaces inline error toasts with a single showError function that enforces UI consistency and suppresses errors that should be handled by screen states. Refactors all API, query, and mutation paths to use structured error conversion, ensuring all errors are mapped and deduped before surfacing to the user. Adds new reusable feedback components for forbidden, not found, and query error states.

Cleans up legacy error helper code, updates dependencies, and improves Biome lint rules to prevent raw error toasts and console use outside logger. Lays groundwork for future i18n and advanced error mapping.

Relates to LGUARD-02, PRIV-03, and monitoring plans.
Introduces a unified UI component kit for badges, avatars, alerts, skeletons, and text areas, replacing ad hoc implementations for improved consistency and maintainability.

Enhances error handling by adopting a shared error package, improving error message mapping and reporting, and converting alert dialogs to toast notifications where appropriate.

Adds structured logging and analytics throughout critical flows such as authentication, profile updates, booking, AI chat, and file uploads, with sensitive data scrubbing to support privacy and observability.

Fixed supabase realtime not actually working
a centralized error middleware that returns RFC 9457 Problem Details JSON for all
API errors, providing consistent fields (type, title, status, code, detail,
userMessage, traceId, timestamp) across the stack. Refactors authentication,
authorization, and validation flows to surface actionable user messages and
problem tokens, and ensures compatibility with Sentry and structured logging.
Removes unused controller exports and updates all route and test wiring
accordingly.

Greatly improves DX, error observability, and client-side error handling.
@MeryAmr MeryAmr requested a review from darkhyper24 May 27, 2026 17:52
@MeryAmr MeryAmr self-assigned this May 27, 2026
@MeryAmr MeryAmr added UI Creating or modifying existing UI Backend Improvements or new features to Backend Frontend Improvements or new features to frontend labels May 27, 2026
@MeryAmr MeryAmr changed the title UI improvement SDK 56 upgrade, Observability implementation in monorepo May 27, 2026
@Fix-It-project Fix-It-project deleted a comment from darkhyper24 May 27, 2026
Copy link
Copy Markdown
Collaborator

@darkhyper24 darkhyper24 left a comment

Choose a reason for hiding this comment

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

Ramadan review it @unminnn

@MeryAmr MeryAmr merged commit 87a8492 into main May 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backend Improvements or new features to Backend Frontend Improvements or new features to frontend UI Creating or modifying existing UI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

expo versions migration

2 participants