-
-
Notifications
You must be signed in to change notification settings - Fork 240
feat: sort contributors list by role #1369
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -138,17 +138,59 @@ const { data: contributors, status: contributorsStatus } = useLazyFetch('/api/co | |||||||||||||||||||
| </div> | ||||||||||||||||||||
|
|
||||||||||||||||||||
| <div> | ||||||||||||||||||||
| <h2 class="text-lg text-fg-subtle uppercase tracking-wider mb-4"> | ||||||||||||||||||||
| <h2 class="text-lg text-fg-subtle uppercase tracking-wider mb-4">Team</h2> | ||||||||||||||||||||
| <p class="text-fg-muted leading-relaxed mb-6"> | ||||||||||||||||||||
| {{ $t('about.contributors.description') }} | ||||||||||||||||||||
| </p> | ||||||||||||||||||||
|
|
||||||||||||||||||||
| <!-- TODO: update string and maintainers list --> | ||||||||||||||||||||
| <div v-if="contributors?.some(c => c.role !== 'contributor')" class="mb-12"> | ||||||||||||||||||||
| <h3 class="text-sm text-fg-subtle uppercase tracking-wider mb-4">Governance</h3> | ||||||||||||||||||||
| <p class="text-fg-muted leading-relaxed mb-6"> | ||||||||||||||||||||
| TODO: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor | ||||||||||||||||||||
| incididunt ut labore et dolore magna aliqua. | ||||||||||||||||||||
| </p> | ||||||||||||||||||||
|
|
||||||||||||||||||||
| <div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-3"> | ||||||||||||||||||||
| <a | ||||||||||||||||||||
| v-for="person in contributors | ||||||||||||||||||||
| .filter(c => c.role !== 'contributor') | ||||||||||||||||||||
| .concat(contributors.filter(c => c.role !== 'contributor')) | ||||||||||||||||||||
| .concat(contributors.filter(c => c.role !== 'contributor')) | ||||||||||||||||||||
| .concat(contributors.filter(c => c.role !== 'contributor')) | ||||||||||||||||||||
| .concat(contributors.filter(c => c.role !== 'contributor'))" | ||||||||||||||||||||
| :key="person.id" | ||||||||||||||||||||
|
Comment on lines
+156
to
+162
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove debug The repeated
This appears to be debug/test code that should be removed before merging. 🐛 Proposed fix <a
- v-for="person in contributors
- .filter(c => c.role !== 'contributor')
- .concat(contributors.filter(c => c.role !== 'contributor'))
- .concat(contributors.filter(c => c.role !== 'contributor'))
- .concat(contributors.filter(c => c.role !== 'contributor'))
- .concat(contributors.filter(c => c.role !== 'contributor'))"
+ v-for="person in contributors.filter(c => c.role !== 'contributor')"
:key="person.id"📝 Committable suggestion
Suggested change
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no problem, this is just a stub for this WIP commit
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||||||||||||||||||||
| :href="person.html_url" | ||||||||||||||||||||
| target="_blank" | ||||||||||||||||||||
| rel="noopener noreferrer" | ||||||||||||||||||||
| class="flex items-center gap-3 p-2 border border-border rounded-lg hover:bg-fg/5 transition-colors group" | ||||||||||||||||||||
| > | ||||||||||||||||||||
| <img | ||||||||||||||||||||
| :src="`${person.avatar_url}&s=64`" | ||||||||||||||||||||
| alt="" | ||||||||||||||||||||
| class="w-10 h-10 rounded-md ring-1 ring-border group-hover:ring-accent" | ||||||||||||||||||||
| /> | ||||||||||||||||||||
| <div class="min-w-0"> | ||||||||||||||||||||
| <div class="font-mono text-sm text-fg truncate">@{{ person.login }}</div> | ||||||||||||||||||||
| <div class="text-sm text-fg-muted tracking-tight">{{ person.role }}</div> | ||||||||||||||||||||
| </div> | ||||||||||||||||||||
| </a> | ||||||||||||||||||||
| TODO: add other maintainers | ||||||||||||||||||||
| </div> | ||||||||||||||||||||
| </div> | ||||||||||||||||||||
|
|
||||||||||||||||||||
| <h3 class="text-sm text-fg-subtle uppercase tracking-wider mb-4"> | ||||||||||||||||||||
| {{ | ||||||||||||||||||||
| $t( | ||||||||||||||||||||
| 'about.contributors.title', | ||||||||||||||||||||
| { count: $n(contributors?.length ?? 0) }, | ||||||||||||||||||||
| contributors?.length ?? 0, | ||||||||||||||||||||
| ) | ||||||||||||||||||||
| }} | ||||||||||||||||||||
| </h2> | ||||||||||||||||||||
| </h3> | ||||||||||||||||||||
| <p class="text-fg-muted leading-relaxed mb-6"> | ||||||||||||||||||||
| {{ $t('about.contributors.description') }} | ||||||||||||||||||||
| TODO: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor | ||||||||||||||||||||
| incididunt ut labore et dolore magna aliqua. | ||||||||||||||||||||
| </p> | ||||||||||||||||||||
|
|
||||||||||||||||||||
| <!-- Contributors cloud --> | ||||||||||||||||||||
|
|
||||||||||||||||||||
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.
Remove placeholder TODO text before merging
There are multiple instances of raw placeholder text that will be visible to users:
These should be replaced with proper i18n keys or removed.
Also applies to: 178-178, 192-193