-
Notifications
You must be signed in to change notification settings - Fork 63
Conversation
6e01371
to
3b0f1c6
Compare
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.
Excellent!
</template> | ||
|
||
<script lang="ts"> | ||
import sortBy from 'lodash.sortby' |
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.
TIL lodash.sortby
is over 2300 LOC 😱 Good thing we have #1108 😁
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.
🤯
@@ -19,5 +19,4 @@ | |||
@import 'components/image'; | |||
@import 'components/navbar'; | |||
@import 'components/card'; | |||
@import 'components/table'; |
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.
Yesssssss 🎉
<h5>{{ $t('sources.heading.audio') }}</h5> | ||
<VSourcesTable media="audio" /> |
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!! 🤩
It looks great. I like how the sort works. I noticed one thing. The header row should have Great work ✨ |
Size Change: +27.1 kB (+2%) Total Size: 1.41 MB
|
I don't know why the hashed names are being used for the main branch, causing the size diff to fail like that |
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.
I can't wait to get rid of lodash.sortBy
. I can also see some opportunities to make this table a more generic VDataTable
and decouple if from the sources themselves, but that would be a premature abstraction, I think. This looks great!
Fixes
Fixes #1088 by @zackkrida
Related to #1155 by @obulat (not fixes because no design decisions have been made yet)
Description
This PR creates a
VSourcesTable
that extracts all the table styles. It uses the second approach from the linked issue: instead of trying to implement a very generic table, it only creates a component specific for the Sources table. If/when we have other tables, we can either create a new component, or extract common styles/behaviors from this component.Other changes include:
table.scss
dark-charcoal-06
, font size set to 14pxTesting Instructions
Open the Sources page, try changing the sorting in the table.
Checklist
Update index.md
).main
) or a parent feature branch.Developer Certificate of Origin
Developer Certificate of Origin