-
Notifications
You must be signed in to change notification settings - Fork 3
changes for camera filter #26
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
Conversation
preek0719
commented
May 22, 2025
- Added changes for displaying dropdown populated with camera values for selected rover
- Added changes for displaying images based on selected camera angle
- Pending tests for new changes
✅ Deploy Preview for gregarious-otter-866740 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
| import { Link, Route, BrowserRouter as Router, Routes } from "react-router"; | ||
| import ProfilePage from "./components/ProfilePage"; | ||
| import PhotoOfTheDay from "./Components/photoOfTheDay/photoOfTheDay"; | ||
| // import ProfilePage from "./Components/ProfilePage"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comments!
| }; | ||
|
|
||
| describe("Testing the rover image displayed on page load", () => { | ||
| // const mock_cameras = ["HAZ", "CHEM"]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment
| expect(firstTestImageDiv).toHaveAttribute("aria-hidden", "true"); | ||
| }); | ||
| }); | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these commented out because they don't work yet?
| img_src: string; | ||
| }; | ||
|
|
||
| type Cameras = Array<string>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you really need this, you can just use string[] throughout the code and it's just as clear
| </Slider> | ||
| <select id="dropdown" value={selectedValue} onChange={handleChange}> | ||
| {latestCameras?.map((camera, index) => ( | ||
| <option key={index} value={camera}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to unselect a camera once one has been selected? Can I just show all photos?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, that isn't in place yet. It defaults to one angle on page load and there are just the options to change angles.
|
Submitting another PR with changes incorporated |