Skip to content

feat: refactor core console with new architecture and remove legacy features#43

Merged
jfrench9 merged 7 commits intomainfrom
feature/core-console
Feb 11, 2026
Merged

feat: refactor core console with new architecture and remove legacy features#43
jfrench9 merged 7 commits intomainfrom
feature/core-console

Conversation

@jfrench9
Copy link
Member

Summary

This PR introduces a comprehensive refactor of the core console functionality while removing deprecated features and streamlining the codebase. The changes include a new console architecture, removal of legacy credit system components, and elimination of unused entity creation and chat features.

Key Changes

✨ New Features

  • New Console Architecture: Added dedicated console components with improved structure

    • ConsoleContent.tsx - Core console functionality (673 lines)
    • ProgressiveText.tsx - Enhanced text rendering component
    • Comprehensive test coverage with ConsoleContent.test.tsx (527 tests)
    • Proper TypeScript definitions in types.ts
  • Enhanced SDK Integration: Added client SDK mocking capabilities for better development experience

🗑️ Removed Legacy Features

  • Credit System Cleanup (Breaking Change):

    • Removed all credit-related components (CreditAlerts, CreditAwareButton, CreditCostPreview, CreditDisplay)
    • Deleted credit contexts and hooks (credit-context, credit-visibility-context, use-billing-status)
    • Removed credit visibility API routes and cookie management
    • Impact: Applications using credit-related features will need migration
  • Entity Management Deprecation:

    • Removed CreateEntityButton, CreateEntityGraphModal, and SchemaExtensionSelector
    • Deleted entity-related hooks (use-entities)
    • Cleaned up associated mocks and tests
  • Chat Interface Removal:

    • Deleted ChatInterface component and related test suites
    • Removed BetaWaitlistForm component
    • Impact: Chat functionality will no longer be available

🔧 Code Improvements

  • Streamlined console content from 753+ lines to more maintainable structure
  • Updated core library exports and index files
  • Enhanced Vitest configuration
  • Improved component organization and separation of concerns

Breaking Changes

⚠️ Important: This PR contains breaking changes:

  1. Credit System: All credit-related APIs, components, and contexts have been removed
  2. Entity Creation: Legacy entity creation workflows are no longer available
  3. Chat Features: Chat interface and related components have been deprecated

Testing Notes

  • ✅ New console components include comprehensive test coverage (527 test cases)
  • ✅ All legacy component tests have been properly cleaned up
  • ✅ Core functionality tests updated to reflect new architecture
  • 🧪 Manual Testing Required:
    • Verify console functionality works as expected
    • Ensure no broken imports from removed components
    • Test graph creation workflow still functions properly

Browser Compatibility

  • No new browser-specific APIs introduced
  • Maintained existing React/Next.js compatibility requirements
  • TypeScript definitions ensure type safety across supported environments

Migration Guide

For applications using removed features:

  1. Replace credit-related components with new alternatives (to be documented)
  2. Update entity creation workflows to use new patterns
  3. Remove any imports of deleted chat components
  4. Update test files that reference removed mocks

Net Change: -3,553 lines of code removed, improving maintainability and reducing bundle size.


🤖 Generated with Claude Code

Branch Info:

  • Source: feature/core-console
  • Target: main
  • Type: feature

Co-Authored-By: Claude noreply@anthropic.com

87ecce0 Refactor console component and update configuration
9c13c7d fix: round progress value in GraphCreationWizard and remove operation ID display

git-subtree-dir: src/lib/core
git-subtree-split: 87ecce00595849961ced6528616b4a8ab7f7d1f2
…ng content structure for improved clarity and functionality.
1148c6f Refactor credit-related components and remove unused context

git-subtree-dir: src/lib/core
git-subtree-split: 1148c6f51dd564ee97f8b576ab890938e060e124
…and related logic. Delete ChatInterface component and associated tests to streamline the codebase. Remove credit visibility API route as it is no longer needed.
…eateEntityButton, CreateEntityGraphModal, SchemaExtensionSelector, and associated mocks. Also, delete the US-GAAP elements file to streamline the codebase.
@jfrench9 jfrench9 merged commit f028d03 into main Feb 11, 2026
3 checks passed
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