-
Notifications
You must be signed in to change notification settings - Fork 39
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
The (Editor and Collection) Merge #108
Conversation
Is this ready for review? Just tried it and seems to have quite a few problems (e.g. deck doesn't appear in list when you add a new deck) + unused functions in Tip: you can mark the PR as "draft" if it's not ready for review (that way other people can have a look if they want to, but they know it's not blocking!) |
I ran eslint and resolved all warnings. Sorry for that will try to do better in the future.. @norswap I tried cloning my PR fresh and still cannot reproduce the issue you're having with decks not appearing in the list.
Keeping this issue in draft until I know more. |
Might be on my side, maybe I need to rerun |
I can reprod, both on Chrome & Firefox, even if I clone fresh. To be clear, after creating the deck, I expect it to show in the right sidebar, instead, only "New Deck" is shown. |
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.
Posting some comments I'd enqueued — not a complete review
packages/webapp/src/components/editor/cardCollectionDisplay.tsx
Outdated
Show resolved
Hide resolved
packages/webapp/src/components/editor/deckConstructionPanel.tsx
Outdated
Show resolved
Hide resolved
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.
Will continue reviewing tomorrow, here's a first batch of comments.
packages/webapp/src/components/collection/cardCollectionDisplay.tsx
Outdated
Show resolved
Hide resolved
packages/webapp/src/components/collection/cardCollectionDisplay.tsx
Outdated
Show resolved
Hide resolved
packages/webapp/src/components/collection/cardCollectionDisplay.tsx
Outdated
Show resolved
Hide resolved
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.
Nice work! Let's get the comments sorted and we can merge this :)
packages/webapp/src/components/collection/deckCollectionDisplay.tsx
Outdated
Show resolved
Hide resolved
packages/webapp/src/components/collection/deckConstructionPanel.tsx
Outdated
Show resolved
Hide resolved
packages/webapp/src/components/collection/deckConstructionPanel.tsx
Outdated
Show resolved
Hide resolved
packages/webapp/src/components/collection/deckConstructionPanel.tsx
Outdated
Show resolved
Hide resolved
packages/webapp/src/components/collection/deckConstructionPanel.tsx
Outdated
Show resolved
Hide resolved
Thanks for the review @norswap. Edit: not ready for re-review. |
Minor CSS issues now with Aritra's changes, but will be fixed in upcoming PR for onchaining decks. |
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.
This is progressing nicely! We're dealing with the finer details now.
Also don't forget to rebase regularly!
packages/webapp/src/components/collection/deckConstructionPanel.tsx
Outdated
Show resolved
Hide resolved
packages/webapp/src/components/collection/cardCollectionDisplay.tsx
Outdated
Show resolved
Hide resolved
packages/webapp/src/components/collection/cardCollectionDisplay.tsx
Outdated
Show resolved
Hide resolved
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.
The history is a bit of a mess, but I think everything from the first "make check issues" to the end can be squashed together via an interactive rebase. Let's sync on telegram, maybe do a call and I'll walk you through how to do that.
Regarding the UI, we're progressing but not quite there yet. The textfield still overflows and the buttons don't flow vertically when needed. I suggest playing with resizing the window to see how it behaves!
packages/webapp/src/components/collection/cardCollectionDisplay.tsx
Outdated
Show resolved
Hide resolved
Global feedback:
Still, this is pretty usable, so I'm going to merge this now, so we can enable prettier globally. Then I think the next priorities should be:
|
Context (Problem, Motivation, Solution)
Editor was added in my previous PR. This editor was based on the Collection view, and shared a lot of component and functionality. Instead of maintaining the two, I now combined them.
Merge Collection and Editor
Describe Your Changes
Both Collection and Editor had these two components:
On the left: Search/Filter panel
Middle: Card collection
In Collection:
On the right: Player's completed decks
In Editor:
On the right: Player's deck that is under construction
Each of these components have been factored out into their own component.
Editor has been removed, and the Collection now keeps track on whether the player is in editing mode or not.
Index file has been updated to remove the editor shortcut.
Additionally, variables within the collection view have been reordered and grouped by the functionality they support.
Checklist
make check
and fixed resulting issuesTesting
Exploration testing to make sure there are is no regression within the Collection view.