Skip to content

Conversation

@compulim
Copy link
Contributor

@compulim compulim commented Dec 17, 2025

Related to #5622.

Changelog Entry

Added

Description

Clean up some code after #5622.

Design

Specific Changes

  • Renamed Graph2 back to Graph
  • Cleaned useActivities() hook
  • I have added tests and executed them locally
  • I have updated CHANGELOG.md
  • I have updated documentation

Review Checklist

This section is for contributors to review your work.

  • Accessibility reviewed (tab order, content readability, alt text, color contrast)
  • Browser and platform compatibilities reviewed
  • CSS styles reviewed (minimal rules, no z-index)
  • Documents reviewed (docs, samples, live demo)
  • Internationalization reviewed (strings, unit formatting)
  • package.json and package-lock.json reviewed
  • Security reviewed (no data URIs, check for nonce leak)
  • Tests reviewed (coverage, legitimacy)

OEvgeny
OEvgeny previously approved these changes Dec 17, 2025
@compulim compulim changed the title [WIP] Clean up graph code Clean up graph code Dec 17, 2025
@compulim compulim marked this pull request as ready for review December 17, 2025 20:55
@OEvgeny OEvgeny requested a review from Copilot December 17, 2025 20:55
Copy link
Contributor

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 performs a cleanup of the graph code following the introduction of the new JSON-LD graph backend in PR #5622. The main purpose is to rename Graph2 back to Graph and improve the structure of the useActivities() hook for better code organization and maintainability.

  • Renamed Graph2 class and all its imports back to Graph
  • Refactored useActivities() hook to separate production and development implementations
  • Updated TODO comment to include priority marker and more specific iOS version reference

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/core-graph/src/private/Graph.ts Renamed Graph2 class to Graph and updated TODO comment with priority and version details
packages/core-graph/src/index.ts Updated export path from Graph2 to Graph
packages/core-graph/src/private/SlantGraph/SlantGraph.ts Updated import path from Graph2 to Graph
packages/core-graph/src/private/SlantGraph/private/*.ts Updated import paths in terminator.ts, color.ts, autoInversion.ts, and assertSlantNode.ts from Graph2 to Graph
packages/core-graph/src/private/*.spec.ts Updated test file imports from Graph2 to Graph in all spec files
packages/api/src/hooks/useActivities.ts Refactored to separate useActivitiesForProduction and useActivitiesForDevelopment functions for clearer code organization

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@compulim compulim merged commit 7ce8d09 into main Dec 18, 2025
53 of 54 checks passed
@compulim compulim deleted the cleanup-chat-adapter branch December 18, 2025 03:00
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.

3 participants