From 7b2d9eb869218c87636f63c00257e7fb65502a61 Mon Sep 17 00:00:00 2001 From: Mae Beale Date: Wed, 14 Oct 2026 18:41:31 -0400 Subject: [PATCH 1/2] Show each FileMaker archive record's key beside its ID and name Naming archive rows swapped the Key column for Name, but admins still read the key to tell which FileMaker field the ID came from. Co-Authored-By: Claude Opus 5.5 (1M context) --- app/views/fm_archives/index.html.erb | 2 ++ spec/requests/fm_archives_spec.rb | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/app/views/fm_archives/index.html.erb b/app/views/fm_archives/index.html.erb index 4e7b28c14b..f56067c3f2 100644 --- a/app/views/fm_archives/index.html.erb +++ b/app/views/fm_archives/index.html.erb @@ -29,6 +29,7 @@ FM ID + Key Name @@ -38,6 +39,7 @@ <%= link_to record.fm_id, fm_archive_path(record.fm_id, table: @selected), class: "text-primary hover:underline" %> + <%= record.fm_key_name %> <%= truncate(record.name, length: 100) %> <% end %> diff --git a/spec/requests/fm_archives_spec.rb b/spec/requests/fm_archives_spec.rb index 441ac14cd4..04f1109ceb 100644 --- a/spec/requests/fm_archives_spec.rb +++ b/spec/requests/fm_archives_spec.rb @@ -384,6 +384,14 @@ expect(response.body).to include("Archie Coded") end + it "lists each record's key beside its ID and name" do + FmRolodex.create!(fm_id: "ROL1", data: { "FirstName" => "Archie", "LastName" => "Coded" }) + + get fm_archives_path(table: "rolodexes") + + expect(response.body).to match(%r{>ROL1\s*\s*]*>ID\s*]*>Archie Coded}) + end + it "marks the selected table as the current page" do get fm_archives_path(table: "rolodexes") From 7f73f24fa118497ba1de3246a968799cd80e080e Mon Sep 17 00:00:00 2001 From: Mae Beale Date: Wed, 14 Oct 2026 20:00:06 -0400 Subject: [PATCH 2/2] Put the FileMaker archive key after the name The name is what admins scan for, so it sits next to the ID; the key is reference detail. Co-Authored-By: Claude Opus 5.5 (1M context) --- app/views/fm_archives/index.html.erb | 4 ++-- spec/requests/fm_archives_spec.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/fm_archives/index.html.erb b/app/views/fm_archives/index.html.erb index f56067c3f2..ab6b2d3f40 100644 --- a/app/views/fm_archives/index.html.erb +++ b/app/views/fm_archives/index.html.erb @@ -29,8 +29,8 @@ FM ID - Key Name + Key @@ -39,8 +39,8 @@ <%= link_to record.fm_id, fm_archive_path(record.fm_id, table: @selected), class: "text-primary hover:underline" %> - <%= record.fm_key_name %> <%= truncate(record.name, length: 100) %> + <%= record.fm_key_name %> <% end %> diff --git a/spec/requests/fm_archives_spec.rb b/spec/requests/fm_archives_spec.rb index 04f1109ceb..106595623a 100644 --- a/spec/requests/fm_archives_spec.rb +++ b/spec/requests/fm_archives_spec.rb @@ -384,12 +384,12 @@ expect(response.body).to include("Archie Coded") end - it "lists each record's key beside its ID and name" do + it "lists each record's key to the right of its name" do FmRolodex.create!(fm_id: "ROL1", data: { "FirstName" => "Archie", "LastName" => "Coded" }) get fm_archives_path(table: "rolodexes") - expect(response.body).to match(%r{>ROL1\s*\s*]*>ID\s*]*>Archie Coded}) + expect(response.body).to match(%r{>ROL1\s*\s*]*>Archie Coded\s*]*>ID}) end it "marks the selected table as the current page" do