Overhaul GraphQL client with SDK extensions and refactor entity handling#108
Overhaul GraphQL client with SDK extensions and refactor entity handling#108
Conversation
…gration - Reintroduced 'Knowledge Base' navigation item in the sidebar for better accessibility. - Updated search configuration description and placeholder to reflect broader document search capabilities. - Adjusted document stats loading logic to skip for shared repositories, improving performance and user experience.
…p description in config.ts - Upgraded the `@robosystems/client` dependency from version 0.2.38 to 0.2.40 in both package.json and package-lock.json. - Changed the application description in config.ts from 'Accounting and FP&A Agent' to 'Accounting & Reporting Agent' for clarity.
…on and package-lock.json for enhanced features and stability. Modify app description in config.ts for clarity.
…update service offerings context to use instance storage limit. Adjust related tests to reflect changes in graph tier limits.
- Updated SearchConfig to include semantic search option. - Enhanced SearchContent component to manage semantic search state and integrate it into the search request. - Added ToggleSwitch for semantic search in the UI, allowing users to enable or disable this feature.
…age-lock.json for improved functionality. Implement subscription tier upgrade feature in the billing component, including UI updates and task monitoring for upgrade progress.
…GFM) by integrating remark-gfm plugin. Added custom table rendering for improved display of markdown tables.
…nels - Updated sidebar configuration to include a new "Close" link. - Added new components for the Closing Book feature, including CloseContent, StructureSidebar, and various panels (AccountRollupsPanel, PeriodClosePanel, SchedulePanel, StatementPanel). - Implemented data fetching and state management for closing book categories and entries. - Enhanced user interface with loading states and error handling for better user experience. - Introduced view mode toggle functionality for rendered and facts views.
- Upgraded @robosystems/client to version 0.3.0, introducing new dependencies for GraphQL integration. - Refactored entity fetching logic in content components to utilize the new extensions.ledger.getEntity method, improving data handling and reducing API envelope complexity. - Updated tests to reflect changes in entity structure and ensure compatibility with the new data model. - Enhanced Chart of Accounts and Period Close components to align with updated data structures and improve overall functionality.
…new-client-version
…new-client-version
bcbc89d Merge commit '97dfba339149a3b12eb5c57ec1794a606a4a16bd' into feature/new-client-version 177d49b Enhance SearchContent component to support GitHub Flavored Markdown (GFM) by integrating remark-gfm plugin. Added custom table rendering for improved display of markdown tables. 4814338 Update @robosystems/client to version 0.2.47 in package.json and package-lock.json for improved functionality. Implement subscription tier upgrade feature in the billing component, including UI updates and task monitoring for upgrade progress. e083259 Add semantic search functionality to Search component 8185b09 Refactor UsageContent component to remove storage usage handling and update service offerings context to use instance storage limit. Adjust related tests to reflect changes in graph tier limits. 5180fe3 Merge commit '001c68a121099f81d2ec763c46f6c5f7dea7f54f' into chore/update-client-core 1931702 Merge commit '04fb84ca67736be2c848f7d06b7aeccd0c05c3f2' into chore/update-core 73262d0 Update @robosystems/client dependency to version 0.2.40 and modify app description in config.ts ce0febb Fix import order in SearchContent component for consistency 92710db Refactor sidebar and search components to enhance knowledge base integration git-subtree-dir: src/lib/core git-subtree-split: bcbc89d
…graphql-client-overhaul
…new-client-version
0f8c242 Merge commit 'db0292ff6caa5e50f2b167685848d4980aaf3ae0' into feature/new-client-version 7057e08 Merge commit 'e842e528f0097422a30f5e91a6c28545259bb6ec' into feature/new-client-version fba5502 Merge commit '0f62036f32808efc36fa484933c6cb847f4285a5' into chore/update-client-core 7e8a12b Merge commit '248cb4e9d4dbc9f5e11c720d4fd456c26feaaaa4' into chore/update-core 77c56fc Update @robosystems/client dependency to version 0.2.40 in package.json and package-lock.json for enhanced features and stability. Modify app description in config.ts for clarity. git-subtree-dir: src/lib/core git-subtree-split: 0f8c242
…graphql-client-overhaul
…ency for enhanced markdown support. Refactor auth-core client to integrate SDK extensions for improved token management in GraphQL requests.
…ency for enhanced markdown support. Refactor auth-core client to integrate SDK extensions for improved token management in GraphQL requests.
… warnings for SDK extensions configuration failures.
… warnings for SDK extensions configuration failures.
|
@claude please review this PR |
|
Claude finished @jfrench9's task in 2m 4s —— View job PR Review: Overhaul GraphQL client with SDK extensions and refactor entity handlingTasks:
This is a large, multi-concern PR. The entity handling refactor and Closing Book components are well-executed; the main concerns are concentrated in the new Critical Issues1. Global singleton mutation in
|
…by introducing a method to synchronize the auth token with the extensions configuration. This change enhances token management during authentication processes, ensuring that React hooks remain authenticated across transitions.
…by introducing a method to synchronize the auth token with the extensions configuration. This change enhances token management during authentication processes, ensuring that React hooks remain authenticated across transitions.
…se structure. Updated field names from snake_case to camelCase for consistency and to prevent silent failures in item selection.
Summary
This PR delivers a comprehensive overhaul of the GraphQL client infrastructure, upgrading
@robosystems/clientto v0.3.1 and integrating SDK extensions for improved token management in GraphQL requests. Alongside the client changes, this PR refactors entity handling across the application, enhances the search experience with GitHub Flavored Markdown support, and updates the Closing Book feature with sidebar navigation and content panels.Key Changes
GraphQL Client & Auth Core
auth-core/client.tsmodule (+104 lines): ImplementsRoboSystemsAuthClientwith SDK extensions integration for streamlined token management across all GraphQL requests.@robosystems/clientfrom v0.2.47 → v0.3.1.Entity Handling Refactor
EntitySelectorDropdowncomponent and its associated test suite (~135 lines changed across component and tests).entities/content.tsx) and single entity (entity/content.tsx) views with revised data handling patterns.Ledger / Closing Book Components
AccountRollupsPanel,PeriodClosePanel,SchedulePanel,StatementPanel,StructureSidebar,TrialBalancePanel.AccountRollupsPanel.test.tsx,StructureSidebar.test.tsx,TrialBalancePanel.test.tsx) to align with new entity handling patterns.Search & Markdown Enhancements
remark-gfmplugin intoSearchContentcomponent for GitHub Flavored Markdown rendering.remark-gfmdependency added topackage.json.Service Offerings & Billing
service-offerings-context.tsxto use instance storage limit instead of previous storage usage handling.UsageContentcomponent.graph-tiers.test.ts).Breaking Changes
RoboSystemsAuthClientpattern.Testing Notes
Browser Compatibility
remark-gfmprocesses markdown server-side/at render time and does not introduce browser-specific APIs — no compatibility concerns.Dependencies
@robosystems/client0.2.47→0.3.1remark-gfmDiff stats: 28 files changed, +1,138 / -657 lines across 27 commits.
🤖 Generated with Claude Code
Branch Info:
feature/graphql-client-overhaulmainCo-Authored-By: Claude noreply@anthropic.com