Skip to content

Commit 87cecc5

Browse files
committed
Merge branch 'main' into kalilsn/memberships-have-forms
2 parents dafc9f7 + 64043b6 commit 87cecc5

File tree

71 files changed

+798
-2241
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+798
-2241
lines changed

.github/workflows/on_main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ jobs:
6363
PLATFORM_IMAGE: ${{ needs.build-all.outputs.core-image }}
6464
JOBS_IMAGE: ${{ needs.build-all.outputs.jobs-image }}
6565
MIGRATIONS_IMAGE: ${{ needs.build-all.outputs.base-image }}
66-
PUBLIC_URL: ${{ github.event.repository.html_url }}
6766
AWS_REGION: "us-east-1"
6867
ALWAYS_ON: "main"
68+
COMPOSE_FILES: docker-compose.preview.sandbox.yml
6969
secrets:
7070
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
7171
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

.github/workflows/on_pr.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ jobs:
6464
PLATFORM_IMAGE: ${{ needs.build-all.outputs.core-image }}
6565
JOBS_IMAGE: ${{ needs.build-all.outputs.jobs-image }}
6666
MIGRATIONS_IMAGE: ${{ needs.build-all.outputs.base-image }}
67-
PUBLIC_URL: ${{ github.event.repository.html_url }}
6867
AWS_REGION: "us-east-1"
68+
COMPOSE_FILES: docker-compose.preview.pr.yml
6969
secrets:
7070
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
7171
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
@@ -83,7 +83,6 @@ jobs:
8383
PLATFORM_IMAGE: "x" # not used
8484
JOBS_IMAGE: "x" # not used
8585
MIGRATIONS_IMAGE: "x" # not used
86-
PUBLIC_URL: ${{ github.event.repository.html_url }}
8786
AWS_REGION: "us-east-1"
8887
secrets:
8988
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}

.github/workflows/pull-preview.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ on:
1010
MIGRATIONS_IMAGE:
1111
required: true
1212
type: string
13-
PUBLIC_URL:
14-
required: true
15-
type: string
1613
AWS_REGION:
1714
required: true
1815
type: string
1916
ALWAYS_ON:
2017
required: false
2118
type: string
19+
COMPOSE_FILES:
20+
required: false
21+
type: string
2222
secrets:
2323
AWS_ACCESS_KEY_ID:
2424
required: true
@@ -65,10 +65,9 @@ jobs:
6565

6666
- uses: pullpreview/action@v5
6767
with:
68-
dns: preview.pubpub.org
6968
label: preview
7069
admins: 3mcd
71-
compose_files: ./self-host/docker-compose.yml,docker-compose.preview.yml
70+
compose_files: ./self-host/docker-compose.yml,docker-compose.preview.yml,${{ inputs.COMPOSE_FILES }}
7271
default_port: 443
7372
instance_type: small
7473
always_on: ${{ inputs.ALWAYS_ON }}

