Skip to content

M-6: View Universe #18

@spuentesp

Description

@spuentesp

Category: manage | Epic: 1 | Priority: medium

Summary

Display detailed information about a specific Universe including metadata,
entity counts by type, recent stories, sources, and activity. Provides
navigation to related management actions.

Acceptance Criteria

  • neo4j_get_universe returns full universe data
  • neo4j_get_universe_stats returns counts by entity type
  • Universe can be retrieved by ID or exact name
  • Entity counts grouped by type (character, location, faction, etc.)
  • Stories listed with status and scene count
  • Sources listed with document count
  • Actions displayed as interactive options in CLI

Dependencies

This use case depends on:

  • DL-1

Implementation

Layer: 3

Files to modify:

  • packages/cli/src/monitor_cli/commands/manage/universe.py

NEO4J Operations:

  • neo4j_get_universe (authority: *)
  • neo4j_get_universe_stats (authority: *)
  • neo4j_list_stories (authority: *)
  • neo4j_list_sources (authority: *)

Notes:

  • Consider lazy loading for large stats
  • Add --json flag for machine-readable output

Testing Requirements

Minimum coverage: 80%

Unit tests:

  • test_view_universe_by_id: returns full details
  • test_view_universe_by_name: name lookup works
  • test_view_universe_not_found: 404 handled gracefully
  • test_view_universe_stats: entity counts correct

Integration tests:

  • test_view_universe_cli: CLI output formatted correctly

References

Documentation:


Generated from /home/sebas/monitor2/docs/use-cases/manage/M-6.yml

Metadata

Metadata

Assignees

No one assigned

    Labels

    manageWorld administration (M-*)readyAll dependencies satisfied, ready to work

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions