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: add an ability to edit a project gf-88 #137

Merged
merged 19 commits into from
Sep 4, 2024
Merged

Conversation

sandrvvu
Copy link
Collaborator

@sandrvvu sandrvvu commented Sep 1, 2024

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

image
image
image

@sandrvvu sandrvvu changed the title feat: add an ability to edit a project gf-8 feat: add an ability to edit a project gf-88 Sep 1, 2024
@sandrvvu sandrvvu removed the conflicts label Sep 2, 2024
@sandrvvu sandrvvu marked this pull request as ready for review September 2, 2024 11:50
});
}

const projectWithSameName = await this.projectRepository.findByName(
Copy link
Collaborator

Choose a reason for hiding this comment

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

as in other places

Suggested change
const projectWithSameName = await this.projectRepository.findByName(
const existingProject = await this.projectRepository.findByName(

projectData.name,
);

if (projectWithSameName && projectWithSameName.getId() !== id) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove getId method

Suggested change
if (projectWithSameName && projectWithSameName.getId() !== id) {
if (existingProject && existingProject.toObject().id !== id) {

@github-actions github-actions bot added the root label Sep 3, 2024
@sandrvvu sandrvvu removed the conflicts label Sep 3, 2024
@sandrvvu sandrvvu requested a review from liza-veis September 3, 2024 14:12
Copy link
Contributor

@what1s1ove what1s1ove left a 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

@sandrvvu sandrvvu requested a review from liza-veis September 4, 2024 08:46
@sandrvvu sandrvvu requested a review from liza-veis September 4, 2024 12:49
@liza-veis liza-veis merged commit 92b59e0 into main Sep 4, 2024
6 checks passed
@github-actions github-actions bot mentioned this pull request Sep 4, 2024
@github-actions github-actions bot mentioned this pull request Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

Successfully merging this pull request may close these issues.

6 participants