Skip to content

Rewrite the frontend resource-layer docs for the current surface - #15283

Closed
rtibblesbot wants to merge 5 commits into
learningequality:developfrom
rtibblesbot:issue-15071-77a470
Closed

rtibblesbot wants to merge 5 commits into
learningequality:developfrom
rtibblesbot:issue-15071-77a470

Conversation

@rtibblesbot

@rtibblesbot rtibblesbot commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Summary

The frontend docs still taught Model/Collection objects, fetchModel/fetchCollection, and cache-management helpers that the resource layer no longer has. A new Resource layer reference page now owns that surface — the methods, request, the reactive composables, and how to add an API call — and the data-flow, URL how-to, composables and sandbox pages keep their own subject and link to it instead of duplicating it.

References

Fixes #15071. Suffix-free method names in the examples land with #15233.

Reviewer guidance

  1. uv run --group docs sphinx-build -E -b html docs /tmp/kolibri-docs — succeeds with the same 2 warnings develop already has. The repo's Docs workflow is disabled, so nothing on CI builds these pages.
  2. grep -rnE 'fetchModel|fetchCollection|saveModel|deleteModel|clearCache' docs/ packages/*/README.md — no hits.

Open risk:

AI usage

Used Claude Code to draft the pages from packages/kolibri/apiResource.js and to check every signature, return shape and file:line citation against it. Verified with the Sphinx build and prek.

🤖 Generated with Claude Code


@rtibblesbot's comments are generated by an LLM, and should be evaluated accordingly

How was this generated?
  • Ran pre-flight CI checks (lint, format, tests) and verified all pass
  • Rebased onto the target branch and resolved any conflicts
  • Reorganized commit history into clean, logical commits
  • Audited the diff to ensure only issue-relevant files are changed
  • Built PR body from the repository's PR template with evidence blocks
@rtibblesbot

🟡 Waiting for feedback

Last updated: 2026-09-14 19:41 UTC

@github-actions

github-actions Bot commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

@rtibblesbot
rtibblesbot force-pushed the issue-15071-77a470 branch 3 times, most recently from b509257 to 0c13699 Compare September 14, 2026 19:24
@rtibblesbot
rtibblesbot marked this pull request as ready for review September 14, 2026 19:24
rtibblesbot and others added 5 commits September 14, 2026 12:41
One page owns the resource layer: the methods, `request`, the composables,
and the decision list for adding an API call. The three pages that each
documented part of it are what let the docs drift out of date.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Drops the Models and Collections narrative along with the caching and
`force` guidance, which no longer describe the layer.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The Advanced Topics examples called four methods that no longer exist;
they become one statement of how an action name maps to a URL name.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The example built the loading and error state that `useList` already
returns.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The README still showed `fetchModel`; the component moved to `retrieve`.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@AlexVelezLl AlexVelezLl self-assigned this Sep 15, 2026
@AlexVelezLl

Copy link
Copy Markdown
Member

Superseded by #15285.

@rtibblesbot
rtibblesbot deleted the issue-15071-77a470 branch September 15, 2026 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update Kolibri docs for the new Resource layer

2 participants