chore(board): remove old board tests, update seed + onboarding tests

This commit is contained in:
Jennie Robinson Faber 2026-04-14 17:31:46 +01:00
parent 7707068f36
commit f3df1945bd
7 changed files with 55 additions and 638 deletions

View file

@ -14,7 +14,6 @@ export function useOnboarding(options = {}) {
const loading = useState('onboarding.loading', () => false)
const recommendations = useState('onboarding.recommendations', () => ({
events: [],
board: [],
wiki: [],
}))
@ -72,7 +71,7 @@ export function useOnboarding(options = {}) {
}
// Graduated — suggestion mode
const cats = ['events', 'board', 'wiki'].filter(
const cats = ['events', 'wiki'].filter(
(c) => recommendations.value[c]?.length > 0
)
@ -99,14 +98,6 @@ export function useOnboarding(options = {}) {
actionText: 'View event',
}
}
if (category === 'board') {
return {
key: 'board',
text: `Connect with ${item.name || 'a member'} on the board`,
action: '/board',
actionText: 'Explore board',
}
}
if (category === 'wiki') {
return {
key: 'wiki',
@ -144,14 +135,12 @@ export function useOnboarding(options = {}) {
}
async function fetchRecommendations() {
const [events, board, wiki] = await Promise.allSettled([
const [events, wiki] = await Promise.allSettled([
$fetch('/api/events/recommended'),
$fetch('/api/board/suggestions'),
$fetch('/api/wiki/recommended'),
])
recommendations.value = {
events: events.status === 'fulfilled' ? (events.value || []) : [],
board: board.status === 'fulfilled' ? (board.value?.suggestions || []) : [],
wiki: wiki.status === 'fulfilled' ? (wiki.value || []) : [],
}
}