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

Update success message after a linkloan command #102

Conversation

kjw142857
Copy link

Fixes #96.

Now when a linkloan command is executed, the person name will be shown, followed by the loan details in the next line.
E.g.

New loan linked to: John Lee
$500.00, 2024-01-02, 2024-03-01

@kjw142857 kjw142857 added this to the v1.3 milestone Apr 3, 2024
@kjw142857 kjw142857 self-assigned this Apr 3, 2024
Copy link

codecov bot commented Apr 3, 2024

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 49.57%. Comparing base (9e01d6e) to head (dfca9a4).

Files Patch % Lines
.../seedu/address/logic/commands/LinkLoanCommand.java 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             master     #102   +/-   ##
=========================================
  Coverage     49.57%   49.57%           
  Complexity      431      431           
=========================================
  Files            96       96           
  Lines          2124     2124           
  Branches        213      213           
=========================================
  Hits           1053     1053           
  Misses         1027     1027           
  Partials         44       44           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

@Joseph31416 Joseph31416 left a comment

Choose a reason for hiding this comment

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

Lgtm!


return new CommandResult(String.format(MESSAGE_SUCCESS, Messages.format(targetPerson)));
return new CommandResult(String.format(MESSAGE_SUCCESS, targetPerson.getName(),
linkedLoan));

Choose a reason for hiding this comment

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

Nice addition of better success message.

@Joseph31416 Joseph31416 merged commit 6cc2dc7 into AY2324S2-CS2103T-W13-1:master Apr 3, 2024
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update linkloan command to show the linked loan and person name only
2 participants