Skip to content

Commit

Permalink
Additional UI update (#583)
Browse files Browse the repository at this point in the history
* Fixes for kscale.dev

* Unit test

* Additional UI changes

* AWS testing
  • Loading branch information
ivntsng authored Nov 11, 2024
1 parent 6ae9ec0 commit 04478c4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
10 changes: 4 additions & 6 deletions frontend/src/components/terminal/TerminalAllRobots.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,14 @@ const TerminalAllRobots = ({ robots, onDeleteRobot }: Props) => {
))}
</div>
) : (
<div className="flex flex-col gap-4 justify-center items-center bg-gray-4 p-10 rounded-lg max-w-3xl mx-auto">
<p className="text-gray-12 font-medium sm:text-lg">
No robots found.
</p>
<div className="flex flex-col gap-4 justify-center items-center bg-gray-12 p-10 rounded-lg max-w-3xl mx-auto border border-white">
<p className="text-gray-2 font-medium sm:text-lg">No robots found.</p>
<Button
variant="default"
onClick={() => navigate(ROUTES.BOTS.BROWSE.path)}
className="flex items-center"
className="flex items-center bg-gray-12 text-white hover:bg-gray-8 border border-white"
>
<span className="mr-2">Browse Listings</span>
<span>Browse Listings</span>
</Button>
</div>
)}
Expand Down
6 changes: 6 additions & 0 deletions store/app/crud/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,12 @@ async def _update_item(self, id: str, model_type: type[T], updates: dict[str, An
async def _upload_to_s3(self, data: IO[bytes], name: str, filename: str, content_type: str) -> None:
"""Uploads some data to S3."""
try:
import time
from datetime import datetime

logger.info(f"Container UTC time: {datetime.utcnow().isoformat()}")
logger.info(f"Container local time: {datetime.now().isoformat()}")
logger.info(f"Container timezone: {time.tzname}")
logger.info("=== S3 Upload Debug Info ===")
logger.info(f"Bucket: {settings.s3.bucket}")
logger.info(f"Key: {settings.s3.prefix}{filename}")
Expand Down

0 comments on commit 04478c4

Please sign in to comment.