-
Notifications
You must be signed in to change notification settings - Fork 4
Add project: use richer selector for organization/team #636
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?
Conversation
@agjohnson just checking with you about the direction of this PR. Is this UI element the one we want? Does it look fine to move forward with? If we want to show more information inside it (like organization disabled, or auth method) we will need to define a custom template for it, it seems. Is that what we want? In that case, I will need some help from you with the design/style of it. |
What you have here is a nice improvement visually, but it won't benefit the majority of users as having multiple organizations is not common. This is a pattern that falls under core team usage and very edge case usage. The categorized list display isn't as flexible underneath, so a flat list is probably best. I would work off the project automatic creation view, which uses a completely custom template for the listing items1, driven by custom usage of the dropdown2. This would allow us to use more display elements inside each list item. I would do all of that in a simpler way and skip the Knockout templating and just use a standard HTML template like we do with web components. The docs on the search templates 3 describe in a little detail how to do this, but the important pieces would be:
{
...
type: "teamsList",
templates: {
teamsList: (response) => {
const results = response.results.map((result) => {
return `<div class="item">...</div>`;
}
return ''.join(results);
}
}
...
} Footnotes |
Initial POC. This needs more customization, and even probably play a little with the template to add more data: https://fomantic-ui.com/modules/search.html#templates
Peek.2025-07-16.17-45.webm
Closes #468