Skip to content

Rework digital media page#33

Merged
TomDijkema merged 7 commits intomainfrom
Rework-DigitalMedia-Page
Jun 8, 2023
Merged

Rework digital media page#33
TomDijkema merged 7 commits intomainfrom
Rework-DigitalMedia-Page

Conversation

@TomDijkema
Copy link
Copy Markdown
Contributor

PR reworks the Digital Media Page. Brings the concept back to the basics first: showing off the digital media of the given id, and mentioning the related ones. Other functionality like digital media annotations and the visual annotations have been removed until future implementation. Also includes versioning for Digital Media (when supported by API), and a custom Tooltip component.

Adds:

  • Digital Media versioning
  • Custom Tooltip Component

Modifies:

  • Digital Media Page, now includes ID Card, horizontal slider and scaled images to their relative size
  • Version Select Component to be generic now (for Specimens and Digital Media)
  • Homepage content to not conflict with header or footer upon sizing to a small screen

Removes (until future development):

  • Digital Media Annotations Modal
  • Observation modal with visual annotations

Commit reworks the Digital Media Page. Brings the concept back to the basics first: showing off the digital media of the given id, and mentioning the related ones. Other functionality like digital media annotations and the visual annotations have been removed until future implementation.

Modifies:
- Digital Media Page, now includes ID Card, horizontal slider and scaled images to their relative size

Removes (until future development):
- Digital Media Annotations Modal
- Observation modal with visual annotations
Commit generalises the Version Select Component and applies it also to the Digital Media page for future versioning (when the API also supports it). The usage of the component on the Specimen Page needed to be changed due to the generalisation.

Adds:
- Versioning to the Digital Media Page

Modifies:
- Version Select Component to be generally usable
Commit (hopefully) resolves the sizing issue with the Homepage on smaller screens.
Commit adds generic Tooltip component for adding Tooltips. Makes use of the Bootstrap components, and combines them into a custom component that accepts HTML children.

Adds:
- Custom Tooltip Component
@TomDijkema TomDijkema requested a review from samleeflang June 6, 2023 13:58
@TomDijkema TomDijkema self-assigned this Jun 6, 2023
Commit to resolve Sonar Cloud issues
Commit includes a dynamic API url based upon the current path of the application. This means the API will always share the same core route!
Second commit for resolving Sonar Cloud issues
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 7, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

21.1% 21.1% Coverage
0.0% 0.0% Duplication

Copy link
Copy Markdown
Contributor

@samleeflang samleeflang left a comment

Choose a reason for hiding this comment

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

Small comments. Looks good, nice that the tooltip is also in here

Comment thread src/components/digitalMedia/DigitalMedia.tsx
@TomDijkema TomDijkema merged commit 93dcda2 into main Jun 8, 2023
@TomDijkema TomDijkema deleted the Rework-DigitalMedia-Page branch June 8, 2023 09:32
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