Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(front): duplicate projects and scenarios [MARXAN-599] #375

Merged
merged 9 commits into from
Jul 28, 2021

Conversation

anamontiaga
Copy link
Collaborator

Duplicate projects and scenarios

Overview

At the moment only posting a project id to be able to generate a response of this data project with a "duplicate key" and "user who duplicates it".

Feature relevant tickets

MARXAN-599

@anamontiaga anamontiaga added Frontend Everything related frontend WIP Work in progress New feature New Feature labels Jul 27, 2021
@vercel
Copy link

vercel bot commented Jul 27, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

marxan – ./app

🔍 Inspect: https://vercel.com/vizzuality1/marxan/9cCg9gRoHqMgEDQooYZtRTWijtaU
✅ Preview: https://marxan-git-feat-duplicate-projects-scenarios-vizzuality1.vercel.app

marxan-storybook – ./app

🔍 Inspect: https://vercel.com/vizzuality1/marxan-storybook/ZQk189k6TxmyweMuR3jmpGBMuYFC
✅ Preview: https://marxan-storybook-git-feat-duplicate-projects-8d289c-vizzuality1.vercel.app

@anamontiaga
Copy link
Collaborator Author

I am not sure if success/error toasts must be mapped to show various in column

@anamontiaga anamontiaga added WIP Work in progress and removed Ready to review PR ready to review labels Jul 28, 2021

const onDuplicate = useCallback(() => {
// Name must be the new one defined by the user
duplicateProjectMutation.mutate({ id, data: name }, {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

data is not part of the props, that's why the deploy is failling. For now, don't add it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

resolved it.

@mbarrenechea mbarrenechea merged commit 02e93e0 into develop Jul 28, 2021
@mbarrenechea mbarrenechea deleted the feat/duplicate-projects-scenarios branch July 28, 2021 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Frontend Everything related frontend New feature New Feature Ready to review PR ready to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants