diff --git a/web/src/lib/components/org/CreationForm.svelte b/web/src/lib/components/org/CreationForm.svelte new file mode 100644 index 000000000..ec562ddd9 --- /dev/null +++ b/web/src/lib/components/org/CreationForm.svelte @@ -0,0 +1,176 @@ + + + + +
{ + event.preventDefault(); + if (!action.loading) void action.run(); + }} +> +
+
+ 1 +
+
+

Details

+

+ Basic organization information. +

+
+ + +
+
+
+ +
+
+ 2 +
+
+

Members

+

+ Add members who can manage this organization's repositories. You're added automatically as + the owner. +

+ +
+
+ + {#if incompleteOrg} +
+
+
+
+ {/if} + +
+ {#if incompleteOrg} + + {/if} + +
+ diff --git a/web/src/lib/components/org/DetailsFields.stories.svelte b/web/src/lib/components/org/DetailsFields.stories.svelte new file mode 100644 index 000000000..c474a8fe9 --- /dev/null +++ b/web/src/lib/components/org/DetailsFields.stories.svelte @@ -0,0 +1,31 @@ + + + +
+ +
+
+ + +
+ +
+
diff --git a/web/src/lib/components/org/DetailsFields.svelte b/web/src/lib/components/org/DetailsFields.svelte new file mode 100644 index 000000000..9f84a601a --- /dev/null +++ b/web/src/lib/components/org/DetailsFields.svelte @@ -0,0 +1,78 @@ + + +
+
+ + +

+ Lowercase letters, digits, and hyphens; 4-63 characters. +

+
+ +
+ + +
+ +
+ + +
+
diff --git a/web/src/lib/components/profile/ProfileCard.svelte b/web/src/lib/components/profile/ProfileCard.svelte index 51a75b341..519067f82 100644 --- a/web/src/lib/components/profile/ProfileCard.svelte +++ b/web/src/lib/components/profile/ProfileCard.svelte @@ -8,6 +8,7 @@ import Link from "$icon/link"; import Pencil from "$icon/pencil"; import Rss from "$icon/rss"; + import Building2 from "$icon/building-2"; import { resolve } from "$app/paths"; import ReportItems from "$lib/components/moderation/ReportItems.svelte"; import Avatar from "$lib/components/ui/Avatar.svelte"; @@ -69,6 +70,12 @@
+ {#if shown?.isOrganization} + + + {/if}

{identity.handle}

diff --git a/web/src/lib/components/shell/Topbar.svelte b/web/src/lib/components/shell/Topbar.svelte index bf730d330..081a05438 100644 --- a/web/src/lib/components/shell/Topbar.svelte +++ b/web/src/lib/components/shell/Topbar.svelte @@ -42,6 +42,7 @@ import ArrowRight from "$icon/arrow-right"; import BookMarked from "$icon/book-marked"; import BookPlus from "$icon/book-plus"; + import Building2 from "$icon/building-2"; import Cog from "$icon/cog"; import LineSquiggle from "$icon/line-squiggle"; import LogOut from "$icon/log-out"; @@ -132,6 +133,9 @@ New string + New organization
diff --git a/web/src/lib/components/ui/AvatarPicker.stories.svelte b/web/src/lib/components/ui/AvatarPicker.stories.svelte new file mode 100644 index 000000000..cca78bf2f --- /dev/null +++ b/web/src/lib/components/ui/AvatarPicker.stories.svelte @@ -0,0 +1,35 @@ + + + + +
+ +
+
+ + + +
+ +
+
diff --git a/web/src/lib/components/ui/AvatarPicker.svelte b/web/src/lib/components/ui/AvatarPicker.svelte new file mode 100644 index 000000000..9a52663d7 --- /dev/null +++ b/web/src/lib/components/ui/AvatarPicker.svelte @@ -0,0 +1,82 @@ + + + + +
+ +
+{#if error} +

{error}

+{/if} diff --git a/web/src/lib/components/ui/MemberListInput.stories.svelte b/web/src/lib/components/ui/MemberListInput.stories.svelte new file mode 100644 index 000000000..7d4843daf --- /dev/null +++ b/web/src/lib/components/ui/MemberListInput.stories.svelte @@ -0,0 +1,37 @@ + + + + + +
+ +
+
+ + +
+ +
+
diff --git a/web/src/lib/components/ui/MemberListInput.svelte b/web/src/lib/components/ui/MemberListInput.svelte new file mode 100644 index 000000000..f50205050 --- /dev/null +++ b/web/src/lib/components/ui/MemberListInput.svelte @@ -0,0 +1,84 @@ + + + + {#snippet tag(t)} + + {/snippet} + {#snippet suggestion(t)} + + {/snippet} + diff --git a/web/src/lib/components/ui/User.svelte b/web/src/lib/components/ui/User.svelte index 3d23c6d03..bff8b0c19 100644 --- a/web/src/lib/components/ui/User.svelte +++ b/web/src/lib/components/ui/User.svelte @@ -4,8 +4,8 @@ export const user = tv({ slots: { - root: "inline-flex items-center", - handle: "truncate" + root: "inline-flex min-w-0 items-center", + handle: "min-w-0 truncate" }, variants: { size: {