Skip to content

Conversation

@preek0719
Copy link
Collaborator

  • 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

@netlify
Copy link

netlify bot commented May 22, 2025

Deploy Preview for gregarious-otter-866740 ready!

Name Link
🔨 Latest commit 3c59a81
🔍 Latest deploy log https://app.netlify.com/projects/gregarious-otter-866740/deploys/682f4965b8e179000813814d
😎 Deploy Preview https://deploy-preview-26--gregarious-otter-866740.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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";
Copy link
Contributor

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"];
Copy link
Contributor

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");
});
});

Copy link
Contributor

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>;
Copy link
Contributor

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}>
Copy link
Contributor

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?

Copy link
Collaborator Author

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.

@preek0719 preek0719 closed this May 23, 2025
@preek0719
Copy link
Collaborator Author

Submitting another PR with changes incorporated

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.

3 participants