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

671 [Pivot Table] Droppable #690

Merged
merged 18 commits into from
Aug 16, 2021
Merged

671 [Pivot Table] Droppable #690

merged 18 commits into from
Aug 16, 2021

Conversation

wagnerbsantos
Copy link
Contributor

@wagnerbsantos wagnerbsantos commented Aug 4, 2021

Part of #657

closes #671

@vercel vercel bot temporarily deployed to Preview August 4, 2021 14:40 Inactive
@wagnerbsantos wagnerbsantos linked an issue Aug 4, 2021 that may be closed by this pull request
@vercel vercel bot temporarily deployed to Preview August 4, 2021 17:53 Inactive
@vercel vercel bot temporarily deployed to Preview August 4, 2021 19:58 Inactive
@vercel vercel bot temporarily deployed to Preview August 4, 2021 20:12 Inactive
@codecov
Copy link

codecov bot commented Aug 4, 2021

Codecov Report

Merging #690 (851e3d9) into master (de4d3e8) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #690      +/-   ##
==========================================
+ Coverage   98.58%   98.60%   +0.01%     
==========================================
  Files         475      476       +1     
  Lines        4108     4161      +53     
  Branches      636      631       -5     
==========================================
+ Hits         4050     4103      +53     
  Misses         58       58              
Impacted Files Coverage Δ
src/components/PivotTable/Draggable/Draggable.tsx 100.00% <ø> (ø)
...omponents/PivotTable/Draggable/FilterDraggable.tsx 100.00% <ø> (ø)
src/components/PivotTable/Draggable/style.ts 100.00% <ø> (ø)
...nents/PivotTable/Draggable/types/ActualQuantity.ts 100.00% <ø> (ø)
src/components/PivotTable/Draggable/util.ts 100.00% <ø> (ø)
src/i18n/locales/en-US.ts 100.00% <ø> (ø)
src/i18n/locales/pt-BR.ts 100.00% <ø> (ø)
...c/components/PivotTable/Draggable/DraggableRow.tsx 100.00% <100.00%> (ø)
...mponents/PivotTable/Draggable/DraggableWrapper.tsx 100.00% <100.00%> (ø)
...ponents/PivotTable/Draggable/InternalDraggable.tsx 100.00% <100.00%> (ø)
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update de4d3e8...851e3d9. Read the comment docs.

@vercel vercel bot temporarily deployed to Preview August 5, 2021 15:43 Inactive
@wagnerbsantos wagnerbsantos requested a review from zDudaHang August 5, 2021 15:59
Copy link
Contributor

@zDudaHang zDudaHang left a comment

Choose a reason for hiding this comment

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

Tá 🔝
Só alguns detalhes

src/components/PivotTable/Droppable/Droppable.stories.tsx Outdated Show resolved Hide resolved
src/components/PivotTable/Droppable/Droppable.stories.tsx Outdated Show resolved Hide resolved
src/components/PivotTable/Droppable/Droppable.tsx Outdated Show resolved Hide resolved
src/components/PivotTable/Droppable/Droppable.tsx Outdated Show resolved Hide resolved
src/components/PivotTable/Droppable/Droppable.test.tsx Outdated Show resolved Hide resolved
src/components/PivotTable/Droppable/Droppable.test.tsx Outdated Show resolved Hide resolved
src/components/PivotTable/Droppable/Droppable.test.tsx Outdated Show resolved Hide resolved
src/components/PivotTable/Droppable/Droppable.test.tsx Outdated Show resolved Hide resolved
src/components/PivotTable/Droppable/Droppable.test.tsx Outdated Show resolved Hide resolved
@vercel vercel bot temporarily deployed to Preview August 6, 2021 16:56 Inactive
@vercel vercel bot temporarily deployed to Preview August 6, 2021 18:19 Inactive
@vercel vercel bot temporarily deployed to Preview August 9, 2021 13:52 Inactive
-> Adding i18n to droppable messages
-> Fixing droppable stories
-> Adding a check for filterState and handleFilterUpdate props
@vercel vercel bot temporarily deployed to Preview August 9, 2021 17:31 Inactive
@vercel vercel bot temporarily deployed to Preview August 9, 2021 17:42 Inactive
@vercel vercel bot temporarily deployed to Preview August 9, 2021 18:12 Inactive
zDudaHang
zDudaHang previously approved these changes Aug 9, 2021
@vercel vercel bot temporarily deployed to Preview August 9, 2021 18:17 Inactive
@lucasjoao lucasjoao requested a review from calistro August 12, 2021 16:02
@Andrevmatias Andrevmatias self-assigned this Aug 12, 2021
@lucasjoao lucasjoao self-requested a review August 12, 2021 18:50
Andrevmatias
Andrevmatias previously approved these changes Aug 12, 2021
Copy link
Contributor

