Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

1.5 KB
Raw Blame

graphql_work_feed

What it is

Belongs to the work feed feature: a viewer's aggregated feed of tasks and items needing attention. This crate is the GraphQL inbound adapter exposing the workFeed page, done/undo mutations, and the workFeedUpdates subscription.

Start here

  • src/query.rs: resolve_work_feed.
  • src/objects.rs: GraphqlWorkFeedPage, GraphqlWorkFeedEntry, GraphqlWorkFeedItem, GraphqlWorkFeedStack, GraphqlWorkFeedPatch.
  • src/mutations.rs: mark-done / undo-done mutations.
  • src/subscriptions.rs: WorkFeedSubscriptionRoot — realtime patches, batched by attention_feed's live::coalesce.
  • src/context.rs: WorkFeedGraphqlContext, built with the shared FeedTriggers and FeedViewerResolver.

Scope

  • Owns: GraphQL types/resolvers/subscription for the work feed page.
  • Not here: feed composition and item ranking → crates/work_feed; shared keys, tokens, triggers and viewer lookup → crates/attention_feed; notification content → crates/graphql_notification.

Boundaries

  • Depends on: work_feed, attention_feed (inbound feature), graphql_notification, graphql_soup, graphql_common.
  • Used by: complete_graph (schema composition).

Recipes

  • Add a feed item field: src/objects.rs → src/query.rs if it needs new input scoping (src/inputs.rs).
  • Add a mutation: src/mutations.rs → work_feed domain port.

Checks

  • cargo test -p graphql_work_feed (SQLX_OFFLINE unset).

Related

  • Rules: .agents/rules/rust/architecture.md