-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(workspaces): remove form from workspace (#6754)
* feat: route to remove workspace from forms * feat: FE mutation to remove form from workspaces * feat: add remove form from workspace to row actions * chore: remove deprecated workspace form routes * fix: design review * fix: show workspace header for empty workspaces * fix: span the workspace content * test: workspace route test for removing from * feat: use a post request for removing forms for extensibility * test: update tests * fix: update remove form workspace service users * test: fix admin form controller tests * refactor: abstract out empty workspace components * chore: update meta action name and messages * refactor: de-DRY workspace click * chore: remove unused method and imports * fix: revert mobile margins * fix: prevent overflow of folder name in mobile
- Loading branch information
Showing
23 changed files
with
281 additions
and
262 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
13 changes: 13 additions & 0 deletions
13
frontend/src/features/workspace/components/EmptyWorkspace/EmptyDefaultWorkspace.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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { EmptyWorkspace, EmptyWorkspacePage } from './EmptyWorkspace' | ||
|
||
export const EmptyDefaultWorkspace = ({ | ||
isLoading, | ||
handleOpenCreateFormModal, | ||
}: EmptyWorkspacePage) => ( | ||
<EmptyWorkspace | ||
isLoading={isLoading} | ||
handleOpenCreateFormModal={handleOpenCreateFormModal} | ||
title={"You don't have any forms yet"} | ||
subText={'Get started by creating a new form'} | ||
/> | ||
) |
9 changes: 9 additions & 0 deletions
9
frontend/src/features/workspace/components/EmptyWorkspace/EmptyNewWorkspace.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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { EmptyWorkspace, EmptyWorkspacePage } from './EmptyWorkspace' | ||
|
||
export const EmptyNewWorkspace = ({ isLoading }: EmptyWorkspacePage) => ( | ||
<EmptyWorkspace | ||
isLoading={isLoading} | ||
title={'You don’t have any forms in this folder yet'} | ||
subText={'Organise your forms by grouping them into folders'} | ||
/> | ||
) |
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
3 changes: 2 additions & 1 deletion
3
frontend/src/features/workspace/components/EmptyWorkspace/index.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export { EmptyWorkspace } from './EmptyWorkspace' | ||
export { EmptyDefaultWorkspace } from './EmptyDefaultWorkspace' | ||
export { EmptyNewWorkspace } from './EmptyNewWorkspace' |
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
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
Oops, something went wrong.