Leases Ironwood
v1.0A minimal SaaS app for a small property manager: units, leases, rent, maintenance and tenants across nine buildings, in warm greys with one copper accent.
Pagina-adres: /
Ingebouwd
Wat je krijgt- Licht en donkerGebruikt de kleuren van je thema
- Desktop, tablet en telefoonDe schermen waarvoor het is gebouwd
- Pakketten…
- Codegrootte…
- Zuinig voor de batterij30 fps, rust als er niets beweegt
- Pauzeert als het verborgen isBuiten beeld of ander tabblad
- Minder bewegingRustig voor wie erom vraagt
Bij elke wijziging gecheckt
Beveiliging gecheckt op 3 dec- TypecheckTypeScript strict
- Lint en opmaakESLint · Prettier
- Tests en buildScreenshots in licht en donker
- BeveiligingsauditGeen hoge of kritieke advisories
- Leeftijd van pakkettenElke versie al 7+ dagen openbaar
- CPU in rustOnder een halve core in rust, ≤ 30 fps
Code
leases-ironwoodReact
- leases-ironwood.tsxThe page: the sections in order.
- content.tsEvery word and number: brand, nav links, each section's copy and lists.
- theme.tsThe colors as CSS variables, and the shared class strings.
- README.mdHow to install it, and where to change the text, colors and form.
- pagesOne file per page: the sections it shows, in order.
- leases.tsxLeases: every lease with its unit, tenant, how far through its term it is, rent and deposit, in tabs (active, ending within 60 days, on notice, past) kept in the address; a row opens the lease's sheet to renew, give notice or end it.
- maintenance.tsxMaintenance: the open requests in three groups (new, scheduled, in progress), urgent first, each with its next step as a word (Schedule, Start, Done); finished ones stay below. New requests come in live and wash in at the top. Beside them: the vendors and what they have open, and requests by kind.
- overview.tsxThe overview: a greeting with the day's load, the KPI strip (occupancy, collected, late, open requests), the month's collection and the late rent list beside occupancy by building and the live feed.
- rent.tsxRent: the month's collection and how it came in, then tabs for the late list (Record on each row), every charge (waive or restore) and every payment (delete a wrong one); post late fees, record a payment or export the tab as CSV.
- reports.tsxReports: occupancy and rent collected month by month over 6 or 12 months (kept in the address), days to fill a vacant unit, and the rent roll by building with what is still owed; export the months as CSV.
- settings.tsxSettings: tabs for the buildings, the fees and the appearance (theme and language), kept in the address.
- sign-in.tsxThe sign-in page (#/sign-in): the logo and the form on one card, with the portfolio it opens under it, without the sidebar and top bar.
- tenants.tsxTenants: everyone with their unit, email, phone and balance, filtered by current, owing or past and found by name, email or unit (kept in the address); a row opens the tenant's sheet.
- units.tsxUnits: every unit with its status, building, size, tenant, rent and balance, filtered by status and building and found by code or tenant (all kept in the address, so Back returns to the same view). Tick units to change their status or rent together, or delete empty ones; a row opens the unit's sheet.
- sectionsOne file per page section.
- account-menu.tsxThe account menu under the avatar in the top bar: who is signed in, Settings and Sign out; the arrow keys move through it, Escape, Tab or a click outside closes it.
- appearance.tsxSettings → Appearance: the theme (System, Dark or Light), each choice shown as a small preview, and the language (System or one of locales/list.ts).
- bottom-tabs.tsxThe phone's tab bar: the four pages used most, and More for the rest (the sidebar in a sheet). It sticks to the bottom of the screen under the page.
- bulk-bar.tsxThe bulk bar: while rows are ticked it rises at the bottom of the screen with how many and what can be done to them all; Clear unticks them.
- collection.tsxThe month's collection: what came in of what was billed, a bar that fills as payments are recorded, what is still out (partial, clearing, unpaid), and the share collected in each of the last six months, this one in the primary.
- kpi-strip.tsxThe KPI strip: four numbers in one bordered box, each with its line under it and a sparkline or a progress bar; a changed number rolls to its new value and a bar fills to its new share.
- late-list.tsxThe late rent list: who owes, for which unit, how many days late and how much, with Record on each row. Recording a payment glides the row down into Paid today, where a line strikes it out; an autopay still clearing shows as Clearing instead of Record.
- lease-form.tsxThe lease form in a dialog: a new lease (?new=lease, + New lease; ?for=AC-305 starts on that unit) on a vacant or on-notice unit for a tenant you have or a new one, or an edit (?edit=lease:L-2014) of its rent, deposit, end and pet.
- lease-sheet.tsxA lease in the side sheet (?lease=L-2014): its tenant and unit, how far through the term, rent, deposit and balance, then Renew (a new term at a new rent, set in place), Give notice or withdraw it, End, Edit and Delete (only a past lease), with tabs for the ledger and every term with this tenant.
- live-feed.tsxThe live feed: what happened, newest first, on two lines — who did what, then the detail and how long ago. A new event (a request coming in, an autopay clearing, your payment) slides in at the top with a short wash.
- occupancy-bars.tsxOccupancy by building: one rounded bar each, lived-in units in the primary and units on notice in a lighter step of it, with the count and share at the end. A building links to its units.
- payment-dialog.tsxRecord a payment in a dialog (?pay=L-2014 for one lease, ?pay=any to pick a late one; ⌘K Record payment): the amount starts at what is owed. Saving fills the month's collection bar and moves a paid-up late row to Paid today, struck out.
- request-form.tsxThe request form in a dialog: a new maintenance request (?new=request; ?for=AC-204 starts on that unit) or an edit (?edit=request:M-386) of its unit, what is wrong, kind, priority and note.
- request-sheet.tsxA maintenance request in the side sheet (?request=M-386): where and who, its status as four steps to pick (New, Scheduled, In progress, Done), its priority, the vendor sent and when, the note; Edit and Delete.
- settings-buildings.tsxSettings → Buildings: the nine buildings with their code, address, manager and unit count; Edit opens a row in place, Delete is refused while a building has units, and Add building adds one at the end.
- settings-fees.tsxSettings → Fees: the late fee and its grace days, the returned-payment fee, pet rent, and whether late fees post on their own once the grace days pass.
- sheet-parts.tsxWhat the detail sheets share: the head (a code, the title, a status, the actions), the row of four numbers, and a lease's ledger of charges and payments with the balance after each.
- sidebar.tsxThe sidebar: the workspace, search with the ⌘K shortcut, the pages in two groups with their counts (late rent in the warning tone) and a pill that glides to the current one, Settings, and the live strap with its pause.
- sign-in-form.tsxThe sign-in form: email and password with their errors under them, show or hide the password, keep me signed in, and the demo account to fill in; a wrong pair says so above the fields.
- tenant-form.tsxThe tenant form in a dialog: a new tenant (?new=tenant) or an edit (?edit=tenant:t-104) of their name, email, phone and note.
- tenant-sheet.tsxA tenant in the side sheet (?tenant=t-104): their contact (email and phone as links), unit, balance and since when, then tabs for their ledger, leases and requests; Edit and Delete (refused while they have an active lease).
- top-bar.tsxThe top bar: the menu button on narrow screens, where you are, the live dot, search, the theme switch, + New lease and the account menu. It frosts only once the page scrolls under it.
- unit-form.tsxThe unit form in a dialog: a new unit (?new=unit, it starts vacant) or an edit (?edit=unit:AC-204) of its building, number, size, rent and status.
- unit-sheet.tsxA unit in the side sheet (?unit=AC-204): its status, rent, size and balance, then tabs for the current lease, its ledger, its maintenance and the leases before. Edit, Delete (only an empty unit), New lease on a vacant one, Record payment when it owes.
- partsWhat several sections share.
- buildWhat several sections share.
- cardsWhat several sections share.
- wipe.tsThe wipe card style: each card uncovers from its bottom edge.
- rowsWhat several sections share.
- stack.tsThe stack row motion, a drawer: the rows on screen start stacked under the first and spread to their places together.
- core.tsxThe page's build-in: on first load and on every page switch the cards arrive in the app's card style and their contents build: bars grow, lines draw, rings fill, the list rows on screen ripple in in the app's row motion, numbers count. The two picks are wired in ./index.ts.
- index.tsThe app's two build-in picks, wired here and nowhere else: its card style (cards/) and its row motion (rows/). npm run new-app copies only the two it is given (--cards, --rows).
- appearance.tsHow the app looks right now: dark or light, Glass or Solid, from Settings → Appearance, the page around it and the Style setting.
- avatar.tsxA person's initials in a round badge, tinted with the primary.
- backdrop.tsxThe Glass style's backdrop: what shows through the see-through panels, faded out in Solid; with followBackground it paints your background instead.
- bar-chart.tsxA bar chart of rounded bars: the past in a muted shade, the current one in the primary with its value over it; pointing at a bar shows its value. Bars grow in with the page and glide to new heights when the data changes.
- command-palette.tsxThe command palette (⌘K or Ctrl K): type to find a page, an action, a unit, a tenant, or a late tenant to record a payment for, then Enter.
- csv.tsExport CSV: turns rows into a CSV file and hands it to the browser to save.
- dialog.tsxA centered modal dialog (a form, a confirm): rises in, plays its way out, Escape or a tap outside closes it, and the focus goes back where it was.
- field.tsxA labeled form field (a text input or a select) with its error line under it, tied together for screen readers.
- flip.tsFLIP for a list that re-sorts, filters or moves rows between groups: after each change every row that stayed glides from where it was to where it is now. Rows carry data-flip="<id>"; positions are measured inside the list, so a page scroll never reads as a move.
- format.tsHow numbers and dates are written: by Intl, the current language's way ("1,240", "1.240"; "Nov 19", "19 nov."). Add a helper here when a page needs money, times or a list.
- glyphs.tsxThe small marks rows carry: a unit's status (an empty ring vacant, a half ring on notice, a filled dot occupied), a request's priority (one to three bars, urgent a filled square) and its status (a ring filling as it moves to done).
- icons.tsxThe logo and the line icons, drawn on a 24-unit grid with round ends.
- language.tsThe app's language: the words every page reads (useWords), how dates and numbers are written (parts/format.ts) and the reading direction. Picked in Settings → Appearance (or System: the page's own language) and kept in this browser; English is built in, any other language loads only when it shows (locales/list.ts).
- line-chart.tsxA line chart with a soft area under it, in the primary: the line draws itself in, the latest point marked, and new values roll the line to its new shape.
- live-clock.tsxOne shared clock for everything live: it ticks only while something on screen listens, the tab is visible and live isn't paused, and the bare button that pauses it. What a tick does (move the demo's time, bring in an event, reload) is the app's, passed to liveClock.
- live.tsThe app's one live clock: every 25 seconds a maintenance request comes in, now and then the bank clears an autopay, and every page reloads in place. It rests while nothing live is on screen, the tab is hidden or live is paused.
- moments.tsThe animations the sidebar, the sign-in card, menus, dialogs, the phone sheet and toasts play, timed by their moments in theme.ts.
- motion.tsMotion helpers: the reduced-motion check, live.
- overlays.tsxEverything that opens over the page from the address: a unit, lease, tenant or request in the side sheet, and the dialogs (record a payment, new or edit a lease, unit, tenant or request). Any page can open one by adding its query (?unit=AC-204, ?pay=L-2014).
- page-head.tsxA page's head: its title and one line under it, the page's actions at the end, and under them the tabs or filters as links (?tab=, ?status=) whose pill glides to the current one, so Back returns to the same view.
- read.tsOne read of the fake API by its key, through useApi: useRead("overview"), useRead<"unit">(`unit:${id}`). Each key keeps one load function, so a page that mounts again finds its answer.
- router.tsThe page switcher: reads the app's page from the address hash (#/settings, #/?status=open).
- scroll-to-view.tsScrolls an element into view moving only its own scroll container, never the page around it.
- select-box.tsxA native select dressed to match the app: no browser arrow, a drawn chevron instead.
- session.tsWhether someone is signed in: a first visit is signed in as the demo account; Sign out holds until the next sign-in, and a sign-in without Keep me signed in lasts only this tab.
- sheet.tsxThe phone sheet: a modal panel that springs in from the left with the sidebar; Escape, a tap outside or its close button slides it away.
- side-sheet.tsxThe detail sheet: a modal panel that slides in from the end edge over the page (a unit, a lease, a tenant, a request), with tabs whose underline glides to the one picked. Escape, a tap outside or its close button slides it away; the address keeps what it shows (?unit=AC-204&dtab=ledger).
- states.tsxThe data states every page shares: a calm skeleton while loading, an error with Try again, and an empty note with a way out.
- store.tsThe app-wide state several parts share: the theme mode and style (kept in the browser) and the toasts.
- ticker.tsxA number that counts up while its page builds in, and rolls to its new value whenever it changes.
- toasts.tsxThe toasts: short notes that confirm what just happened, at the bottom end.
- use-api.tsLoads data through the fake API with loading, error and retry, remembering each answer so a page you come back to shows at once.
- use-dialog.tsOpens and closes a native <dialog> as a modal; on close it plays its way out first (data-closing), so dialogs, sheets and the palette never vanish in one frame.
- dataThe pretend data and the fake API: swap it for your backend.
- account.tsThe demo account: who is signed in (the account menu shows them) and the email and password the sign-in page takes.
- api.tsThe fake API: every page loads and saves through these functions, so wiring a real backend happens here only.
- db.tsThe pretend database every read and save goes through (data/api.ts): the seeds copied once, and each change a real backend would make (a payment recorded, a lease renewed, a request done) with its line in the live feed.
- live.tsThe live demo: the building working while you watch. Each call is one thing that happens (a tenant sends in a maintenance request, the bank clears an autopay) through the same database the pages read. Wire your backend's events here instead.
- now.tsThe demo's "now": today at 10:40 plus the real time since the app loaded, so today is busy at any hour; every seeded date is set from it. Wire your backend and use the real time.
- seed-money.tsThe pretend rent ledger for the rent month: a rent charge on the 1st for every active lease (plus pet rent and water where they apply), the payments that came in (autopay on the 1st, the rest over the next days), the 11 leases still late with their late fees, and the last 11 months' totals for the charts.
- seed-people.tsThe pretend tenants and their leases: one active lease for each of the 132 lived-in units (12-month terms started on the 1st), plus the ended leases of the people who moved out of the vacant ones.
- seed-places.tsThe pretend portfolio: 9 buildings with 140 apartments between them, the team of three and the vendors they call. Unit codes are the building's two letters and the door number (AC-204).
- seed-requests.tsThe pretend maintenance log (14 open requests and the last two months' finished ones), the requests that come in live while you watch (data/live.ts), and the feed's last few hours.
- types.tsThe shapes the fake API answers with: buildings and units, tenants and leases, rent charges and payments, maintenance requests and vendors, the live feed and the fee settings. A real backend returns the same shapes.
- views.tsThe reads: each page's answer built from the pretend database (data/db.ts), in the shapes the pages draw. A real backend answers the same shapes from its own queries.
- localesEvery word the app shows, one JSON file a language; list.ts names them.
- en.jsonOne language's words, with the keys of en.json.
- es.jsonOne language's words, with the keys of en.json.
- list.tsThe languages the app offers, in the picker's order: one JSON file each, en.json the source. To remove one, delete its file and its line; to add one, copy es.json, translate it and add a line. English is built in; the rest load only when picked. TypeScript checks each file has en.json's keys, scripts/check/check-locales.mjs the rest (no extra keys, plural forms, {slots}).
leases-ironwood.tsx
The page: the sections in order.
Laden…
- Goed voor
- Property managers and small teams who run a few buildings and want rent, leases and repairs in one calm app.
- Hoe het werkt
- Record a payment: the month's collection bar fills, the late row strikes out into Paid today, and new repair requests arrive live.
- Hoe je het gebruikt
- Edit words in content.ts and colors in theme.ts, and swap the bodies in data/api.ts for calls to your backend.