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

Toggle Detail-view of file and hide rest if a new one is opened #1513

Merged
merged 2 commits into from
Sep 16, 2024

Conversation

BreathingFlesh
Copy link
Contributor

@BreathingFlesh BreathingFlesh commented Sep 10, 2024

Please fill in the commit message below and work through the checklist. You can delete parts that are not needed, e.g. the optional description, the link to a ticket or irrelevant options of the checklist.

Commit message

Town6: Make file details closable

TYPE: Feature
LINK: OGC-1822

Checklist

  • I have performed a self-review of my code
  • I considered adding a reviewer
  • I have tested my code thoroughly by hand
    • I have tested styling changes/features on different browsers
    • I have tested javascript changes/features on different browsers

Copy link

linear bot commented Sep 10, 2024

Copy link

codecov bot commented Sep 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.49%. Comparing base (dc97c20) to head (3ca0e68).
Report is 12 commits behind head on master.

Additional details and impacted files
Files with missing lines Coverage Δ
src/onegov/town6/app.py 98.29% <100.00%> (+<0.01%) ⬆️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dc97c20...3ca0e68. Read the comment docs.

var detailRow = $('#details-' + fileNumber);

// Close all other detail rows
$('tr[id^="details-"]').not(detailRow).addClass('hidden');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally, I wouldn't close the other detail rows and leave it to the user to close it. Like this one could compare to files..

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought about that too, but does one actually ever close a the details tab if the file isn't the right one?

@BreathingFlesh BreathingFlesh merged commit 201cba1 into master Sep 16, 2024
14 checks passed
@BreathingFlesh BreathingFlesh deleted the ogc-1822-make-file-tabs-closable branch September 16, 2024 06:58
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

Successfully merging this pull request may close these issues.

2 participants