core/actions/pushToV6/action.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ export const action = defineAction({
1111
schema: z.object({
1212
communitySlug: z.string().describe("Community slug"),
1313
authToken: z.string().describe("PubPub v6 API auth token"),
14-
title: z.string().describe("Title of the pub"),
15-
content: z.string().describe("Content of the pub"),
14+
title: z.string().describe("Title of the Pub"),
15+
content: z.string().describe("Content of the Pub"),
1616
}),
1717
},
1818
description: "Sync a PubPub Platform pub to v6",

core/actions/types.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,28 +22,10 @@ type ZodObjectOrWrapped = z.ZodObject<any, any> | z.ZodEffects<z.ZodObject<any,
2222
export type ZodObjectOrWrappedOrOptional = ZodObjectOrWrapped | z.ZodOptional<ZodObjectOrWrapped>;
2323

2424
export type ActionPub = ProcessedPub<{
25-
withAssignee: true;
2625
withPubType: true;
2726
withRelatedPubs: undefined;
2827
}>;
2928

30-
// export type ActionPub<T extends ActionPubType> = {
31-
// id: PubsId;
32-
33-
// assignee?: {
34-
// id: string;
35-
// firstName: string;
36-
// lastName: string | null;
37-
// email: string;
38-
// };
39-
// communityId: CommunitiesId;
40-
// createdAt: Date;
41-
// title: string | null;
42-
// pubType: {
43-
// name: string;
44-
// };
45-
// };
46-
4729
export type RunProps<T extends Action> =
4830
T extends Action<
4931
infer P extends ActionPubType,

core/app/(user)/communities/actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const createCommunity = defineServerAction(async function createCommunity
3737
error: "User is not a super admin",
3838
};
3939
}
40-
if (slug === "unjournal" || slug === "croccroc") {
40+
if (slug === "legacy" || slug === "starter") {
4141
return {
4242
title: "Failed to remove community",
4343
error: "Cannot update example community",

core/app/c/(public)/[communitySlug]/public/forms/[formSlug]/fill/page.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,15 +144,14 @@ export default async function FormPage(props: {
144144
searchParams.pubId
145145
? await getPubsWithRelatedValues(
146146
{ pubId: searchParams.pubId, communityId: community.id },
147-
{ withStage: true, withLegacyAssignee: true, withPubType: true }
147+
{ withStage: true, withPubType: true }
148148
)
149149
: undefined,
150150
getPubsWithRelatedValues(
151151
{ communityId: community.id, userId: user?.id },
152152
{
153153
limit: 30,
154154
withStage: true,
155-
withLegacyAssignee: true,
156155
withPubType: true,
157156
}
158157
),

core/app/c/[communitySlug]/pubs/PubList.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ const PaginatedPubListInner = async (props: PaginatedPubListProps) => {
3636
withRelatedPubs: false,
3737
withStage: true,
3838
withValues: false,
39-
withLegacyAssignee: true,
4039
}
4140
),
4241
]);

core/app/c/[communitySlug]/pubs/[pubId]/page.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { Capabilities, MembershipType } from "db/public";
88
import { Button } from "ui/button";
99
import { Pencil } from "ui/icon";
1010

11-
import Assign from "~/app/c/[communitySlug]/stages/components/Assign";
1211
import Move from "~/app/c/[communitySlug]/stages/components/Move";
1312
import { MembersList } from "~/app/components//Memberships/MembersList";
1413
import { PubsRunActionDropDownMenu } from "~/app/components/ActionUI/PubsRunActionDropDownMenu";
@@ -252,12 +251,6 @@ export default async function Page(props: {
252251
readOnly={!canRemoveMember}
253252
/>
254253
</div>
255-
<div>
256-
<div className="mb-1 text-lg font-bold">Assignee</div>
257-
<div className="ml-4">
258-
<Assign members={communityMembers} pub={slimPub} />
259-
</div>
260-
</div>
261254
</div>
262255
</div>
263256
{(pubTypeHasRelatedPubs || pubHasRelatedPubs) && (

core/app/c/[communitySlug]/stages/components/Assign.tsx

Lines changed: 0 additions & 142 deletions
This file was deleted.

core/app/c/[communitySlug]/stages/components/AssignWrapper.tsx

Lines changed: 0 additions & 28 deletions
This file was deleted.

core/app/c/[communitySlug]/stages/components/StageList.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ export async function StagePubs({
113113
withValues: false,
114114
withStage: true,
115115
withPubType: true,
116-
withLegacyAssignee: true,
117116
}
118117
),
119118
getStageActions(stage.id).execute(),

core/app/c/[communitySlug]/stages/components/StagePubActions.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import type { CommunityStage } from "~/lib/server/stages";
88
import type { MemberWithUser } from "~/lib/types";
99
import { PubsRunActionDropDownMenu } from "~/app/components/ActionUI/PubsRunActionDropDownMenu";
1010
import { SkeletonButton } from "~/app/components/skeletons/SkeletonButton";
11-
import { AssignWrapper } from "./AssignWrapper";
1211
import Move from "./Move";
1312

1413
type Props = {
@@ -17,7 +16,6 @@ type Props = {
1716
withStage: true;
1817
withPubType: true;
1918
withRelatedValues: false;
20-
withLegacyAssignee: true;
2119
}>;
2220
stage: CommunityStage;
2321
actionInstances: ActionInstances[];
@@ -33,7 +31,6 @@ export const StagePubActions = async (props: Props) => {
3331
moveFrom={props.stage.moveConstraintSources}
3432
moveTo={props.stage.moveConstraints}
3533
/>
36-
<AssignWrapper pub={props.pub} members={props.members} />
3734
<Suspense fallback={<SkeletonButton className="w-20" />}>
3835
<PubsRunActionDropDownMenu
3936
pubId={props.pub.id}

0 commit comments

Comments
 (0)