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

Add Reef check surveys #1060

Merged
merged 39 commits into from
Jan 15, 2025
Merged

Add Reef check surveys #1060

merged 39 commits into from
Jan 15, 2025

Conversation

K-Markopoulos
Copy link
Collaborator

@K-Markopoulos K-Markopoulos commented Nov 22, 2024

Note: requires backend changes from #1052 to work.

Add reef check survey page in UI. Designs

Next steps for this PR:

  • Add tests
  • Adjust for mobile view
  • Add skeletons to improve loading experience, handle errors
  • Reconsider details layout (from flex to table) We keep the flex with media queries for column-count
  • Add missing tables
  • Tweak styles to be closer to designs
  • Add Request to download functionality (we will likely add it in another PR)

image

@K-Markopoulos K-Markopoulos self-assigned this Nov 22, 2024
Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

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

⚠️ This pull request was not sent to the PullRequest network because the pull request is a draft.

Copy link

github-actions bot commented Nov 29, 2024

Build succeeded and deployed at https://aqualink-app-1060.surge.sh
(hash 12a4c48 deployed at 2025-01-15T16:06:55)

@K-Markopoulos K-Markopoulos marked this pull request as ready for review November 29, 2024 12:58
Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

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

✅ This pull request was sent to the PullRequest network for review. Expert reviewers are now being matched to your request based on the code's requirements. Stay tuned!

What to expect from this code review:
  • Comments posted to any areas of potential concern or improvement.
  • Detailed feedback or actions needed to resolve issues that are found.
  • Turnaround times vary, but we aim to be swift.

@K-Markopoulos you can click here to see the review status or cancel the code review job.

Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

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

PullRequest Breakdown

Reviewable lines of change

+ 1,889
- 35

47% TSX
36% TypeScript
17% TSX (tests)
<1% JSON
<1% Other

Type of change

Feature - These changes are adding a new feature or improvement to existing code.
1 Message
⚠️ Due to its size, this pull request will likely have a little longer turnaround time and will probably require multiple passes from our reviewers.

Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

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

I've given this MR a quick first pass, and noticed an issue, noted inline. Second pass to follow, shortly.

Image of Graham C Graham C


Reviewed with ❤️ by PullRequest

packages/website/src/services/reefCheckService.ts Outdated Show resolved Hide resolved
Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

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

I've completed my second pass, and noticed just one additional issue, besides the smattering of TODO comments.

Image of Graham C Graham C


Reviewed with ❤️ by PullRequest

Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

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

PullRequest reviewed the updates made to #1060 up until the latest commit (dec9873). No further issues were found.

Reviewed by:

Image of Graham C Graham C

Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

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

PullRequest reviewed the updates made to #1060 up until the latest commit (5c80f07). No further issues were found.

Reviewed by:

Image of Graham C Graham C

ericboucher and others added 2 commits December 17, 2024 14:29
* Hide previous data while loading

* Add reef check surveys in Sites survey list

* Add default value to surveyList

* Add tests

* Add react-scan for performance profiling (#1065)

* Use available width for timeline items

* Format impact count and show all rows

* Fix timeline styling issue

* Scroll to top on route change

* Update tests

* Update index.tsx

* Filter out empty rows

* Fix hasSpotter when there is topTemp only (#1068)

* Update index.tsx

* Update index.tsx

* [Snyk] Fix for 3 vulnerabilities (#1067)

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-TAR-6476909
- https://snyk.io/vuln/SNYK-JS-INFLIGHT-6095116
- https://snyk.io/vuln/SNYK-JS-AXIOS-6671926

Co-authored-by: snyk-bot <[email protected]>

* Filter out empty rows for Fish and Invertebrates

* Fix timeline skeleton

* Show invertebrates header inline

---------

Co-authored-by: ericboucher <[email protected]>
Co-authored-by: snyk-bot <[email protected]>
@ericboucher ericboucher changed the title Add Reef check survey page Add Reef check surveys Dec 20, 2024
Comment on lines 25 to 27
.sort(
(a, b) => b.s1 + b.s2 + b.s3 + b.s4 - (a.s1 + a.s2 + a.s3 + a.s4),
) ?? [];
Copy link
Member

Choose a reason for hiding this comment

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

should we create a util for this? Maybe we could DRY the code a bit for the tables, wdyt?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes good idea. Do you have any other suggestion? I tried to keep it DRY by creating the reusable components.

Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

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

PullRequest reviewed the updates made to #1060 up until the latest commit (bd00680). No further issues were found.

Reviewed by:

Image of Graham C Graham C

Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

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

Due to inactivity, PullRequest has cancelled this review job. You can reactivate the code review job from the PullRequest dashboard.

@ericboucher ericboucher merged commit 7a6ad93 into master Jan 15, 2025
4 checks passed
@ericboucher ericboucher deleted the reef-check-survey-page branch January 15, 2025 16:15
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