Skip to content

feat: FL-187 adding close button#276

Merged
haiphucnguyen merged 1 commit intoflowinquiry:mainfrom
MrChatterjee98:main
Oct 24, 2025
Merged

feat: FL-187 adding close button#276
haiphucnguyen merged 1 commit intoflowinquiry:mainfrom
MrChatterjee98:main

Conversation

@MrChatterjee98
Copy link
Copy Markdown
Contributor

Description

Adding a close button to the iteration dialog box, which is enabled only for active iterations and can be used to close the current iteration.

Changes Made

Additional Notes

@MrChatterjee98
Copy link
Copy Markdown
Contributor Author

@haiphucnguyen please checkout this PR

Copy link
Copy Markdown
Collaborator

@haiphucnguyen haiphucnguyen left a comment

Choose a reason for hiding this comment

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

Hi @MrChatterjee98 , the PR looks good to me, thank you.

Just have a minor comment for coding improvement

let result: ProjectIterationDTO;
result = await closeProjectIteration(iteration?.id!);
onOpenChange(false);
if (onSave) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

can you change attributes:

onSave
onCancel
of the type ProjectIterationDialogProps is mandantory then we don't need to have a check

if (onSave) . I checked the logic from project view, we don't need to keep these method onSave, or onCancel as optional.

Note in the PR: just in case if we have an optional field onSave, instead of writing this code

if (onSave) {
   onSave(result);
}

with typescript, we can write the cleaner code

onSave?.(result)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I have made the necessary changes

Copy link
Copy Markdown
Collaborator

@haiphucnguyen haiphucnguyen left a comment

Choose a reason for hiding this comment

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

LGTM

@haiphucnguyen
Copy link
Copy Markdown
Collaborator

Thank you @MrChatterjee98 for the first PR on front-end side :)

@haiphucnguyen haiphucnguyen merged commit 11163c0 into flowinquiry:main Oct 24, 2025
6 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants