-
Notifications
You must be signed in to change notification settings - Fork 1
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
[UC05#155#156] Added functionality for users to add own physical cards to one of theirs custom decks #178
Conversation
…physical cards additions to custom deck
…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
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.
Good Job, nothing to declare!
…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()); |
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.
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>--> |
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.
Also here there's a comment to remove
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.
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 🥳
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 🚀