Skip to content

Commit 2bcede8

Browse files
committed
Beta notice
1 parent bff726b commit 2bcede8

File tree

4 files changed

+48
-9
lines changed

4 files changed

+48
-9
lines changed

static/css/style.css

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ body {
6868
padding: var(--space-2xl) 0;
6969
border-bottom: 1px solid var(--border-default);
7070
margin-bottom: var(--space-2xl);
71+
position: relative;
7172
}
7273

7374
.header h1 {
@@ -78,13 +79,48 @@ body {
7879
-webkit-background-clip: text;
7980
-webkit-text-fill-color: transparent;
8081
background-clip: text;
82+
display: inline-block;
83+
position: relative;
84+
}
85+
86+
.beta-badge {
87+
position: absolute;
88+
top: -8px;
89+
right: -40px;
90+
background-color: var(--warning);
91+
color: var(--text-primary);
92+
font-size: 0.75rem;
93+
font-weight: 700;
94+
padding: 2px 6px;
95+
border-radius: var(--radius-sm);
96+
text-transform: uppercase;
97+
letter-spacing: 0.5px;
98+
font-family: var(--font-sans);
99+
-webkit-text-fill-color: var(--text-primary);
100+
-webkit-background-clip: initial;
101+
background-clip: initial;
81102
}
82103

83104
.header p {
84105
color: var(--text-secondary);
85106
font-size: 1.1rem;
86107
}
87108

109+
.beta-warning {
110+
background-color: rgba(251, 133, 0, 0.1);
111+
border: 1px solid rgba(251, 133, 0, 0.3);
112+
border-radius: var(--radius-md);
113+
padding: var(--space-md);
114+
margin-top: var(--space-lg);
115+
color: var(--text-secondary);
116+
font-size: 0.95rem;
117+
text-align: center;
118+
}
119+
120+
.beta-warning strong {
121+
color: var(--warning);
122+
}
123+
88124
/* Main Content */
89125
.section {
90126
margin-bottom: var(--space-2xl);
@@ -356,6 +392,13 @@ code.inline-highlight {
356392
font-size: 2rem;
357393
}
358394

395+
.beta-badge {
396+
position: static;
397+
display: inline-block;
398+
margin-left: var(--space-sm);
399+
margin-top: var(--space-xs);
400+
}
401+
359402
.transfer-container {
360403
min-height: 160px;
361404
}

static/index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@
1414
<body>
1515
<div class="container">
1616
<header class="header">
17-
<h1>Transit.sh</h1>
17+
<h1>Transit.sh<span class="beta-badge">Beta</span></h1>
1818
<p>Direct file transfer with no intermediary storage</p>
19+
<div class="beta-warning">
20+
<strong>Notice:</strong> This service is in beta. If you encounter any bug, please report it <a href="https://github.com/codeSamuraii/transit.sh/issues">here</a>.<br>Sending files via mobile browsers is not supported yet.
21+
</div>
1922
</header>
2023

2124
<main>

tests/requirements-test.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

tests/test_endpoints.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@
55
from unittest.mock import AsyncMock, patch
66

77
import pytest
8-
import pytest_asyncio
98
from fastapi.testclient import TestClient
109
from starlette.websockets import WebSocket
1110

1211
from app import app
1312
from lib.transfer import FileMetadata, FileTransfer
14-
from lib.store import Store
1513

1614

1715
@pytest.fixture
@@ -364,8 +362,7 @@ def download_file():
364362

365363
# Execute download and verify content
366364
downloaded_content = download_file()
367-
# Note: In a real scenario, we'd need to properly synchronize the queue
368-
# For this test, we're mainly verifying the endpoints work correctly
365+
assert downloaded_content == file_content, f"Downloaded content (size: {len(downloaded_content)}) does not match uploaded content (size: {len(file_content)})"
369366

370367

371368
if __name__ == "__main__":

0 commit comments

Comments
 (0)