A mobile client for a journal: define the reading contract first
Feed, article, language, media and return: define the reader journey, required data and refusals before choosing a mobile stack. A neutral flow with synthetic fixtures.
A reader opens a journal on a phone, finds an article, changes its language, and returns to the list. In a mock-up, that is a handful of screens. In a product, those screens are connected by requests, refusals, missing translations, and changes to the list itself. Starting the discussion with a technology choice can leave those decisions between the design cards.
It is useful to agree on the reading journey first: what the person is trying to do, which data enables it, and what happens when that data is unavailable. This discussion comes with a neutral transition flow, a field and error checklist, and twelve synthetic situations. It is a conceptual walkthrough of documents and fixtures; no mobile application, network client, or offline synchronization has been built.
One journey instead of a catalogue of future features
The initial scenario is short: open the feed, select an article, read it, change its language or open an image if needed, and return to the previous context. The journal has one author. This scenario needs no invented author directory, editorial workspace, or mandatory reader profile.
Name the result of each transition. “Open the article” means obtaining an allowed representation of a particular item in the selected language. “Back” means returning to an understandable feed, rather than merely changing screens. “Change language” means requesting another representation of the same item while preserving its identity.
These promises can be examined before the buttons are detailed. The flow contains a successful journey and exits from it: an empty feed, an unknown request outcome, an unavailable article, and an access refusal. Each exit should leave the reader with a clear action: retry the read, return, or choose a confirmed alternative.
Navigation placement, gestures, and precise geometry remain open. They must not change the meaning of “article,” “language,” or “access.”
Identity, language, and address do different jobs
In the synthetic journal, an article has the key note-cedar. Its Ukrainian and English versions may have different titles and addresses while remaining representations of the same item. The key is stable within this journal; that is not a promise of global identity across every product.
A minimal discussion card can look like this:
{
"itemKey": "note-cedar",
"language": "en",
"heading": "The cedar path",
"webLink": "https://reading.example/en/cedar-path"
}
This is a new teaching format, not a response from the current server. It helps separate four questions: which article is selected, which language the returned text uses, what to call it, and where its public link leads.
The client does not derive the key from the title or build an address by replacing a language segment. If the title or URL changes, the selected item should remain the same. The agreed contract supplies the canonical destination.
A complete card also needs a short description, information about an optional image, and rules for missing values. Detailed reading needs the body, its content format, and the permitted media. Every field needs a reason: which reader action or decision does it support? The entire internal editorial record is unnecessary for that purpose.
The feed preserves the return context
An article list has its own language, ordering, filter, and position. Opening an article must not accidentally turn those values into global settings for the whole client. A reader may view an individual article in English and return to a Ukrainian feed.
In the proposed flow, the return context retains the list parameters and the key of the card that started the reading session. An exact scroll offset can be supplementary, but it is not the only anchor: title length, fonts, and orientation change the geometry.
If the card is still available, the return is anchored to it. If a refreshed list no longer contains it, the client shows the current feed and explains that its contents have changed. It does not promise to restore an item that is no longer there.
List continuation needs a separate definition. The client uses an opaque token supplied by the server; it does not construct the next page from the last title. A successful empty result, the end of a collection, and failure to load its next portion have different consequences. When a request fails, already received cards do not prove that no more items exist.
Refusals belong to the contract too
One screen saying “Something went wrong” conceals several situations. The discussion needs a matrix connecting an observation to a response.
| Observation | What to show | What not to assume |
|---|---|---|
| A successful response contains an empty list | An empty collection and available navigation | That the server has failed |
| No response arrives because of the network or a timeout | Uncertainty and an option to retry the read | That the article was deleted |
| The source reports temporary unavailability | A source-failure message | That the collection is empty |
| The article cannot be opened | A general unavailability message | The specific reason it is unavailable |
| The operation is not permitted | An understandable access refusal | That repeating the same permission will fix it |
404 is especially easy to misinterpret. Under HTTP Semantics, it may mean that a current representation was not found or that the server is unwilling to disclose its existence. It does not, by itself, establish that an English translation is missing.
A programmatic response needs a defined problem category. Problem Details explicitly cautions against parsing human-readable detail as a machine protocol. Message text can be localized; a client decision should not depend on finding the word “translation” in that text.
The matrix does not require the server to reveal a private reason for every refusal. It teaches the interface to work with information it is actually allowed to receive.
Translations and media have their own states
An interface language switcher with three languages does not prove that every article has three available translations. If the server explicitly reports that the selected version is unavailable and supplies permitted alternatives, the client can offer them. Without that signal, the result remains a general refusal without an invented explanation.
While a new language version loads, the previous text may stay on screen only with its language labelled correctly. The switcher cannot immediately change to English and present the old Ukrainian text beneath it as English.
Late responses also need a rule. The reader has already selected English, but an earlier Ukrainian request finishes. The “article identity + requested language” pair, together with whether the response belongs to the current request, must determine whether it can be accepted. Packet arrival order is not the reader’s choice.
For an image, distinguish three cases: none was intended, downloading it failed, or confirmation arrived that displaying it is no longer allowed. The first needs no alarming error. The second may leave the text readable with an explanation. The third must not substitute an old local copy as current content.
A meaningful image needs a text alternative serving its purpose, as explained in W3C’s guidance on non-text content. A placeholder labelled “Photo” does not replace a diagram’s meaning. This requirement still needs checking in a real interface.
Reading does not grant permission to change things
A mobile screen does not become an editorial channel simply because it can reach an API. The server separately decides whether the operation and the particular resource are allowed. OWASP describes object-level authorization as a necessary boundary for requests carrying identifiers.
The flow includes no publishing, editing, or deletion commands. A hidden button would not be sufficient protection: the client interface does not determine server permissions. A public link is not permission to perform every action on the article either.
Reader sign-in is a separate product question. Is it needed for reading itself, for synchronizing bookmarks, or not at all? An API refusal should not automatically create a registration screen before the access model has been defined. Likewise, permission to read does not grant access to internal fields.
Walk through the flow and record what remains open
For this article, twelve situations were examined as a static walkthrough: each has inputs, a possible observation, an expected screen state, and a next permitted action. They include an empty feed, two different loading failures, a language refusal, a late response, media changes, and two return paths.
This walkthrough makes the basis of a decision explicit. A general refusal does not establish that a translation is missing; an old list anchor does not guarantee restoration; local text does not become current after an article is withdrawn. These rules are recorded in fixtures, but a client program has not executed them.
The open decisions remain visible:
| Decision | What needs defining |
|---|---|
| Offline reading | What to retain, how to check freshness, and how to respond to withdrawal |
| Bookmarks | Local only or synchronized; whether an account is needed |
| Push | Reader benefit, relevant events, and separate consent |
| Sign-in | Which action requires identification and who grants access |
| Body rendering | Which text structures, code, tables, and media the client supports |
A short synthetic text fixture does not establish support for arbitrary HTML. Nor does a drawn “no network” state implement caching or synchronization.
What the first implementation should demonstrate
Accept the first increment against the complete journey: obtain an allowed feed, open the right article and language, handle the defined refusals, and return to an understandable context. Verification must also cover orientation changes, long titles, focus management, and reading with assistive technologies—on the actual implementation.
There are concrete inputs to the eventual technology choice: content composition, the access model, retention needs, target devices, and delivery method. The flow and contract make those topics specific enough to discuss. Technology can then serve a defined reading experience, while unresolved questions enter the work plan without hidden promises of a finished application.