Skip to content

refactor: migrate all GraphQL operations to @dyne/interfacer-client SDK - #882

Merged
phoebus-84 merged 1 commit into
mainfrom
refactor/sdk-gql-migration
Aug 5, 2026
Merged

refactor: migrate all GraphQL operations to @dyne/interfacer-client SDK#882
phoebus-84 merged 1 commit into
mainfrom
refactor/sdk-gql-migration

Conversation

@phoebus-84

Copy link
Copy Markdown
Contributor

Summary

Migrates all GraphQL operation documents from inline gql definitions into the @dyne/interfacer-client SDK, removes Apollo dependencies, and adds a lazy project traceability graph.

SDK (interfacer-client v0.5.0)

  • All 73 GraphQL operations centralized in the SDK
  • New ResourceClient.getTraceDpp(id) with QUERY_RESOURCE_TRACE_DPP
  • Removed bin from project/resource images (kept for person/user avatar queries)
  • Exported TraceDppNode / TraceDppNodeType types

GUI changes

  • All gql templates removed — every operation imported from @dyne/interfacer-client
  • Apollo dependencies removed: apollo-client, apollo-utilities, webpack/tsconfig aliases, stubs
  • Lazy traceability graph (ProjectTraceability): fetches traceDpp once on section open, renders tree + outline + node details, WCAG AA, responsive
  • License/licensor restored on project cards and detail sidebar
  • Timestamps from metadata instead of expensive trace resolver
  • BrUserAvatar accepts user object; bin kept only for person queries
  • Design context in .impeccable.md and .github/copilot-instructions.md

Validation

  • TypeScript: 0 errors
  • ESLint: 0 errors (23 pre-existing warnings)
  • Production build: passes (Node 20)
  • SDK tests: 55/55 pass

…t SDK

- Replace all inline gql definitions with imports from @dyne/interfacer-client v0.5.0
- Remove apollo-client, apollo-utilities dependencies and webpack/tsconfig aliases
- Remove Apollo stubs (ApolloProvider, InMemoryCache, HttpLink, ApolloClient)
- Add lazy ProjectTraceability component with traceDpp graph, outline, and node details
- Restore license/licensor display in project cards and detail sidebar
- Replace trace-derived timestamps with metadata timestamps
- Slim project images: remove bin from resource queries, keep bin for avatars
- BrUserAvatar accepts user object instead of userId
- Add .impeccable.md design context and copy to .github/copilot-instructions.md
@phoebus-84
phoebus-84 merged commit 8ed3d99 into main Aug 5, 2026
1 check passed
@phoebus-84
phoebus-84 deleted the refactor/sdk-gql-migration branch August 5, 2026 15:31
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