Android: subscription-only with step-by-step computer instructions
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions

Remove .ics download option. Show clear 5-step instructions for
subscribing via calendar.google.com on computer, with copy button.
Explain that phone syncs automatically after computer setup.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Maciej Pienczyn 2026-03-25 16:48:01 +01:00
parent 338e02fb75
commit eb13fc857f

View File

@ -579,19 +579,23 @@
<span>Subskrybuj kalendarz</span>
</a>
<div id="subscribeAndroid" style="display:none;">
<a href="https://nordabiznes.pl/kalendarz/ical" download="norda-biznes.ics" style="display:flex; align-items:center; gap:10px; padding:14px 16px; background:#1d4ed8; border:none; border-radius:var(--radius); color:white; font-size:15px; font-weight:600; cursor:pointer; width:100%; margin-bottom:10px; text-decoration:none;">
<span style="font-size:22px;">📅</span>
<span>Pobierz wydarzenia do kalendarza</span>
</a>
<p style="font-size:12px; color:#64748b; line-height:1.6; margin:0 0 12px 0;">
Po pobraniu otwórz plik — wydarzenia zostaną dodane do Google Calendar.
<p style="font-size:14px; color:#1f2937; line-height:1.6; margin:0 0 14px 0;">
Google Calendar na telefonie nie pozwala subskrybować zewnętrznych kalendarzy.
Subskrypcję możesz dodać z <strong>komputera</strong> — potem automatycznie zsynchronizuje się z telefonem.
</p>
<div style="background:#fffbeb; border:1px solid #fde68a; border-radius:var(--radius); padding:10px 14px; font-size:12px; color:#92400e; line-height:1.6;">
<strong>Automatyczna synchronizacja:</strong> Aby nowe wydarzenia pojawiały się automatycznie, otwórz <strong>calendar.google.com</strong> na komputerze, kliknij + obok "Inne kalendarze" → "Z adresu URL" i wklej:<br>
<div style="display:flex; gap:6px; margin-top:6px;">
<input id="icalUrlAndroid" readonly value="https://nordabiznes.pl/kalendarz/ical" style="flex:1; padding:6px 8px; border:1px solid #fde68a; border-radius:var(--radius-sm); font-size:11px; background:white;">
<button onclick="var i=document.getElementById('icalUrlAndroid');i.select();document.execCommand('copy');this.textContent='OK!';var b=this;setTimeout(function(){b.textContent='Kopiuj'},2000)" style="padding:6px 12px; background:#92400e; color:white; border:none; border-radius:var(--radius-sm); font-size:11px; cursor:pointer; font-weight:600;">Kopiuj</button>
<div style="background:#f9fafb; border:1px solid #e5e7eb; border-radius:var(--radius); padding:14px; font-size:13px; line-height:1.8;">
<strong>Krok 1.</strong> Skopiuj link:
<div style="display:flex; gap:8px; margin:8px 0 14px 0;">
<input id="icalUrlAndroid" readonly value="https://nordabiznes.pl/kalendarz/ical" style="flex:1; padding:10px 12px; border:1px solid #d1d5db; border-radius:var(--radius); font-size:13px; background:white;">
<button onclick="var i=document.getElementById('icalUrlAndroid');i.select();document.execCommand('copy');this.textContent='Skopiowano!';this.style.background='#059669';var b=this;setTimeout(function(){b.textContent='Kopiuj';b.style.background='#1d4ed8'},2000)" style="padding:10px 16px; background:#1d4ed8; color:white; border:none; border-radius:var(--radius); font-size:13px; cursor:pointer; font-weight:600; white-space:nowrap;">Kopiuj</button>
</div>
<strong>Krok 2.</strong> Na komputerze otwórz <strong>calendar.google.com</strong><br>
<strong>Krok 3.</strong> W lewym panelu kliknij <strong>+</strong> obok "Inne kalendarze"<br>
<strong>Krok 4.</strong> Wybierz <strong>"Z adresu URL"</strong><br>
<strong>Krok 5.</strong> Wklej skopiowany link i kliknij <strong>"Dodaj kalendarz"</strong><br><br>
Wydarzenia pojawią się na telefonie automatycznie po synchronizacji.
</div>
</div>
<script>