Skip to content

Name FileMaker archive records - #2664

Merged
maebeale merged 5 commits into
mainfrom
maebeale/fm-archive-name-method
Oct 13, 2026
Merged

maebeale merged 5 commits into
mainfrom
maebeale/fm-archive-name-method

Conversation

@maebeale

@maebeale maebeale commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

🤖 suggested review level: 3 Read 📖 a name method per archive model, plus showing it where archive pages listed bare IDs

FileMaker archive pages now show each record's name instead of just an ID. Each table words its names its own way, so admins can tell a purchase from the artwork it bought.

Names

  • Every Fm* model defines #name. FmArchive supplies the helpers (fm_value, fm_dollars, fm_phrase…) and the FM ID fallback.
  • Derived rows read subject — detail, e.g. After the Rain — purchased for $250, Aisha Sharma — Payment of $6,000.
  • Rows that only link two records name the FM IDs they connect.
  • A spec loads the dev FM seed, which reuses people and art across tables, and asserts every name is unique.

Where names show

  • Index: Name replaces the Key column, which held the same value on every row.
  • Show: the heading is the record's name; the table label moved to the subtitle.
  • ID fields (e.g. OrgID) now match the phone/address rows: ID beside the label, the record's name as the link, "Not found in FM data" when missing. Both share fm_archive_id_tag / fm_archive_summary_tag.
  • Related-record chips show the name beside the ID.
  • The personnel and job-affiliation decorators use name instead of reading OrgName/ProjectName directly.

Fixes found along the way

  • Payment RefID never linked: the model's prefix map was named REFID_PREFIX_MAP, but the view looked for PREFIX_LINK_MAP.
  • Note pages linked every field by Context, not just LinkID. FmArchive#reference_table now resolves a polymorphic field only when FM_LINKS maps it to nil.

🤖 Generated with Claude Code

@maebeale
maebeale marked this pull request as ready for review October 13, 2026 02:12
@maebeale
maebeale force-pushed the maebeale/fm-archive-name-method branch 2 times, most recently from cf541e8 to 16fb091 Compare October 13, 2026 14:13
maebeale and others added 5 commits October 13, 2026 10:35
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The archive listed and headed records by ID and class name only, so finding
the right org or person meant opening rows one by one.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
A purchase, its artwork, and the exhibit that showed it all carried the same
title, and one person's payment, registration, and volunteer shift all read as
just their name — so names alone couldn't tell records apart.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The cards and related-records list showed bare FileMaker IDs, so admins had
to open each one to see what it was; the decorators also rebuilt org and
project names by hand.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
An ID field showed the ID as the value with the name trailing in gray;
putting the ID beside the label and linking the name reads like the
rolodex contact rows. Resolving targets in one place also fixes payment
RefIDs never linking (their prefix map was misnamed) and note pages
linking every field by Context instead of just LinkID.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@maebeale
maebeale force-pushed the maebeale/fm-archive-name-method branch from 728be0e to ce47cc2 Compare October 13, 2026 14:36
@maebeale
maebeale merged commit cc3b634 into main Oct 13, 2026
3 checks passed
@maebeale
maebeale deleted the maebeale/fm-archive-name-method branch October 13, 2026 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant