mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(boards-bar): group /q/ with r9k, s5s, and vip in top bar
Move the feedback board into the same desktop bracket category as the other small meta boards instead of the large general group.
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user