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

Restructure trek detail UI #4422

Draft
wants to merge 13 commits into
base: master
Choose a base branch
from
Draft

Conversation

justinefricou
Copy link
Contributor

@justinefricou justinefricou commented Dec 17, 2024

Description

This restructuring of the detail pages aims to reorganize the data into a different set of tabs so further developments can set up a loading system in which the data is only loaded when the user clicks on the associated tab.

  • Moves related objects from the properties tab into their own tab
  • Moves accessibility pictures into the attached files tab
  • Removes the display of the structure in the properties tab title

Remaining work after this PR is merged:

  • UI/UX improvements for adding attached files / accessibility photos (implement a system similar to that of HD views?)
  • Set up the new loading system

Related Issue

Checklist

  • I have followed the guidelines in our Contributing document
  • My code respects the Definition of done available in the Development section of the documentation
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works.
  • New and existing unit tests pass locally with my changes
  • I added an entry in the changelog file
  • My commits are all using prefix convention (emoji + tag name) and references associated issues
  • I added a label to the PR corresponding to the perimeter of my contribution
  • The title of my PR mentionned the issue associated

@@ -77,7 +77,8 @@ <h3>{% trans "Photos accessibility" %}</h3>

{% if perms|add_attachment %}
{% if user.profile.structure == object.structure or perms.authent.can_bypass_structure %}
<div class="file-attachment-accessibility-form">
<div class="file-attachment-form">
<h4>New accessibility photo</h4>
Copy link
Contributor

Choose a reason for hiding this comment

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

Add translation

Copy link

codecov bot commented Dec 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.46%. Comparing base (de3309e) to head (482a794).
Report is 14 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4422   +/-   ##
=======================================
  Coverage   98.46%   98.46%           
=======================================
  Files         268      268           
  Lines       21290    21290           
=======================================
  Hits        20964    20964           
  Misses        326      326           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

cypress bot commented Dec 17, 2024

Geotrek-admin    Run #10647

Run Properties:  status check passed Passed #10647  •  git commit e392952392 ℹ️: Merge a27fd6b27e08ea60a9f446e83af609df4b9c9f81 into 17cd74274512b55aa3bf46a7b05a...
Project Geotrek-admin
Branch Review refs/pull/4422/merge
Run status status check passed Passed #10647
Run duration 02m 06s
Commit git commit e392952392 ℹ️: Merge a27fd6b27e08ea60a9f446e83af609df4b9c9f81 into 17cd74274512b55aa3bf46a7b05a...
Committer Justine Fricou
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 22
View all changes introduced in this branch ↗︎

{% smart_include "detail" %}
</div>
{% endblock %}
{% endblock relatedobjectspanel %}
Copy link
Contributor

Choose a reason for hiding this comment

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

Move relatedobjectspanel block to MapEntity, to ensure we can create generic view in MapEntity to load its content

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants