Merge branch 'codex/fix/q-topbar-category'

This commit is contained in:
Tommaso Casaburi
2026-06-28 15:47:17 +07:00
2 changed files with 19 additions and 4 deletions
@@ -226,6 +226,22 @@ describe('BoardsBar', () => {
expect(getLinkHref('q')).toBe('/q');
});
it('renders /q/ in the same desktop bracket group as /r9k/, /s5s/, and /vip/', async () => {
testState.accountCommunityAddresses = [];
testState.directories = [
{ address: 'robot9002.bso', title: '/r9k/ - ROBOT9002' },
{ address: 'shit-5chan-says.bso', title: '/s5s/ - Shit 5chan Says' },
{ address: 'very-important-posts.bso', title: '/vip/ - Very Important Posts' },
{ address: '5chan-feedback.bso', title: '/q/ - 5chan Feedback' },
];
testState.showSubscriptionsInBoardsBar = false;
testState.visibleDirectories = new Set(['r9k', 's5s', 'vip', 'q']);
await renderBoardsBar('/q');
expect(container.textContent).toContain('[r9k / s5s / vip / q]');
});
it('opens the desktop search bar and submits entered board addresses', async () => {
await renderBoardsBar('/mu');
+3 -4
View File
@@ -7,11 +7,11 @@ export const BOARD_CODE_GROUPS: string[][] = [
['a', 'b', 'c', 'd', 'e', 'f', 'g', 'gif', 'h', 'hr', 'k', 'm', 'o', 'p', 'r', 's', 't', 'u', 'v', 'vg', 'vm', 'vmg', 'vr', 'vrpg', 'vst', 'w', 'wg'],
// Group 2: [i / ic]
['i', 'ic'],
// Group 3: [r9k / s5s / vip]
['r9k', 's5s', 'vip'],
// Group 3: [r9k / s5s / vip / q]
['r9k', 's5s', 'vip', 'q'],
// Group 4: [cm / hm / lgbt / y]
['cm', 'hm', 'lgbt', 'y'],
// Group 5: [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / q / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs]
// Group 5: [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs]
[
'3',
'aco',
@@ -39,7 +39,6 @@ export const BOARD_CODE_GROUPS: string[][] = [
'po',
'pol',
'pw',
'q',
'qst',
'sci',
'soc',