← The Post

Practical articles

How I plan media lifecycles and role-based marketplace journeys

A recommended model for listings, applications, private documents, media replacement and controlled deletion.

Stefan Rampersad · Principal Strategist, PHNYXPRO · 4 min read ·

Project:
Pawsitively Life
Historical period:
March 2026

Retrospective written 25 November 2026

Map the listing journey and the file lifecycle together before choosing a gallery layout. My recommended approach uses Pawsitively Life's owners, adopters, shelters, applications and health-document uploads as the example. The March work also raised image and video storage questions and described associated-media removal on listing changes. Those descriptions leave cleanup execution and testing unconfirmed. The plan below therefore specifies how I would organise and accept that behaviour, with each responsibility made explicit, instead of treating the disappearance of a listing card as proof that every related record and file has been handled.

Separate the records and their audiences

Define an account, a role membership, a pet, a listing and an application as separate records. Connect the listing to its pet and responsible owner or shelter. Connect each application to an applicant and a particular listing, preserving the listing version relevant to the application. Store favourites as lightweight account-to-listing relationships. They should never grant access to applications or private messages. Assign a shelter administrator to maintain the organisation's memberships, and specify how ownership transfers are reviewed before changing who can edit an animal's public information.

Create a permission matrix for viewing, editing, applying, responding and withdrawing. OWASP recommends least privilege for authorised actions. Use that principle to limit an adopter to their own applications and a shelter worker to the listings and conversations assigned within their organisation. Check permissions when a request reaches the backend, including file access. A useful acceptance case is an applicant replacing the identifier in a document request with another applicant's identifier. Access should fail without revealing the other person's document or application details. [OWASP guidance on least privilege for authorised actions]

Give every file a lifecycle

Model media with a stable identifier, storage location, media type, uploader, purpose, owning record and lifecycle state. Distinguish a public pet photograph from a private health document at the model level. Record upload time and processing state so a partly completed upload cannot appear as a finished attachment. Choose limits for file types and sizes, and assign operational responsibility for reviewing failed processing. The listing editor should receive a clear failure message and retain its other changes when an image upload fails, rather than silently publishing an empty gallery.

For a concrete replacement sequence, upload the new photograph into a pending state, validate it, then attach it to the intended listing version. Only after that association succeeds should the old photograph become eligible for retirement. If the update fails, the existing photograph should remain usable and the pending upload should be identifiable for later cleanup. Test a cancelled upload, an interrupted connection and two edits submitted close together. Acceptance means the active listing retains the intended image order and no pending file is mistaken for a public attachment.

Treat withdrawal and deletion as different decisions. Withdrawal can stop new applications while retaining information needed for existing conversations. Define the retention purpose for application records and private documents before deciding when deletion is appropriate. Keep deletion work in a durable queue with the owning record and reason; make repeated processing harmless. Assign a responsible operator to inspect failures and reconcile file records with storage. Test a failed deletion attempt and a retry, checking both the public listing and the underlying file association. Document any intentionally retained records so maintenance does not become guesswork.

Design the human handover

Specify the application states with the shelter team: draft, submitted, clarification requested, withdrawn and decided are possible starting points for review. Each transition needs an actor, time and reason where appropriate. Show an adopter what action remains available after submission and where a response will appear. A recommended acceptance exercise is a shelter requesting clarification, the applicant replying, and the same application retaining that exchange after refresh. Messages should stay connected to the correct participants and listing context even if the public listing later becomes unavailable.

Define what page views mean before presenting them as useful information. Decide whether the measure concerns a page load, a unique visit or another deliberately chosen event; label it accordingly and review privacy implications. Keep that measure separate from applications and decisions. For the PWA journey, test returning to a favourite after a listing changes and recovering from an interrupted submission. The person should see the current availability when connected, understand any unsent work and avoid accidentally creating duplicate applications through repeated attempts.

Close the implementation review with a responsibility table: shelter staff own listing accuracy and application decisions, applicants own their submissions, and the platform team owns access enforcement and storage reconciliation. Review one complete journey with each role and keep the failed cases alongside the successful example. Release readiness should mean that people understand what happens to their information, operators can resolve unfinished work and the file lifecycle matches the record lifecycle. That agreement gives the marketplace a maintainable foundation for the caring experience its public design invites.

References

  1. OWASP: access decisions and least privilege
  2. MDN: offline and background operation for progressive web apps
  3. W3C: form instructions and error recovery

Stefan Rampersad

Stefan leads PHNYXPRO, writing about brand storytelling, strategy and the business of creative work in the Caribbean and beyond.

Keep reading The Post

More from The Post