Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve link summary screen to show other linked and unlinked recipes for the same item #414

Open
Dorus opened this issue Feb 12, 2025 · 0 comments

Comments

@Dorus
Copy link
Collaborator

Dorus commented Feb 12, 2025

Currently the link summary screen only shows the current link. However YaFC allows the same item to be linked multiple times at different levels or even nested levels.

To give an example, a page might look like this:

  • A B -> C [link B1]
    • A -> B [link B1]
  • A C -> D [link B1]
    • A E -> F [link B2]
    • A -> B [link B2]

Here the first 3 recipes are all linked to the link B1, but at the nested level of the 3th recipe there is a second link (B2) that hides 2 recipes from link B1.

Currently the link summary will only show recipe 1, 2 and 3 in the above example for link B1, and recipes 4 and 5 for link B2. With this change, the link summary page for B1 will show 1, 2 and 3 as primary recipes and 4 and 5 as related links. Similar with link B1 is removed, the link summary page for B2 will show recipe 1,2 and 3 as unlinked.

I've started working on this in #413

Possibly future improvements:

  • Show if related link is a child link, parent link, or nephew link.
  • Add buttons to create or remove links on nested or parent recipes.
  • Add buttons to create links on unlinked recipes.
  • Add buttons to promote existing links to their parents so unlinked recipes become part of them.

I need to think of a proper way to display the relations between recipes on the link summary page.

@Dorus Dorus mentioned this issue Feb 12, 2025
3 tasks
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

No branches or pull requests

1 participant