Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/components/AppHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ const debouncedNavigate = debounce(async () => {
name: 'search',
query: query ? { q: query } : undefined,
})
searchQuery.value = ''
// allow time for the navigation to occur before resetting searchQuery
setTimeout(() => (searchQuery.value = ''), 1000)
}, 100)
async function handleSearchInput() {
Expand Down
2 changes: 2 additions & 0 deletions app/pages/search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ const resultCount = computed(() => visibleResults.value?.objects.length ?? 0)
// Track if page just loaded (for hiding "Searching..." during view transition)
const hasInteracted = ref(false)
onMounted(() => {
// Focus search onMount
isSearchFocused.value = true
// Small delay to let view transition complete
setTimeout(() => {
hasInteracted.value = true
Expand Down
2 changes: 1 addition & 1 deletion lunaria/files/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@
},
"contributors": {
"title": "Contributors",
"description": "npmx is fully open source, built by an amazing community of contributors.",
"description": "npmx is fully open source, built by an amazing community of contributors. Join us and let's build the npm browsing experience we always wanted, together.",
"loading": "Loading contributors...",
"error": "Failed to load contributors",
"view_profile": "View {name}'s GitHub profile"
Expand Down