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

fix: display Full Capture Details in Verify and Captures pages #228

Merged
merged 2 commits into from
Dec 15, 2021

Conversation

tranquanghuy0801
Copy link
Member

@tranquanghuy0801 tranquanghuy0801 commented Dec 3, 2021

…Captures pages

Description

This PR fixed the issue of not displaying full species and other tags in Capture Detail Dialog.

Issue(s) addressed

What kind of change(s) does this PR introduce?

  • Enhancement
  • Bug fix
  • Refactor

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Issue

What is the current behavior?

Not display the species tags in Captures page, and not display the species tags and the other tags in Verify page

What is the new behavior?

Both species and other tags are displayed fully in Verify and Captures pages.

Breaking change

Does this PR introduce a breaking change?

No breaking change

Other useful information

@tranquanghuy0801 tranquanghuy0801 requested a review from a team as a code owner December 3, 2021 06:37
@tranquanghuy0801 tranquanghuy0801 changed the title fix fix: display Full Capture Details in Verify and Captures pages Dec 3, 2021
Copy link
Collaborator

@nmcharlton nmcharlton left a comment

Choose a reason for hiding this comment

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

This is good, but it doesn't address the whole problem.
In particular, we still don't see the capture tags (AKA treeTags).
See my comments in the issue for how to resolve that part:

I can see a couple of things causing this:

  • We're not wrapping these views with CaptureDetailProvider tags
  • We don't return capture from CaptureDetailContext::getCapture() so it can't be passed to subsequent queries

src/components/CaptureDetailDialog.js Outdated Show resolved Hide resolved
src/api/treeTrackerApi.js Outdated Show resolved Hide resolved
Copy link
Collaborator

@nmcharlton nmcharlton left a comment

Choose a reason for hiding this comment

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

@tranquanghuy0801 I hope you don't mind, I've made the changes myself so we can get the fix into the next build. Thanks for your work on this!

@nmcharlton nmcharlton merged commit 705fb2d into Greenstand:master Dec 15, 2021
@tranquanghuy0801
Copy link
Member Author

@tranquanghuy0801 I hope you don't mind, I've made the changes myself so we can get the fix into the next build. Thanks for your work on this!

@nmcharlton That's alright. I totally understand. Happy to have a new release.

mitia-anah pushed a commit to mitia-anah/treetracker-admin-client that referenced this pull request Feb 1, 2022
…stand#228)

* fix: display species and other tags in capture details in Verify and Captures pages

* fix: restore species/tags to capture detail dialog

Co-authored-by: Nick Charlton <[email protected]>
Ny-Rianala pushed a commit to Ny-Rianala/treetracker-admin-client that referenced this pull request Feb 10, 2022
…stand#228)

* fix: display species and other tags in capture details in Verify and Captures pages

* fix: restore species/tags to capture detail dialog

Co-authored-by: Nick Charlton <[email protected]>
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.

Full capture details not loaded in Capture Detail dialog
2 participants