This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Privacy Policy — Macro Notes | |
| **Last updated: 16 August 2026** | |
| Macro Notes is a food diary for iPhone, developed by Warren Day ("we", "us"). This policy | |
| explains exactly what the app collects, what leaves your phone, who else touches it, and what | |
| you can do about it. | |
| Contact: **warren@overstacked.io** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # CLAUDE.md | |
| Trailmark — an iOS app for logging hikes, backed by a Node.js REST API. | |
| - `ios/` — SwiftUI app, iOS 17+, native components only | |
| - `api/` — Node 22, TypeScript, Express, Postgres 16 (Kysely) | |
| - `packages/contracts/` — zod schemas + generated OpenAPI. Single source of truth for both sides. Change the contract first, then the server, then the client. | |
| Nested rules live in `api/CLAUDE.md` and `ios/CLAUDE.md`. Longer workflows (release, migration, security review) are skills in `.claude/skills/` — do not paste them here. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function positionalProp< | |
| N extends string, F extends boolean | string | number | |
| >(name: N, fallback?: F): ( | |
| F extends false ? | |
| string | number | false | |
| : F extends string ? string : number | |
| ) | |
| const x = positionalProp('foo', false) // string | number | false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "Print to console": { | |
| "prefix": "rtc", | |
| "body": [ | |
| "import React from 'react'", | |
| "", | |
| "interface I$1Props {", | |
| "", | |
| "}", | |
| "", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class LinkedList { | |
| head = null | |
| tail = null; | |
| insert(data) { | |
| const newNode = { data }; | |
| if (!this.head) { | |
| this.head = newNode | |
| } else { | |
| this.tail.next = newNode; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export const getIsQueryOrMutation = (queryString: string) => { | |
| return queryString.replace(/\s/g, '').startsWith('query') | |
| ? 'query' | |
| : 'mutate'; | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { ApolloServer } from 'apollo-server'; | |
| import { schema } from './schema'; | |
| export const createServer = () => { | |
| return new ApolloServer({ | |
| schema, | |
| }); | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| exports[`Bookings Integration Tests getBooking`] = ` | |
| Object { | |
| "data": Object { | |
| "getBooking": Object { | |
| "id": 1, | |
| "cartReference": "123-123-456", | |
| "paymentAmount": 2000, | |
| "cancelled": false, | |
| "receiptNumber": "456464565", | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { createTestClient } from 'apollo-server-testing'; | |
| import { createServer } from './createServer'; | |
| export const runTestCases = ( | |
| groupName, | |
| testCases, | |
| ) => { | |
| const { query } = createTestClient(createServer()); | |
| describe(`${groupName} resolvers`, () => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { createTestClient } from 'apollo-server-testing'; | |
| const { query } = createTestClient(); | |
| const res = await query({ | |
| query: ` | |
| query listBookings { | |
| id | |
| } | |
| `, |
NewerOlder