-
Notifications
You must be signed in to change notification settings - Fork 0
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: add an ability to edit a project gf-88 #137
Conversation
apps/frontend/src/pages/projects/components/project-card/styles.module.css
Outdated
Show resolved
Hide resolved
apps/frontend/src/pages/projects/components/project-card/project-card.tsx
Outdated
Show resolved
Hide resolved
}); | ||
} | ||
|
||
const projectWithSameName = await this.projectRepository.findByName( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as in other places
const projectWithSameName = await this.projectRepository.findByName( | |
const existingProject = await this.projectRepository.findByName( |
projectData.name, | ||
); | ||
|
||
if (projectWithSameName && projectWithSameName.getId() !== id) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove getId method
if (projectWithSameName && projectWithSameName.getId() !== id) { | |
if (existingProject && existingProject.toObject().id !== id) { |
apps/frontend/src/libs/components/menu-item/libs/constants/icon-size.constant.ts
Outdated
Show resolved
Hide resolved
apps/frontend/src/libs/hooks/use-popover-state/use-popover-state.hook.ts
Outdated
Show resolved
Hide resolved
apps/frontend/src/pages/projects/components/project-popover/project-popover.tsx
Outdated
Show resolved
Hide resolved
apps/frontend/src/pages/projects/components/project-popover/project-popover.tsx
Outdated
Show resolved
Hide resolved
apps/frontend/src/pages/projects/components/project-popover/project-popover.tsx
Outdated
Show resolved
Hide resolved
apps/frontend/src/pages/projects/components/project-popover/project-popover.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm after Lisa's comments
Add an options icon at the end of the project list item.
When the icon is clicked, an options menu should be opened with an Edit option.
On the Edit item click, a modal should be opened to update a project.
The data for the modal should be prepopulated with the current project data.
The validation is the same as for project creation