Skip to content

[5.7] Deep-linking + section anchoring in resource viewer #42

@jasminetay-moe

Description

@jasminetay-moe

Epic: Part 5 — Native Resource Viewer
Sprint: Sprint 6
Priority: P2
Role: Engineer

User Story

As an Engineer, I want to implement deep-linking and section-level anchoring so that when a teacher opens a document from a citation, they land directly on the cited passage.

Context

When a teacher taps a source citation in a recommendation card or AI Chat response, the viewer should open the document at the exact referenced section — not the document start. This is citation-triggered only; documents opened from the resources tab just open normally (handled in 5.6).

The LLM response must include a section reference or anchor in the citation metadata for this to work — this needs to be agreed as part of the RAG output format.

Acceptance Criteria

  • Citation link includes section reference / anchor metadata from the LLM response
  • Viewer opens document at the cited section when triggered from a card or AI Chat citation
  • Falls back gracefully to document start if no anchor metadata is present
  • Section anchoring works for supported formats (PDF page anchor, HTML id anchor)

Dependencies


📄 PRD: Part 5 — Glow CI PRD

Metadata

Metadata

Assignees

No one assigned

    Labels

    engineerEngineer storyp2Nice-to-havepart-5Epic 5: Native Resource Viewer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions