Jewelry AI - Get more photos screen
A restore that reports success has only reported that the call did not fail
Tapping Restore on the Get more photos screen runs the store provider's restore call, waits for it, and then refreshes your photo balance from the server. Unlike a purchase, nothing in that sequence checks whether your balance changed, so the message you get back describes the call rather than the outcome.
What the button runs, in order
Restore is wired to two operations that happen one after the other. The screen calls the store provider's restore and awaits it; when that call returns, it refreshes your photo balance from the server. Both are visible in apps/jewelry-mobile/src/app/store/index.tsx, where the awaited restore call is followed by the refresh.
A purchase is treated differently. It is confirmed against the change in your balance before the screen reports anything back to you. The restore path carries no equivalent check: at no point does it compare the balance as it stood before the call with the balance as it stands after.
What follows is narrow but exact. If the call comes back without an error, the success message is shown. The message describes the call. It does not describe your account, and it was not derived from your account.
When the button is unpressable
The Restore button does not depend on the screen's plans or packs. It closes for one reason only.
- The button is disabled while a purchase or a restore is running.
- The disabled condition on the control in apps/jewelry-mobile/src/app/store/index.tsx reads `busy`. It keeps two store operations from overlapping, and it reopens as soon as the running one ends.
- A screen without offers can still restore.
- When plans cannot be loaded, the screen's own message says: "Please try again later. You can still restore earlier purchases."
- The button is greyed out only for the moment the work lasts.
- A closed button is therefore a statement about something running right now, not about your account or your purchase history.
- Why the offers failed to load is a separate question.
- It has its own cause, it belongs to another page, and it is not re-derived here.
Reading your own screen after a restore
The flow gives you two things to read. This is how they relate to each other.
| Situation | Choose | Why |
|---|---|---|
| The message reported success and the photo counter differs from the one you noted. | Treat the screen reading as the outcome. | The balance is re-read from the server after the call, so the value on the screen is a fresh server reading, while the message only reports that the call did not error. |
| The message reported success and the photo counter is unchanged. | Do not read the two as a contradiction. | The message was produced by a call that returned without an error. It was never a claim that a balance had moved. |
| The Restore button cannot be tapped. | Wait for the running purchase or restore to finish before drawing any conclusion. | The control is disabled while a purchase or a restore is running, which means this restore never started and nothing about the account has been tested. |
| You want to know what the store returned for a particular kind of product. | Treat that as outside this page. | What was verified is the call our screen makes and the refresh that follows it, not the store provider's own behaviour. |
The flow, stage by stage
Each stage runs something, and each stage checks less than the stage after it appears to promise.
| Stage | What happens | What is checked |
|---|---|---|
| Button state | The control is enabled unless a purchase or a restore is running | Whether something is already running, before anything starts |
| Restore call | The store provider's restore runs and the screen waits for it | Whether the call returned an error |
| Balance refresh | The photo balance is re-read from the server | Nothing is compared against the earlier reading |
| Message | A success message is shown | Nothing beyond the absence of an error |
Before you conclude that nothing came back
Four checks that keep the message, the screen and your account apart from one another.
- Confirm the Restore button was actually pressable at the moment you tapped it.
- Note the photo counter before the tap; the refresh afterwards is only useful against a prior reading.
- Read the message as a statement about the call, not about your account.
- Compare the two balance readings rather than comparing two messages.
What this page does not settle
The behaviour above was read from one screen in the app. Everything below sits outside it.
- What the store provider itself returns, and how it treats different kinds of product. That is internal store behaviour and was not part of what was verified.
- How, in what order, or how quickly photos are added on the server after a payment. Only the client's waiting and display behaviour was examined.
- Why offers failed to load. That has its own cause and belongs to another page.
- What a purchase that cancels or fails does. That flow is examined separately.
- The behaviour of the Usage history screen, which was not part of this examination.
- Anything about prices, amounts, plans or currency. None of that is in scope on this page.
Frequently asked questions
Does Restore give back photos?
What was verified is that the button runs the store provider's restore call and then re-reads your photo balance from the server. Whether anything returns is not confirmed by the flow and is not something this page can state. The success message only reports that the call did not error.
The Restore button is greyed out. Is something wrong with my account?
The control is disabled while a purchase or a restore is running, so a greyed-out button is about that work rather than about your account. Until it reopens, nothing has been tested.
It said the restore worked, but nothing on the screen changed. Did it fail?
The message is shown when the call returns without an error, so an unchanged screen does not contradict it. The photo counter, read before and after, is the comparison that carries information.
I am setting up a new phone. What does running a restore tell me?
It tells you that the call ran and did not error, and it leaves you with a photo balance freshly read from the server. It does not tell you what the store returned, which is outside the surface this page was written from.