Skip to content

Case study · Real Estate

listd.ph

Helps people explore Philippine properties through search filters and an interactive map. Buyers can contact listing owners and share photos or documents within conversations, while sellers and agents can review AI-assisted price estimates. This connects property discovery with the information needed for further discussions.

As part of a team, I improved property search and map navigation and implemented messaging attachments across the frontend and Express backend. I also contributed fallback handling and result-source tracking to the AI-assisted valuation workflow.

Year
2025
Category
Real Estate
Status
Live
listd.ph project preview
listd.ph · Project preview

The challenges

Property discovery leads into conversations with listing owners, where buyers may need to send photos or documents alongside their questions. The application needed to handle location selections, attachment messages, and incomplete valuation responses while making loading and sending failures visible.

Architecture

The attachment workflow connects a Next.js conversation interface to the Express messaging API. The frontend uses an existing upload helper before submitting attachment metadata, and PostgreSQL stores that metadata with the message.

From selected files to a saved message
  1. Next.js conversation

    Creates a temporary message with local attachment previews while the send request is in progress.

  2. Upload and submit

    Uploads the selected files through an existing helper, then sends their URLs, names, sizes, and types with the optional message text.

  3. Express + PostgreSQL

    Validates that text or attachments are present and saves the message with its attachment metadata in a JSONB array.

What I built

As part of the team, I extended property search to carry region selections from the location input into the page’s geographic query, alongside city, barangay, and province. I also corrected map-card links for property types containing spaces and added a fallback screen when listing details cannot be loaded.

I implemented attachment sending for both new and existing conversations. The frontend uploads selected files through an existing helper and submits their metadata with the message. For a new conversation, the flow creates the conversation before sending its first message. Temporary messages show the text and attachment previews immediately while the request is pending.

I added message components that display image previews, an image count, and links for other attached files. Pending messages have a distinct visual state, and failed sends show an explicit error. The attachment metadata includes file names, letting recipients identify linked documents within the conversation.

On the Express backend, I changed the message model from individual file fields to a JSONB array of attachments in PostgreSQL. I updated the service and validation to accept messages containing text, files, or both. Attachment-only messages no longer need placeholder text, while a request with neither text nor an attachment is rejected.

I also contributed to the existing AI-assisted valuation workflow. I added checks for zero estimates, low-confidence responses, configured low-value thresholds, and missing prices before accepting a result. I connected those conditions to the existing fallback flow and added metadata distinguishing AI-generated, database-fallback, and limited-data results, including fallback reasons and comparable-property counts where available.

Further reading

Educational articles about related concepts. Their examples do not establish work completed on this project.

View all projects

Have a project in mind?

Contact Me