Profile accounts: invites, any-Google sign-in, claiming People, visibility, Discord
Migration 076 adds a member role below viewer (the site and its own profile, never the admin: /api/admin now needs viewer), invites, person claims, a Discord link on accounts and people.hide_* switches. Public reads of people go through v_people_public, which nulls hidden fields, and the views that read people are rebuilt over it. Admins invite an email from Data -> Profile accounts (link shown once, emailed on request). The invitee sets a password or signs in with any Google account under that email, asks to claim their People record, and once approved edits it and chooses what shows at /account. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
0cc2a3f721
commit
e4c7e165d1
34 changed files with 2483 additions and 74 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import { Link } from "react-router-dom";
|
||||
import { useNavSections } from "../lib/navSections.ts";
|
||||
import { useSiteNav } from "../lib/useSiteNav.ts";
|
||||
import { useAuth } from "../lib/auth.tsx";
|
||||
import SiteLink from "./SiteLink.tsx";
|
||||
import siteLogo from "../assets/logos/NGU_Logo.svg";
|
||||
import PlatformIcon from "./PlatformIcon.tsx";
|
||||
|
|
@ -10,7 +11,8 @@ import { SOCIAL_LINKS } from "../data/socialLinks.ts";
|
|||
/* Every link here is Pages → Navigation's (useSiteNav): the filled
|
||||
header buttons (Give) beside the logo, Get in Touch, the site map
|
||||
(the header's pages, their sections and the pages set under them)
|
||||
and the bottom row. */
|
||||
and the bottom row. The bottom row ends with the profile account's
|
||||
way in (076): Sign in, or Your profile once signed in. */
|
||||
|
||||
const footerLinkClass =
|
||||
"text-white/65 hover:text-[var(--pal-green-2)] text-sm transition-colors";
|
||||
|
|
@ -27,6 +29,7 @@ const headingClass = "text-white/90 text-sm font-semibold mb-4";
|
|||
export default function Footer() {
|
||||
const sectionsOf = useNavSections();
|
||||
const nav = useSiteNav();
|
||||
const { user } = useAuth();
|
||||
return (
|
||||
<footer className="py-16 px-6" style={{ background: "#001011" }}>
|
||||
<div className="max-w-6xl mx-auto">
|
||||
|
|
@ -144,12 +147,15 @@ export default function Footer() {
|
|||
|
||||
<div className="border-t border-white/10 pt-8 flex flex-col md:flex-row items-center justify-between gap-4">
|
||||
<p className="text-white/65 text-sm">© 2026 Next Generation of Unity. All rights reserved.</p>
|
||||
<div className="flex gap-6">
|
||||
<div className="flex flex-wrap justify-center gap-x-6 gap-y-2">
|
||||
{nav.legal.map((link) => (
|
||||
<SiteLink key={`${link.label}${link.path}`} link={link} className={footerLinkClass}>
|
||||
{link.label}
|
||||
</SiteLink>
|
||||
))}
|
||||
<Link to={user ? "/account" : "/sign-in"} className={footerLinkClass}>
|
||||
{user ? "Your profile" : "Sign in"}
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue