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

Handling files with identical names in different paths #23

Open
veprbl opened this issue Nov 10, 2024 · 2 comments
Open

Handling files with identical names in different paths #23

veprbl opened this issue Nov 10, 2024 · 2 comments

Comments

@veprbl
Copy link
Member

veprbl commented Nov 10, 2024

How can we present files that are like

results/tracking_performances/23.10.0/mom_resol_-1.0_eta_1.0.png
results/tracking_performances/23.11.0/mom_resol_-1.0_eta_1.0.png
results/tracking_performances/23.12.0/mom_resol_-1.0_eta_1.0.png
results/tracking_performances/24.03.1/mom_resol_-1.0_eta_1.0.png

Perhaps have different sections for the unique prefixes (in this case, campaign name, but could be others) to display in the list as groups. Because displaying full paths is not going to fit horizontally.

@torrijeske
Copy link
Collaborator

there's a couple different ways we can handle this.

if its necessary to separate them from the others, we can append them to separate containers with the path indicated as a "header" element such that it's clearly visible.

if we don't really need to separate them, then i can indicate the path in a tooltip, in the card updated card modals, or in the footer of the card as long as the path isn't super long like you say.

i'll make some prototypes in Figma and paste them here, then you can decide which you like better.

@veprbl
Copy link
Member Author

veprbl commented Nov 12, 2024

They definitely need to be separated at the selection and at display.

One thing that may be a part of solution: When displaying file paths in capybara we strip common prefixes until something unique comes up.
https://github.com/eic/epic-capybara/blob/c8d357028a96f72215bcba516000ea81db4842a6/epic_capybara/util.py#L4-L30

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

2 participants