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

[UC05#155#156] Added functionality for users to add own physical cards to one of theirs custom decks #178

Conversation

alessioarcara
Copy link
Owner

This PR implements #155, #156 and adds a new method called addPhysicalCardsToCustomDeck in the DecksActivity to add owned physical cards to a custom deck via RPC call. Additionally, the decks collection has been changed from a HashMap to a LinkedHashMap to ensure the ordering of keys (and thus deck names).
Tests for the new method were also added.

Oopsie Doopsie, we've reached 300 tests 🚀

alessioarcara added 2 commits February 8, 2023 12:01
…llow adding physical cards to custom decks and fixed bug where addButton was not enabled when a card was selected before creating a new deck
Copy link
Collaborator

@dstops dstops left a comment

Choose a reason for hiding this comment

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

Good Job, nothing to declare!

alessioarcara added 3 commits February 8, 2023 19:26
…stom-Deck-RPC

# Conflicts:
#	src/main/java/com/aadm/cardexchange/server/services/DeckServiceImpl.java
#	src/main/java/com/aadm/cardexchange/shared/DeckService.java
#	src/main/java/com/aadm/cardexchange/shared/DeckServiceAsync.java
…o s05_UC15#155#156_Add-Physical-Cards-To-Custom-Deck
@@ -80,6 +82,7 @@ public DeckWidget(ImperativeHandleDeck deckHandler, ImperativeHandleCustomDeck c
}

public void setData(List<PhysicalCardWithName> data, String selectedCardId) {
Logger.getLogger("adsasd").info(data.toString());
Copy link
Collaborator

Choose a reason for hiding this comment

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

There is a logger to remove

<g:Button styleName="deckButton {style.showButton}" ui:field="showButton">></g:Button>
</div>
<g:HTMLPanel styleName="{style.actions}" ui:field="actions">
<!-- <g:Button styleName="deckButton {style.showButton}" ui:field="showButton">></g:Button>-->
Copy link
Collaborator

Choose a reason for hiding this comment

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

Also here there's a comment to remove

Copy link
Collaborator

@alessiacrimaldi alessiacrimaldi left a comment

Choose a reason for hiding this comment

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

Okay, all right! Just be careful to re-read the code when you’re making prints or comments which are no longer useful.

P.S: Oopsiee Doopsieee for the 300 tests 🥳

@alessiacrimaldi alessiacrimaldi merged commit 0e0455b into development Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
3 participants