feat(website): rename AA mutations to AA substitutions on details page#6150
feat(website): rename AA mutations to AA substitutions on details page#6150anna-parker merged 5 commits intomainfrom
Conversation
|
Claude finished @anna-parker's task in 1m 2s —— View job Code Review
The rename from "amino acid mutations" → "amino acid substitutions" is straightforward and the changes are generally clean. However, there is one significant bug introduced by this PR. Bug: AA substitutions section will not render
const mutationSections = dataTableData.table.filter(({ header }) => header.toLowerCase().includes('mutation'));
The fix is to use the constants directly instead of a string match: const mutationSections = dataTableData.table.filter(
({ header }) =>
header === DEFAULT_NUC_MUTATION_DETAILS_HEADER || header === DEFAULT_AA_MUTATION_DETAILS_HEADER,
);Minor: inconsistent terminology in search docs
Since the heading now says "Amino acid substitutions and insertions", this paragraph body should say "substitution" too for consistency. |

Alternative to #6135 - as discussed on slack https://loculus.slack.com/archives/C061ZQQM3N1/p1773419507020499 for consistency across organisms we will change the details page header
amino acid mutationstoamino acid substitutionsScreenshot
PR Checklist
🚀 Preview: https://rename-header.loculus.org