Refactor graph storage limits and update @robosystems/client to 0.2.45#116
Refactor graph storage limits and update @robosystems/client to 0.2.45#116
Conversation
…update service offerings context to use instance storage limit. Adjust related tests to reflect changes in graph tier limits.
…age-lock.json for improved functionality and compatibility.
|
@claude please review this PR |
|
Claude finished @jfrench9's task in 1m 20s —— View job PR Review
Overall this is a clean, well-scoped refactor. The code reduction (~61 lines deleted) is real simplification, not just deletion. A few observations below.
|
| Assessment | |
|---|---|
content.tsx refactor |
✅ Clean simplification |
service-offerings-context.tsx |
instanceStorageLimitGb added but not yet consumed |
Removed limits (maxNodes/maxRelationships) |
✅ Confirmed no consumers |
| Deleted tests | ✅ Appropriate, but missing new coverage for instanceStorageLimitGb mapping |
| Stale mock | src/__mocks__/@robosystems/client.js:117 |
The PR is in good shape. The main question to answer before merging: is instanceStorageLimitGb intentionally added for future use, or should it already be wired to a consuming component?
Summary
This PR refactors how graph storage limits are handled across the application by removing redundant storage usage tracking from the
UsageContentcomponent and shifting to instance-based storage limits provided through the service offerings context. It also bumps@robosystems/clientto version 0.2.45 for improved functionality and compatibility.Changes
Package Update
@robosystems/clientfrom previous version to 0.2.45 in bothpackage.jsonandpackage-lock.json, which likely provides the new instance storage limit API that this refactor depends on.UsageContent Component (
src/app/(app)/usage/content.tsx)Service Offerings Context (
src/lib/core/contexts/service-offerings-context.tsx)Tests (
src/lib/core/lib/__tests__/graph-tiers.test.ts)Key UI/UX Improvements
Breaking Changes
UsageContentor the old graph-tier-based storage limits from the service offerings context.@robosystems/clientbump to 0.2.45 may introduce API changes — consumers of this package should verify compatibility.Testing Notes for Reviewers
/usagepage and verify it renders correctly without errors. Confirm that the removal of storage usage display is intentional and that no blank/broken sections appear.graph-tiers.test.tsare truly obsolete and that no untested logic gaps remain. Run the full test suite to verify no failures.Browser Compatibility Considerations
🤖 Generated with Claude Code
Branch Info:
refactor/graph-storage-limitsmainCo-Authored-By: Claude noreply@anthropic.com