Skip to content

Conversation

@yannham
Copy link
Contributor

@yannham yannham commented May 14, 2025

Depends on #553. This PR refactors the components displaying the list of maintainers by having a dedicated maintainer template (instead of inlining this logic in the maintainer_list), and makes it possible to have the trash button (selectable). We also avoid having selectable and non-selectable version of the same component (that is, nixpkgs packages and the newly added maintainer) in two separate file, but rather use a context boolean, which deduplicates a bit of code.

Note that nothing is properly handling the form if you click on the trash button for a maintainer; this is planned as future work.

@fricklerhandwerk
Copy link
Collaborator

Code looks pretty good from a cursory glance, I'll try it out soon(tm). But let's not add broken UI. Let's either skip displaying the new thing and keep it a pure refactor for now, or add the logic already. :)

@yannham yannham force-pushed the yannham/remove-maintainer-from-draft branch from 055aeb7 to 949fdd4 Compare May 16, 2025 10:02
@yannham
Copy link
Contributor Author

yannham commented May 16, 2025

It was mostly for review purpose (small PR) that I split the two, but I can merge this PR and the next one - I'm confident the backend part of it will be relatively small.

padding: 0;
}

.maintainer-container input:not(:checked) ~ article {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
.maintainer-container input:not(:checked) ~ article {
.maintainer-container input:not(:checked) ~ article,
.maintainer-container input:not(:checked) ~ article a.github-id
{

So the handle also gets greyed out

@fricklerhandwerk
Copy link
Collaborator

Superseded by #558

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.

2 participants