detailed profiles info

This commit is contained in:
Julian Freeman
2026-04-16 17:50:33 -04:00
parent 33f43aac56
commit 65b9401726
9 changed files with 356 additions and 98 deletions

View File

@@ -6,12 +6,11 @@ defineProps<{
extensions: ExtensionSummary[];
sortKey: ExtensionSortKey;
extensionMonogram: (name: string) => string;
extensionProfilesExpanded: (extensionId: string) => boolean;
}>();
const emit = defineEmits<{
"update:sortKey": [value: ExtensionSortKey];
toggleProfiles: [extensionId: string];
showProfiles: [extensionId: string];
}>();
</script>
@@ -55,23 +54,11 @@ const emit = defineEmits<{
<button
class="disclosure-button"
type="button"
@click="emit('toggleProfiles', extension.id)"
@click="emit('showProfiles', extension.id)"
>
<span>Profiles</span>
<span>View Profiles</span>
<span class="badge neutral">{{ extension.profileIds.length }}</span>
</button>
<div
v-if="extensionProfilesExpanded(extension.id)"
class="disclosure-panel"
>
<span
v-for="profileId in extension.profileIds"
:key="`${extension.id}-${profileId}`"
class="badge"
>
{{ profileId }}
</span>
</div>
</div>
</div>
</article>
@@ -158,13 +145,6 @@ const emit = defineEmits<{
cursor: pointer;
}
.disclosure-panel {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 8px;
}
@media (max-width: 720px) {
.extension-card {
flex-direction: column;