Moves individual attributes to YAML frontmatter for better organization and readability in generated markdown notes.
Replaces the "Attributes" section with YAML frontmatter.
Modifies family, parents and children sections to utilize bullet points instead of hidden metadata for improved rendering.
Summary by CodeRabbit
Bug Fixes
Automatic unique filename handling for duplicate names to prevent file collisions and broken links across generated notes.
Improvements
Filenames standardized to use "Last First" format (birth year no longer appended), improving consistency and predictability for note names and links.
Filename mappings now propagate to the index so references remain consistent.
Documentation
Expanded README, CHANGELOG, and supporting docs with updated usage, features, and architecture details.
Moves individual attributes to YAML frontmatter for better organization and readability in generated markdown notes.
- Replaces the "Attributes" section with YAML frontmatter.
- Modifies family, parents and children sections to utilize bullet points instead of hidden metadata for improved rendering.
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **Bug Fixes**
* Automatic unique filename handling for duplicate names to prevent file collisions and broken links across generated notes.
* **Improvements**
* Filenames standardized to use "Last First" format (birth year no longer appended), improving consistency and predictability for note names and links.
* Filename mappings now propagate to the index so references remain consistent.
* **Documentation**
* Expanded README, CHANGELOG, and supporting docs with updated usage, features, and architecture details.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Currently processing new changes in this PR. This may take a few minutes, please wait...
📥 Commits
Reviewing files that changed from the base of the PR and between f571727946 and 3ea9338f47.
⛔ Files ignored due to path filters (1)
assets/vivian-arcidiacono-WksHX9oosJI-unsplash.jpg is excluded by !**/*.jpg
📒 Files selected for processing (3)
CHANGELOG.md (1 hunks)
CLAUDE.md (6 hunks)
README (3 hunks)
______________________________________________________
< GPU fans at max RPM: ready to blow away regressions. >
------------------------------------------------------
\
\ (\__/)
(•ㅅ•)
/ づ
Walkthrough
A filename collision-resolution system is introduced where MarkdownGenerator creates unique filenames for individuals with duplicate names by appending numeric suffixes, storing the mapping which is propagated to IndexGenerator for consistent reference resolution. Additionally, Individual.get_file_name() is simplified to exclude birth year information.
Added filename_map attribute, _get_unique_filename() helper to generate collision-free filenames with (1), (2), etc. suffixes, and _get_actual_filename() helper to retrieve mapped filenames. Updated generate_note(), _write_families(), _write_parents(), _write_children(), and story linking logic to use mapped filenames for consistent cross-references.
Added optional filename_map parameter to IndexGenerator.__init__(). Updated generate_index() to use mapped filenames when available. Modified main.py to pass generator.filename_map to IndexGenerator during instantiation.
Filename format simplification src/individual.py
Removed birth year from get_file_name() output; now returns "Last First" format only without numeric suffix.
Sequence Diagram
sequenceDiagram
participant Main as main
participant MG as MarkdownGenerator
participant IG as IndexGenerator
participant Individual as Individual
Main->>MG: generate()
activate MG
loop For each individual
MG->>Individual: get_file_name()
Individual-->>MG: base filename
MG->>MG: _get_unique_filename(base, id)
Note over MG: Check collision, append (n) if needed
MG->>MG: filename_map[id] = unique_filename
MG->>MG: generate_note(unique_filename)
MG->>MG: _write_families() using _get_actual_filename()
end
deactivate MG
MG-->>Main: filename_map
Main->>IG: __init__(output_dir, people_subdir, filename_map)
activate IG
IG->>IG: self.filename_map = filename_map
deactivate IG
Main->>IG: generate_index()
activate IG
loop For each individual
IG->>IG: Use filename_map[id] or fallback to get_file_name()
IG->>IG: generate index entries with resolved filename
end
deactivate IG
Estimated code review effort
🎯 3 (Moderate) | ⏱️ ~20 minutes
src/markdown_generator.py: Review collision-resolution logic in _get_unique_filename() to ensure correctness; verify all six code sections using _get_actual_filename() are consistent and handle both mapped and unmapped cases properly
src/index_generator.py and src/main.py: Verify parameter threading and fallback behavior in generate_index()
src/individual.py: Confirm removal of birth year from filename doesn't break existing reference assumptions elsewhere
Poem
🐰 Hop! No more name collisions in sight,
With mapping magic and suffixes tight,
(1), (2)... unique names take flight,
Individual threads now woven just right,
Markdown and index together unite! ✨
Pre-merge checks and finishing touches
❌ Failed checks (1 warning)
Check name
Status
Explanation
Resolution
Title Check
⚠️ Warning
The PR title "Formats individual notes with YAML frontmatter" claims to be about adding YAML frontmatter to individual notes, but the actual code changes reveal a different primary focus. The main changes across the pull request center on implementing a filename collision-resolver system: introducing a filename_map in MarkdownGenerator to ensure unique note filenames by appending identifiers like (1), (2), etc., propagating this mapping to IndexGenerator, and modifying get_file_name() to exclude birth years from filenames. While the PR objectives mention YAML frontmatter formatting, the code changes do not implement frontmatter formatting; instead, they address filename uniqueness and consistency across references. The title therefore does not accurately capture the primary technical changes in the changeset.
Consider revising the title to reflect the actual main changes, such as "Implement filename collision resolution with unique mapping" or "Add filename uniqueness handling for duplicate individual names." This would more accurately represent the core technical changes involving the filename_map system, the collision-resolution helpers, and the removal of birth years from filenames, making it clearer to reviewers and future maintainers what this PR actually accomplishes.
✅ Passed checks (2 passed)
Check name
Status
Explanation
Description Check
✅ Passed
Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage
✅ Passed
Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands and usage tips.
<!-- This is an auto-generated comment: summarize by coderabbit.ai -->
<!-- This is an auto-generated comment: review in progress by coderabbit.ai -->
> [!NOTE]
> Currently processing new changes in this PR. This may take a few minutes, please wait...
>
> <details>
> <summary>📥 Commits</summary>
>
> Reviewing files that changed from the base of the PR and between f5717279463b4cfaf21978603cf9f9f5ffc8af4a and 3ea9338f47fb52d130b8e0ff109180a1348b1088.
>
> </details>
>
> <details>
> <summary>⛔ Files ignored due to path filters (1)</summary>
>
> * `assets/vivian-arcidiacono-WksHX9oosJI-unsplash.jpg` is excluded by `!**/*.jpg`
>
> </details>
>
> <details>
> <summary>📒 Files selected for processing (3)</summary>
>
> * `CHANGELOG.md` (1 hunks)
> * `CLAUDE.md` (6 hunks)
> * `README` (3 hunks)
>
> </details>
>
> ```ascii
> ______________________________________________________
> < GPU fans at max RPM: ready to blow away regressions. >
> ------------------------------------------------------
> \
> \ (\__/)
> (•ㅅ•)
> / づ
> ```
<!-- end of auto-generated comment: review in progress by coderabbit.ai -->
<!-- walkthrough_start -->
## Walkthrough
A filename collision-resolution system is introduced where MarkdownGenerator creates unique filenames for individuals with duplicate names by appending numeric suffixes, storing the mapping which is propagated to IndexGenerator for consistent reference resolution. Additionally, Individual.get_file_name() is simplified to exclude birth year information.
## Changes
| Cohort / File(s) | Summary |
|---|---|
| **Filename collision resolution** <br> `src/markdown_generator.py` | Added `filename_map` attribute, `_get_unique_filename()` helper to generate collision-free filenames with (1), (2), etc. suffixes, and `_get_actual_filename()` helper to retrieve mapped filenames. Updated `generate_note()`, `_write_families()`, `_write_parents()`, `_write_children()`, and story linking logic to use mapped filenames for consistent cross-references. |
| **Filename mapping integration** <br> `src/index_generator.py`, `src/main.py` | Added optional `filename_map` parameter to `IndexGenerator.__init__()`. Updated `generate_index()` to use mapped filenames when available. Modified `main.py` to pass `generator.filename_map` to IndexGenerator during instantiation. |
| **Filename format simplification** <br> `src/individual.py` | Removed birth year from `get_file_name()` output; now returns "Last First" format only without numeric suffix. |
## Sequence Diagram
```mermaid
sequenceDiagram
participant Main as main
participant MG as MarkdownGenerator
participant IG as IndexGenerator
participant Individual as Individual
Main->>MG: generate()
activate MG
loop For each individual
MG->>Individual: get_file_name()
Individual-->>MG: base filename
MG->>MG: _get_unique_filename(base, id)
Note over MG: Check collision, append (n) if needed
MG->>MG: filename_map[id] = unique_filename
MG->>MG: generate_note(unique_filename)
MG->>MG: _write_families() using _get_actual_filename()
end
deactivate MG
MG-->>Main: filename_map
Main->>IG: __init__(output_dir, people_subdir, filename_map)
activate IG
IG->>IG: self.filename_map = filename_map
deactivate IG
Main->>IG: generate_index()
activate IG
loop For each individual
IG->>IG: Use filename_map[id] or fallback to get_file_name()
IG->>IG: generate index entries with resolved filename
end
deactivate IG
```
## Estimated code review effort
🎯 3 (Moderate) | ⏱️ ~20 minutes
- **src/markdown_generator.py**: Review collision-resolution logic in `_get_unique_filename()` to ensure correctness; verify all six code sections using `_get_actual_filename()` are consistent and handle both mapped and unmapped cases properly
- **src/index_generator.py** and **src/main.py**: Verify parameter threading and fallback behavior in `generate_index()`
- **src/individual.py**: Confirm removal of birth year from filename doesn't break existing reference assumptions elsewhere
## Poem
> 🐰 Hop! No more name collisions in sight,
> With mapping magic and suffixes tight,
> (1), (2)... unique names take flight,
> Individual threads now woven just right,
> Markdown and index together unite! ✨
<!-- walkthrough_end -->
<!-- pre_merge_checks_walkthrough_start -->
## Pre-merge checks and finishing touches
<details>
<summary>❌ Failed checks (1 warning)</summary>
| Check name | Status | Explanation | Resolution |
| :---------: | :--------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Title Check | ⚠️ Warning | The PR title "Formats individual notes with YAML frontmatter" claims to be about adding YAML frontmatter to individual notes, but the actual code changes reveal a different primary focus. The main changes across the pull request center on implementing a filename collision-resolver system: introducing a filename_map in MarkdownGenerator to ensure unique note filenames by appending identifiers like (1), (2), etc., propagating this mapping to IndexGenerator, and modifying get_file_name() to exclude birth years from filenames. While the PR objectives mention YAML frontmatter formatting, the code changes do not implement frontmatter formatting; instead, they address filename uniqueness and consistency across references. The title therefore does not accurately capture the primary technical changes in the changeset. | Consider revising the title to reflect the actual main changes, such as "Implement filename collision resolution with unique mapping" or "Add filename uniqueness handling for duplicate individual names." This would more accurately represent the core technical changes involving the filename_map system, the collision-resolution helpers, and the removal of birth years from filenames, making it clearer to reviewers and future maintainers what this PR actually accomplishes. |
</details>
<details>
<summary>✅ Passed checks (2 passed)</summary>
| Check name | Status | Explanation |
| :----------------: | :------- | :----------------------------------------------------------------------------------- |
| Description Check | ✅ Passed | Check skipped - CodeRabbit’s high-level summary is enabled. |
| Docstring Coverage | ✅ Passed | Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. |
</details>
<!-- pre_merge_checks_walkthrough_end -->
<!-- tips_start -->
---
Thanks for using [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=AlexKucera/gedcom-to-markdown&utm_content=5)! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
<details>
<summary>❤️ Share</summary>
- [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai)
- [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai)
- [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai)
- [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)
</details>
<sub>Comment `@coderabbitai help` to get the list of available commands and usage tips.</sub>
<!-- tips_end -->
<!-- internal state start -->
<!-- DwQgtGAEAqAWCWBnSTIEMB26CuAXA9mAOYCmGJATmriQCaQDG+Ats2bgFyQAOFk+AIwBWJBrngA3EsgEBPRvlqU0AgfFwA6NPEgQAfACgjoCEYDEZyAAUASpETZWaCrKPR1AGxJcAYvgrM1MjwGLSS8LTYaB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oLSCQGSCQM0X0Y0LUbQCyAwH/eURSLQAMS/YQ80YQxSDMQwBSHUbURSLMY0JAw0fUc0WSGA+UWgNSOUeUTAyPjPdHcoKQGupQLWqiESOCYHRmJIuqmOoUlqrIHI/3emAQGiB4D4F+o9pOOCWSDNfkHo0fvZSkOHdnXaWSLWfWf8WqurudCJOoy7Zo/ENELo78EfoY8Y6Y+QuYymJYzPdY7Y06fY8rP4s41wPI+SVox434xSuCbSL414/4xY9PXiUk6E1abGs/mGMo8cqoy402XEzowkwY1wIXSk/o4gAE7AEE5k5UxSPPS0DWQYG09sWjZZHsRZMHdkZsfoEAA== -->
<!-- internal state end -->
Pull request closed
This pull request cannot be reopened because the branch was deleted.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Moves individual attributes to YAML frontmatter for better organization and readability in generated markdown notes.
Summary by CodeRabbit
Bug Fixes
Improvements
Documentation
Walkthrough
A filename collision-resolution system is introduced where MarkdownGenerator creates unique filenames for individuals with duplicate names by appending numeric suffixes, storing the mapping which is propagated to IndexGenerator for consistent reference resolution. Additionally, Individual.get_file_name() is simplified to exclude birth year information.
Changes
src/markdown_generator.pyfilename_mapattribute,_get_unique_filename()helper to generate collision-free filenames with (1), (2), etc. suffixes, and_get_actual_filename()helper to retrieve mapped filenames. Updatedgenerate_note(),_write_families(),_write_parents(),_write_children(), and story linking logic to use mapped filenames for consistent cross-references.src/index_generator.py,src/main.pyfilename_mapparameter toIndexGenerator.__init__(). Updatedgenerate_index()to use mapped filenames when available. Modifiedmain.pyto passgenerator.filename_mapto IndexGenerator during instantiation.src/individual.pyget_file_name()output; now returns "Last First" format only without numeric suffix.Sequence Diagram
Estimated code review effort
🎯 3 (Moderate) | ⏱️ ~20 minutes
_get_unique_filename()to ensure correctness; verify all six code sections using_get_actual_filename()are consistent and handle both mapped and unmapped cases properlygenerate_index()Poem
Pre-merge checks and finishing touches
❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment
@coderabbitai helpto get the list of available commands and usage tips.Pull request closed