-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3931 from signalco-io/feat/doprocess/public-access
feat(doprocess): Public access to entities
- Loading branch information
Showing
36 changed files
with
394 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
web/apps/doprocess/app/api/processes/[id]/runs/[runId]/route.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
web/apps/doprocess/app/api/processes/[id]/runs/[runId]/tasks/route.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
web/apps/doprocess/app/api/processes/[id]/task-definitions/[taskDefinitionId]/route.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
web/apps/doprocess/app/api/processes/[id]/task-definitions/route.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 16 additions & 7 deletions
23
web/apps/doprocess/components/processes/documents/DocumentsList.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,27 @@ | ||
'use client'; | ||
|
||
import { SignedIn, SignedOut } from '@clerk/nextjs'; | ||
import { List } from '../../shared/List'; | ||
import { InAppCtaSignUp } from '../../shared/InAppCtaSignUp'; | ||
import { useDocuments } from '../../../src/hooks/useDocuments'; | ||
import { DocumentsListItem } from './DocumentsListItem'; | ||
import { DocumentCreateForm } from './DocumentCreateForm'; | ||
|
||
export function DocumentsList() { | ||
return ( | ||
<List | ||
query={useDocuments} | ||
itemRender={(item) => (<DocumentsListItem document={item} />)} | ||
editable | ||
itemCreateLabel="New document" | ||
createForm={<DocumentCreateForm redirect />} | ||
/> | ||
<> | ||
<SignedIn> | ||
<List | ||
query={useDocuments} | ||
itemRender={(item) => (<DocumentsListItem document={item} />)} | ||
editable | ||
itemCreateLabel="New document" | ||
createForm={<DocumentCreateForm redirect />} | ||
/> | ||
</SignedIn> | ||
<SignedOut> | ||
<InAppCtaSignUp /> | ||
</SignedOut> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 15 additions & 6 deletions
21
web/apps/doprocess/components/processes/processes/ProcessesList.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,26 @@ | ||
'use client'; | ||
|
||
import { SignedIn, SignedOut } from '@clerk/nextjs'; | ||
import { List } from '../../shared/List'; | ||
import { InAppCtaSignUp } from '../../shared/InAppCtaSignUp'; | ||
import { useProcesses } from '../../../src/hooks/useProcesses'; | ||
import { ProcessesListItem } from './ProcessesListItem'; | ||
import { ProcessCreateForm } from './ProcessCreateForm'; | ||
|
||
export function ProcessesList() { | ||
return ( | ||
<List | ||
query={useProcesses} | ||
itemRender={(item) => (<ProcessesListItem process={item} />)} | ||
editable | ||
itemCreateLabel="New process" | ||
createForm={<ProcessCreateForm redirect />} /> | ||
<> | ||
<SignedIn> | ||
<List | ||
query={useProcesses} | ||
itemRender={(item) => (<ProcessesListItem process={item} />)} | ||
editable | ||
itemCreateLabel="New process" | ||
createForm={<ProcessCreateForm redirect />} /> | ||
</SignedIn> | ||
<SignedOut> | ||
<InAppCtaSignUp /> | ||
</SignedOut> | ||
</> | ||
); | ||
} |
Oops, something went wrong.