Case study · Software

ComfortMap: a portal for care homes

We built a public directory where each care home edits its own profile (instead of static lists with outdated data), plus separate dashboards for staff, families and the administrator. When a critical session bug appeared in production, we fixed it at the root cause and verified all three roles live.

3roles with separate access: care home staff, family, administrator
1critical session bug, fixed at the root and verified live
5 aniof data retention in the audit log for sensitive actions
The ComfortMap super-admin panel: a summary of care homes, residents and updates from the last 7 days, quick actions (care home onboarding, users, GDPR audit, billing) and the list of care homes; personal data is blurred
ComfortMap
01

A public directory for care homes

ComfortMap solves a discovery problem: families looking for a care home for a parent need a place to compare real options, not just a static directory with stale public data.

Once they've chosen the care home, families want to know how their loved one is doing: a logbook, photos and weekly reports from the staff. ComfortMap covers both moments.

02

The difference from a static directory of public data

The alternatives on the market are often static directories, filled from the ministry's public data and not kept up to date by the care homes. ComfortMap is a real marketplace, with a dynamic profile edited directly by each care home: description, photos, facilities, starting price, capacity.

30 minutes, free. We'll tell you honestly if it makes sense.

03

Public SEO pages and role-based dashboards

Besides the public directory, the portal has three types of access: care home staff, families and super-admin, meaning the administrator who sees the whole platform.

  • 01Director public pages for each county and each care home, generated statically and regenerated automatically every hour (ISR): they load fast, Google can index them and the infrastructure cost is minimal.
  • 02Dashboard personal day-to-day work: residents, daily log, direct messaging with families.
  • 03Family portal daily log, photos and weekly reports, updated by staff and visible to the family.
04

From role-based structure to a bug fixed at the source

  • 01Public URL structure (/camine, /camine/[county], /camine/[county]/[profile]), statically generated and regenerated hourly (ISR, incremental static regeneration).
  • 02Three separate access levels (staff, family, super-admin), with Row Level Security: the database itself checks what data each role can see, not just the interface.
  • 03A production audit of the errors the client reported: finding the real cause, not just the symptom.
  • 04A fix at the source, plus error boundaries on every area of the app, so that an error stays in its own area and doesn't block everything.
  • 05Live verification of the complete flow for all three roles, after the fix.
05

From intermittent crashes to verified operation

The problem. After login, the session refresh failed silently, blocked by an overly strict security policy at the database level. Some users were left without working access to their account and saw only a generic crash, with no clear message.

The fix. We moved the operation to a channel with the right permissions and added error boundaries, so a similar error shows a clear message instead of a crash.

The result, verified live across all three roles: magic link sign-in (a login link received by email), access to the right dashboard, a persistent session and a working audit log for sensitive actions, in line with the requirement to keep the data for 5 years.

06

What we used

Next.js with the App Router, Supabase/Postgres with Row Level Security for role-based data isolation, magic-link authentication, an audit log for sensitive actions, hosting with ISR rendering for public pages.

07

Real maintenance means fixing the cause, not the symptom

The signal wasn't a clear error but a generic crash, the kind of vague report that's tempting to treat superficially. The diagnosis showed the problem was a security policy in the database, not the interface. The error boundaries added after the fix mean a similar error now blocks only the affected area, not the whole platform.

At the time of the audit, only one area still had simulated data (a care home's contact settings). We documented it explicitly as an open item rather than hiding it.

Need to build a portal with several types of users, or have an app that crashes without a clear message? In the free 30-minute session we look at your situation and tell you honestly whether it makes sense. You can also call us directly: +40 733 045 833. See also how we work on software personalizat.

30 minutes, free. We'll tell you honestly if it makes sense.

FAQ

Frequently asked questions

How is this different from a static directory of care homes?

ComfortMap has a dynamic profile, edited directly by each care home (description, photos, price, amenities) — not stale static public data.

What bug did you find and how did you fix it?

A post-authentication session update was failing silently because of a database security policy; we moved the operation onto a channel with the correct permissions and added error boundaries, so that a similar error would show a clear message instead of a crash.

How is data separated between the three roles?

Through Row Level Security at the database level — every role sees only the data it has the right to access, verified at the source, not just in the interface.

The Niche Society
The Niche Society TeamAI and software engineers from Bucharest · LinkedIn
delivered 2026

Let's see what can be automated in your business.

A free 30-minute session: we'll tell you what can be automated, how long it takes and what it costs, with a fixed price after discovery.

+40 733 045 833
Call: +40 733 045 833Free session