imageFilenames and imageFilename, backend integration tests, frontend tests, removed username references

This commit is contained in:
jackiettran
2025-11-26 23:13:23 -05:00
parent f2d3aac029
commit 11593606aa
52 changed files with 2815 additions and 150 deletions

View File

@@ -414,10 +414,10 @@ const ItemDetail: React.FC = () => {
<div className="row">
<div className="col-md-8">
{/* Images */}
{item.images.length > 0 ? (
{item.imageFilenames.length > 0 ? (
<div className="mb-4">
<img
src={item.images[selectedImage]}
src={item.imageFilenames[selectedImage]}
alt={item.name}
className="img-fluid rounded mb-3"
style={{
@@ -426,9 +426,9 @@ const ItemDetail: React.FC = () => {
objectFit: "cover",
}}
/>
{item.images.length > 1 && (
{item.imageFilenames.length > 1 && (
<div className="d-flex gap-2 overflow-auto justify-content-center">
{item.images.map((image, index) => (
{item.imageFilenames.map((image, index) => (
<img
key={index}
src={image}
@@ -478,9 +478,9 @@ const ItemDetail: React.FC = () => {
onClick={() => navigate(`/users/${item.ownerId}`)}
style={{ cursor: "pointer" }}
>
{item.owner.profileImage ? (
{item.owner.imageFilename ? (
<img
src={item.owner.profileImage}
src={item.owner.imageFilename}
alt={`${item.owner.firstName} ${item.owner.lastName}`}
className="rounded-circle me-2"
style={{