Repository navigation
feat(settings): add landing page disable toggle - #105
hitsmedia-grup wants to merge 13 commits into
Conversation
Let users disable the landing page from Settings. The preference is stored in localStorage; signed-out visitors go straight to login, and the login page hides its link back to the landing page.
Add a client-side fallback so signed-out visitors are redirected to login after hydration when the landing page is disabled.
Persist the landing-page preference in a cookie so the root route can redirect visitors server-side when the landing page is disabled.
|
@hitsmedia-grup is attempting to deploy a commit to the ilramdhan's projects Team on Vercel. A member of the Team first needs to authorize it. |
Allow subtasks to be added while creating a task, and save subtask entries in task template payloads. Include templates in backups. Template subtasks are stored but not yet prefilled when using a template.
|
Halo, makasih sudah kirim PR ini. Idenya masuk akal, untuk instance pribadi landing page memang sering tidak dibutuhkan. Aku sudah buatkan issue-nya di #107 supaya diskusinya ada tempatnya. Ada beberapa hal yang perlu diubah, dan satu di antaranya cukup mendasar. 1. PR ini dibuat dari branch
|
|
CI di sini merah karena PR ini masih memuat perubahan subtasks dari #106 (detail error-nya aku tulis di sana). Kalau nanti dibuat ulang dari branch sendiri yang hanya berisi commit landing, error itu akan hilang dengan sendirinya. Untuk formatnya, jalankan |
ab2aaa8 to
4508ec6
Compare
|
lanjut di kerjakan di #119 |
Summary
Adds a settings toggle to disable the landing page. When disabled, unauthenticated visitors are redirected directly to
/logininstead of showing the landing page at/.This is useful for private instances where the landing page is not needed and users want to go straight to login.
Implementation:
sb_landing_enabled) for SSR compatibility - eliminates flash/delay on redirectbeforeLoadreads cookie before rendering HTMLCloses # (none - proactive feature)
Type of change
feat– new featureHow to test
/)/loginwithout showing landing pageScreenshots / recordings
Not needed - simple toggle in settings page.
Checklist
bun run lint,bunx tsc --noEmitandbun run testpass locallybun run buildpasses (required for routing, server function or config changes)AGENTS.md(uses existing patterns from idle timeout setting, cookie storage matches theme/locale pattern)*.server.ts/ server functions and are never exposed viaVITE_*admLandingTitle,admLandingBody,admLandingEnabled)main