- Apps built on the AT Protocol. Use your organization's identity to get started.
+ Apps built on the AT Protocol. Use your group's identity to get started.
{CONNECTED_APPS.map((app) => (
diff --git a/src/app/organizations/[groupDid]/edit-profile/page.tsx b/src/app/groups/[groupDid]/edit-profile/page.tsx
similarity index 96%
rename from src/app/organizations/[groupDid]/edit-profile/page.tsx
rename to src/app/groups/[groupDid]/edit-profile/page.tsx
index 4f4fa349..20c81884 100644
--- a/src/app/organizations/[groupDid]/edit-profile/page.tsx
+++ b/src/app/groups/[groupDid]/edit-profile/page.tsx
@@ -2,10 +2,10 @@
import React, { useState, useEffect, useCallback } from "react"
import { useRouter, useParams } from "next/navigation"
-import { getOrgProfile, putOrgProfile, getOrgMetadata, putOrgMetadata, uploadOrgBlob } from "@/lib/organizations/api"
+import { getOrgProfile, putOrgProfile, getOrgMetadata, putOrgMetadata, uploadOrgBlob } from "@/lib/groups/api"
import { resolvePdsUrl } from "@/lib/atproto/did"
import { getAvatarUrl, getBannerUrl } from "@/lib/atproto/profile"
-import type { OrgProfile, OrgOrganization } from "@/lib/organizations/types"
+import type { OrgProfile, GroupMetadata } from "@/lib/groups/types"
import type { CertifiedProfile, HypercertsSmallImage, HypercertsLargeImage } from "@/lib/atproto/types"
import Input from "@/components/ui/input"
import Textarea from "@/components/ui/textarea"
@@ -21,7 +21,7 @@ export default function EditOrgProfilePage() {
const groupDid = decodeURIComponent(params.groupDid as string)
const [profile, setProfile] = useState(null)
- const [metadata, setMetadata] = useState(null)
+ const [metadata, setMetadata] = useState(null)
const [pdsUrl, setPdsUrl] = useState(null)
const [isLoading, setIsLoading] = useState(true)
const [isSaving, setIsSaving] = useState(false)
@@ -32,7 +32,7 @@ export default function EditOrgProfilePage() {
const [description, setDescription] = useState("")
const [website, setWebsite] = useState("")
- // Organization metadata fields
+ // Group metadata fields
const [foundedDate, setFoundedDate] = useState("")
// Image upload state
@@ -139,7 +139,7 @@ export default function EditOrgProfilePage() {
}
// Build metadata update
- const updatedMetadata: OrgOrganization = {
+ const updatedMetadata: GroupMetadata = {
createdAt: metadata?.createdAt || new Date().toISOString(),
...(metadata?.organizationType && { organizationType: metadata.organizationType }),
...(metadata?.urls && { urls: metadata.urls }),
diff --git a/src/app/organizations/[groupDid]/page.tsx b/src/app/groups/[groupDid]/page.tsx
similarity index 88%
rename from src/app/organizations/[groupDid]/page.tsx
rename to src/app/groups/[groupDid]/page.tsx
index 4259f0c9..cbe7c9a4 100644
--- a/src/app/organizations/[groupDid]/page.tsx
+++ b/src/app/groups/[groupDid]/page.tsx
@@ -4,9 +4,9 @@ import React, { useState, useEffect, useCallback } from "react"
import { useRouter, useParams } from "next/navigation"
import { ArrowLeft, Edit3 } from "lucide-react"
import { useAuth } from "@/lib/auth/auth-context"
-import { useOrg } from "@/lib/organizations/org-context"
-import { getOrgProfile } from "@/lib/organizations/api"
-import type { OrgProfile } from "@/lib/organizations/types"
+import { useOrg } from "@/lib/groups/org-context"
+import { getOrgProfile } from "@/lib/groups/api"
+import type { OrgProfile } from "@/lib/groups/types"
import LoadingSpinner from "@/components/ui/loading-spinner"
import Button from "@/components/ui/button"
import Avatar from "@/components/ui/avatar"
@@ -16,12 +16,12 @@ export default function OrgProfilePage() {
const params = useParams()
const groupDid = decodeURIComponent(params.groupDid as string)
const { did } = useAuth()
- const { organizations } = useOrg()
+ const { groups } = useOrg()
const [profile, setProfile] = useState(null)
const [isLoading, setIsLoading] = useState(true)
- const org = organizations.find((o) => o.groupDid === groupDid)
+ const org = groups.find((o) => o.groupDid === groupDid)
const fetchProfile = useCallback(async (signal?: AbortSignal) => {
try {
@@ -47,12 +47,12 @@ export default function OrgProfilePage() {