Skip to content

Conversation

@codecakes
Copy link
Contributor

No description provided.

@codecakes codecakes requested a review from Copilot March 30, 2025 08:35
@codecakes codecakes self-assigned this Mar 30, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements an experimental fix to update the TRPC client integration and ERP modules by switching to lumos-ts services, thereby streamlining authentication and order management along with ERP connectivity.

  • Replaces the TRPC proxy client with a lumos-ts based TRPC client and re-exports integrated login and order services.
  • Updates ERP router endpoints by adding explicit input type annotations and revises import sources to use lumos-ts.
  • Introduces minor client-side adjustments for browser compatibility via process polyfill.

Reviewed Changes

Copilot reviewed 10 out of 11 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/utils/trpc.ts Removes old TRPC proxy usage and uses lumos-ts client integration, re-exporting services.
src/modules/erp.ts Adjusts ERP router endpoints with explicit input type annotations and uses lumos-ts imports.
src/integrations/erp/index.ts Extends the lumos-ts ERPAdapter and modifies logging to use dynamic property access.
src/core/trpc.ts Adds lumos-ts imports to support enhanced routing/context creation.
src/client.tsx Introduces a browser process polyfill to support process-dependent code in the client.
Files not reviewed (1)
  • package.json: Language not supported

codecakes and others added 2 commits March 30, 2025 14:06
The import 'lumosCreateContext' is not used in this file; consider removing it to keep the code clean.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Using 'this as any' to access 'name' and 'baseUrl' undermines type safety; consider exposing these properties via public getters in the base class to maintain robust type checking.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@codecakes codecakes requested a review from Copilot March 30, 2025 08:37
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@codecakes codecakes requested a review from Copilot March 30, 2025 08:37
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

…iples:Separation of concerns with clear boundariesUse of adapters to interact with external servicesDependency Inversion through abstractionsClean interfaces between layersProper error handlingThe code is also ready for further extensions while maintaining backward compatibility.
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.

2 participants