add unfollow-all button in settings, follow-nearby button, collapsible party groups with 3 states

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-02 22:40:52 +01:00
parent 5337214d18
commit 9f691c711b
4 changed files with 158 additions and 43 deletions
@@ -25,7 +25,7 @@ export function SettingsPage() {
const deviceId = useDeviceId()
const { needRefresh, checkForUpdate, applyUpdate } = usePwaUpdate()
const push = usePush()
const { follow } = useFollows()
const { follows, follow, unfollowAll } = useFollows()
const [checking, setChecking] = useState(false)
const [loading, setLoading] = useState(false)
const [result, setResult] = useState<GeoResult | null>(null)
@@ -184,6 +184,18 @@ export function SettingsPage() {
</div>
</section>
{/* --- Follows --- */}
{follows.length > 0 && (
<section>
<h2 className="text-sm font-semibold text-muted-foreground uppercase tracking-wide mb-2">Follows</h2>
<div className="flex flex-col gap-2">
<Button size="sm" variant="outline" onClick={unfollowAll}>
Allen Themen und Abgeordneten entfolgen ({follows.length})
</Button>
</div>
</section>
)}
{/* --- App Update --- */}
<section>
<h2 className="text-sm font-semibold text-muted-foreground uppercase tracking-wide mb-2">App-Update</h2>