@Andrevmatias Andrevmatias left a comment

Choose a reason for hiding this comment

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

Great work! Just commented some points to review. Also, why did you put these components inside the PivotTable context? I think it can be really useful outside this component too.

src/components/PivotTable/Draggable/Draggable.tsx Outdated Show resolved Hide resolved
src/components/PivotTable/Droppable/Droppable.tsx Outdated Show resolved Hide resolved
src/components/PivotTable/Droppable/style.ts Outdated Show resolved Hide resolved
src/components/PivotTable/Droppable/Droppable.tsx Outdated Show resolved Hide resolved
src/components/PivotTable/Droppable/Droppable.tsx Outdated Show resolved Hide resolved
src/components/PivotTable/Droppable/Droppable.tsx Outdated Show resolved Hide resolved
@Andrevmatias Andrevmatias removed their assignment Aug 12, 2021
lucasjoao
lucasjoao previously approved these changes Aug 12, 2021
Copy link
Contributor

@lucasjoao lucasjoao left a comment

Choose a reason for hiding this comment

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

💯

I just commented some things that could be different.

src/components/PivotTable/Droppable/style.ts Outdated Show resolved Hide resolved
src/components/PivotTable/Droppable/Droppable.test.tsx Outdated Show resolved Hide resolved
src/components/PivotTable/Droppable/style.ts Outdated Show resolved Hide resolved
src/components/PivotTable/Droppable/Droppable.tsx Outdated Show resolved Hide resolved
src/components/PivotTable/Droppable/Droppable.tsx Outdated Show resolved Hide resolved
src/components/PivotTable/Draggable/Draggable.tsx Outdated Show resolved Hide resolved
@lucasjoao
Copy link
Contributor

lucasjoao commented Aug 12, 2021

Great work! Just commented some points to review. Also, why did you put these components inside the PivotTable context? I think it can be really useful outside this component too.

The change of context happened because we have some doubts about the final result from issue #657.

Who use the Bold will call a one component called PivotTable? Or will mount your own pivot table calling others components (e.g. Droppable)?

For now we don't have answers for these questions (suggestions are welcome). I wrote in the issue about this and create a note in the team board too.

So these change of context could be rolled back in the future :)

@zDudaHang zDudaHang dismissed stale reviews from lucasjoao and Andrevmatias via 3f54082 August 12, 2021 21:37
@vercel vercel bot temporarily deployed to Preview August 12, 2021 21:38 Inactive
@zDudaHang zDudaHang requested a review from lucasjoao August 12, 2021 21:41
@vercel vercel bot temporarily deployed to Preview August 12, 2021 21:44 Inactive
@vercel vercel bot temporarily deployed to Preview August 12, 2021 22:06 Inactive
Copy link
Contributor

@lucasjoao lucasjoao left a comment

Choose a reason for hiding this comment

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

Just left one doubt after the fixes. Good job!

Comment on lines 75 to 79
const { name, keyState, keyMapping, accept, filter, handleKeyUpdate, onKeyNav } = props

const locale = useLocale()

const [{ isOver }, drag] = useDrop({
Copy link
Contributor

Choose a reason for hiding this comment

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

The logic that throw error in some scenarios isnt more necessary?

Copy link
Contributor

Choose a reason for hiding this comment

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

The second check is no longer necessary because DroppableFilter ensures that filterState and handleFilterUpdate must be defined together.
In relation to the first, it remains necessary. I will fix this

@ucapostal ucapostal requested a review from Andrevmatias August 13, 2021 13:17
Andrevmatias
Andrevmatias previously approved these changes Aug 13, 2021
@Andrevmatias Andrevmatias removed their assignment Aug 13, 2021
Copy link
Contributor

@lucasjoao lucasjoao left a comment

Choose a reason for hiding this comment

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

Waiting the fix from this comment

@vercel vercel bot temporarily deployed to Preview August 16, 2021 16:46 Inactive
@zDudaHang zDudaHang requested a review from lucasjoao August 16, 2021 16:46
@lucasjoao lucasjoao removed the request for review from calistro August 16, 2021 17:32
@fabmatos fabmatos merged commit 46d7445 into master Aug 16, 2021
@fabmatos fabmatos deleted the 671-droppable branch August 16, 2021 20:24
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.

(13) [Pivot table] Droppable
6 participants