diff --git a/.git_api_info b/.git_api_info index 54bf2fe..229fe4d 100644 --- a/.git_api_info +++ b/.git_api_info @@ -1,2 +1,2 @@ Branch: main -Commit: 0d9c48c6b5300daf840a55d3b378b9a6f70f5d6b +Commit: 895342a8ba976caa41f4b5b9fdec1c684e47dc5d diff --git a/Dockerfile b/Dockerfile index 88dabd8..85350ad 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,14 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ curl \ && rm -rf /var/lib/apt/lists/* -# Copy pyproject.toml first for layer caching +# Prefer IPv4 over unrouted IPv6 in glibc to prevent PyPI connection timeouts +RUN echo "precedence ::ffff:0:0/96 100" >> /etc/gai.conf + +# Use Astral's uv package manager for fast, parallel, cached installations +COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv +ENV UV_HTTP_TIMEOUT=300 + +# Copy pyproject.toml first COPY pyproject.toml ./ COPY README.md ./ @@ -26,8 +33,8 @@ COPY app ./app # Copy git info metadata if generated on host COPY .git_api_info* /app/.git_api_info -# Install project and CLI scripts into PATH -RUN pip install --default-timeout=120 --no-cache-dir -e . +# Install project and CLI scripts into system PATH using persistent BuildKit cache +RUN --mount=type=cache,target=/root/.cache/uv uv pip install --system -e . EXPOSE 8000 diff --git a/app/features/admin/services/payment_service.py b/app/features/admin/services/payment_service.py index 7eb3b85..30d2cee 100644 --- a/app/features/admin/services/payment_service.py +++ b/app/features/admin/services/payment_service.py @@ -420,6 +420,7 @@ class AdminPaymentService: + Tax Invoice - {inv_number} @@ -431,6 +432,18 @@ class AdminPaymentService: padding: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }} + /* Prevent iOS WebKit / Safari automatic data detector and link underlining */ + a, + a[x-apple-data-detectors], + a[href^="mailto:"], + a[href^="tel:"] {{ + color: inherit !important; + text-decoration: none !important; + font-size: inherit !important; + font-family: inherit !important; + font-weight: inherit !important; + line-height: inherit !important; + }} body {{ background-color: #f8fafc; color: #1e293b; @@ -557,7 +570,8 @@ class AdminPaymentService: margin-bottom: 24px; border: 1px solid #e2e8f0; border-radius: 10px; - overflow: hidden; + overflow-x: auto; + -webkit-overflow-scrolling: touch; }} table {{ width: 100%; @@ -618,6 +632,73 @@ class AdminPaymentService: color: #94a3b8; line-height: 1.6; }} + .payment-id-val {{ + word-break: break-all; + display: inline-block; + }} + @media (max-width: 640px) {{ + body {{ + padding: 12px 8px; + }} + .no-print-bar {{ + flex-direction: column; + align-items: stretch; + gap: 12px; + padding: 12px 14px; + text-align: center; + }} + .no-print-actions {{ + display: flex; + gap: 8px; + width: 100%; + }} + .no-print-actions .btn {{ + flex: 1; + justify-content: center; + padding: 10px 8px; + font-size: 13px; + }} + .invoice-card {{ + padding: 24px 16px; + border-radius: 12px; + }} + .header {{ + flex-direction: column; + align-items: flex-start; + gap: 16px; + padding-bottom: 18px; + margin-bottom: 20px; + }} + .invoice-badge-box {{ + text-align: left; + width: 100%; + }} + .grid-details {{ + grid-template-columns: 1fr; + gap: 20px; + margin-bottom: 24px; + }} + .grid-payment-overview {{ + text-align: left !important; + }} + .detail-text {{ + word-break: break-word; + overflow-wrap: anywhere; + }} + .table-wrap table {{ + min-width: 480px; + }} + th, td {{ + padding: 10px 12px; + font-size: 13px; + }} + .summary-wrap {{ + justify-content: stretch; + }} + .summary-card {{ + width: 100%; + }} + }} @media print {{ body {{ background-color: #ffffff !important; @@ -640,7 +721,7 @@ class AdminPaymentService:
Acupedia Official Tax Invoice • {inv_number}
-
+
-
+
-
Gateway Reference: {payment_id}
+
Payment ID: {payment_id}
Payment Method: {pay_method}
Currency: {currency}
-
Status: Completed / Captured