Repository navigation
Letters: families in the homes thank the mayor - #39
Merged
Merged
Conversation
- letters.rs: a family per home (from "The Hart house", else names/families.txt by lot) and the wordings, per thing thanked for. - world.rs: letters folded from the ledger for a street upgrade, a building made whole, a park decoration, a public building opening and a finished set; from a family on the street, else one of the three nearest. - World.letters in proto (last 30). - App: an envelope in the menu with an unread dot, a Letters panel with a link to each building's deed, and a story line when one arrives. What was read stays in localStorage; a first run starts with nothing unread. The mock writes simpler letters for the same events. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Thank-you letters from the roadmap's Residents idea. Families leaving neglected homes is still on the roadmap.
Who writes, and when
Each finished home (cottage or apartment) has a family. A house called "The Hart house" is the Harts. Other homes get a surname from the new
names/families.txt, by lot index. The file is append-only, so a family never changes.Letters are folded from the ledger like everything else:
They pay nothing, and reading is never rewarded (the one rule). The wording lives in
letters.rs. Public buildings are named as nouns ("the new school"), and later levels' water and power get a second wording.App
Checks
cargo test(140 in the daemon, incl.families_write_to_thank_the_mayorand the letters unit tests),cargo clippy --all-targetsandcargo fmtare clean.bun test(47) andtscpass.?mock=city.🤖 Generated with Claude Code