| Metadata | Value |
|---|---|
| Status | Active |
| Version | 1.0.0 |
| Last Updated | 2026-11-02 |
| Author | Sangeetha Grantha Team |
| Document Type | Current guide |
Mobile Preview is a read-only replica of the Rasika mobile app inside the Curator Console. It lets a curator see, right after an edit, how a krithi will look on mobile and what a rasika will find when they search. It never changes data.
/mobile-preview). ?krithi=<id> opens it on one krithi.The preview refreshes after a save in the editor, when the window regains focus, and on Refresh preview. A finished search is not re-run automatically, because that can cost an embedding; it shows “Edits saved since this search. Run it again” instead.
| Mobile screen | Preview |
|---|---|
| Home, Explore (Krithis, Ragas, Composers), Browse facets | Same data, same ordering |
| Krithi reader: Lyrics and Details, script and source choices, section labels, Varnam caption, ragas bound to a section, ragamalika membership, cycle context | Same rules, ported from SectionLabels, TamilNotation and the presenters |
| Raga, composer, collection and kshetra screens | Same DTOs |
| Favourites, bookmarks, device text size, system appearance | Not replicated: on-device. Appearance and text size are preview-local toggles saved in this browser only |
Krithis that are not published are visible in the preview and carry a Not published banner; mobile users cannot see them.
Search runs the same code the mobile app calls (RasikaSearchService). Modes are All matches (hybrid, default), Related meanings (semantic) and Titles & lyrics (lexical), behind Search options. Searches run only on submit. The result order is mobile’s: the exact-title krithi first, then up to three collection and kshetra cards, then the other krithis.
Curator additions:
Titles & lyrics reads the live catalogue tables and is current immediately. All matches and Related meanings read search_documents and document_embeddings, which only the Python worker writes (embed_catalogue.py; see embeddings). A saved edit is therefore searchable by meaning only after the worker has re-indexed it.
The status check compares timestamps. It can say “out of date” after an edit that did not change the indexed text, and it cannot see a raga or composer rename. It is worded “may be out of date” for that reason.
AUDIT_LOG rows), and are not recorded in the mobile usage log.| Topic | Mobile | Elsewhere in the console |
|---|---|---|
| Krithi visibility | Published only | The krithi list and admin search show every workflow state |
| Search endpoint | POST /v2/catalogue/search/* with cards and exact-title ordering |
The list’s Hybrid and Semantic use POST /v1/search/*: no cards, no exact-title ordering |
| Filters on discovery | Raga and composer apply to Titles & lyrics only | The list sends them to Hybrid and Semantic as well |
| Titles & lyrics | Matches titles, incipits, composers, ragas and stored lyrics in any script (TRACK-159 fixed finding D7) | Admin search has a separate lyric parameter |
| Raga picker | Search box and “Load more”, so every raga can be chosen (TRACK-159 fixed finding D8) | Full reference data |
Findings D7 (Titles & lyrics did not search lyrics) and D8 (the raga picker reached 30 of 1,014 ragas) were confirmed against the dev catalogue and fixed in both the app and the preview by TRACK-159.
Read-only, admin role required. All sit outside /v1/catalogue and /v2/catalogue.
| Route | Purpose |
|---|---|
GET /v1/admin/preview/catalogue/* |
The V2 reads with draft and in-review krithis visible |
GET /v1/admin/preview/mobile/* |
The unchanged published-only reads, identical to /v2/catalogue/* |
POST /v1/admin/preview/search/{hybrid,semantic} |
The V2 search wrapped with an explanation and the unpublished ids |
GET /v1/admin/preview/krithis/{id}/index-status |
Index freshness for one krithi |
See the OpenAPI document and catalogue search.
The TypeScript port is guarded two ways. Golden files under modules/frontend/sangita-admin-web/src/components/mobile-preview/fixtures/ are read by both Vitest and the Kotlin test PreviewGoldenFixturesTest; and mobilePreviewDtoDrift.test.ts compares every mirrored TypeScript DTO with its Kotlin data class. Server results are checked by integration tests that compare the preview with the V2 responses.
Source: TRACK-158.