diff --git a/app/components/BaseCard.vue b/app/components/BaseCard.vue index ebe3e4512..2eb7f348b 100644 --- a/app/components/BaseCard.vue +++ b/app/components/BaseCard.vue @@ -2,6 +2,7 @@ defineProps<{ /** Whether this is an exact match for the query */ isExactMatch?: boolean + selected?: boolean }>() @@ -10,6 +11,7 @@ defineProps<{ class="group bg-bg-subtle border border-border rounded-lg p-4 sm:p-6 transition-[border-color,background-color] duration-200 hover:(border-border-hover bg-bg-muted) cursor-pointer relative focus-within:outline-none focus-within:ring-2 focus-within:ring-offset-bg focus-within:ring-offset-2 focus-within:ring-fg/50 focus-within:bg-bg-muted focus-within:border-border-hover" :class="{ 'border-accent/30 contrast-more:border-accent/90 bg-accent/5': isExactMatch, + 'bg-fg-subtle/15!': selected, }" > diff --git a/app/components/ColumnPicker.vue b/app/components/ColumnPicker.vue index 35d3abc35..54d160278 100644 --- a/app/components/ColumnPicker.vue +++ b/app/components/ColumnPicker.vue @@ -54,6 +54,7 @@ const columnLabels = computed(() => ({ maintenanceScore: $t('filters.columns.maintenance_score'), combinedScore: $t('filters.columns.combined_score'), security: $t('filters.columns.security'), + selection: $t('filters.columns.selection'), })) function getColumnLabel(id: ColumnId): string { diff --git a/app/components/Package/ActionBar.vue b/app/components/Package/ActionBar.vue new file mode 100644 index 000000000..b579ee963 --- /dev/null +++ b/app/components/Package/ActionBar.vue @@ -0,0 +1,79 @@ + + + + + diff --git a/app/components/Package/Card.vue b/app/components/Package/Card.vue index 12d25268b..5cb334505 100644 --- a/app/components/Package/Card.vue +++ b/app/components/Package/Card.vue @@ -16,6 +16,11 @@ const props = defineProps<{ searchQuery?: string }>() +const { isPackageSelected, togglePackageSelection } = usePackageSelection() +const isSelected = computed(() => { + return isPackageSelected(props.result) +}) + const emit = defineEmits<{ clickKeyword: [keyword: string] }>() @@ -39,8 +44,8 @@ const numberFormatter = useNumberFormatter()