06 · Development · Pages without install
The spot-count link went out; what opened was half a table
The H5 engineer lets a temporarily opened page finish spot count, sign-off, and confirm in a phone browser, without first installing an app. A query task that lasts half an hour should go back to native or the back office.
H5 fits a short task. It does not move the back office into the browser
Driver sign-off, store spot count, customer quote confirm: these people will not install an app for one action. The H5 engineer builds a short task inside one link. The job’s mark is honesty about the open environment: WeChat in-app browser, the phone’s own browser, different widths, and the back key dropping the form. He must guarantee refresh and back do not create a second count document, and do not clear filled qty without telling the person.
The link itself is permission. An unguessable URL, an expiry, an open count, or a bound phone number: at least one constraint. Sending a link with all warehouse data into a group is an export. The scope required by security architecture still applies on H5. It cannot be skipped because “it is only a page.” An expired link must say it has expired, and must not show last count qty. The expired page does not offer “continue editing.”
The page must be tested in real WeChat
Desktop browser phone mode cannot see WeChat’s back, font zoom, and safe area. Done for the H5 engineer includes walking the target environment: open, fill, submit, open again and see the same result. The submit button disables during the request. The success page gives a document number. Failure can retry. Image upload must limit size, so a store photo on a weak network does not stall the whole sign-off.
Half a table on the spot-count link
The area manager sent the spot-count link to the store-manager group. On some phones the table overflowed the screen, the qty box was covered by the keyboard, and the store manager submitted empty rows. Someone used the back key to return to the fill page and submitted again, creating a second count. The H5 engineer changed the task to one item per screen: location, book qty, actual qty. After submit, the same link cannot create a new document. Open again is read-only and shows the document number. Empty qty cannot submit. He walked it in WeChat on three common phones, not only looking at width on the development machine.
If the action is complex enough to need a continuous half hour and heavy query, he will recommend native or the back office, and will not make H5 a broken system. When the link is forwarded to another group, if there is no bound phone, the H5 engineer would rather require verification again than show count qty to a passer-by. Failed verification does not create a new document. He tried a phone not on the list and saw cannot view, not someone else’s actual qty. When forwarded to WeChat on a computer, the task must still open on a phone. Buttons must not shrink to fit a desktop. This page was never meant for a desk.
If the store manager takes a call mid-task and returns, filled actual qty must still be there. The H5 engineer stores the draft on the server, not only in this tab. If the phone kills the process and the same link is opened, what shows is the draft, not an empty table, and not a new count document. An empty table makes people refill. A new document puts two actuals on the same location.
He also looks once at the numeric keyboard, enlarged font, and landscape. If after font zoom the primary button is squeezed off-screen, submit never happens, but the store manager thinks it did. The button must follow the current item, not sit in a place the keyboard will push away and hide.
One task, one document number, is the boundary an H5 page can deliver. After open count is used up, it only says the limit is reached. It does not show last actual qty. The limit page also does not offer continue editing.