Skip to content

Commit 7fb29c8

Browse files
authored
Add @UCL-ARC organisation (#26)
* Working functionally, but the tabs aren't right. * Remove ISD for now. Token needs some kind of different scope or SSO for ISD's Enterprise. * Fix tab highlighting.
1 parent f632aa8 commit 7fb29c8

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

app/src/components/Layout.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,19 @@ export const Layout: FC<PropsWithChildren> = ({ children }) => {
6060
<TabNav aria-label="Main" className="mt-8">
6161
<TabNav.Link
6262
href={`${basePath}/`}
63-
selected={!router.pathname.includes('documentation')}
63+
selected={
64+
!router.pathname.includes('documentation') &&
65+
!router.pathname.includes('ucl-arc')
66+
}
6467
>
6568
@UCL Repositories
6669
</TabNav.Link>
70+
<TabNav.Link
71+
href={`${basePath}/ucl-arc`}
72+
selected={router.pathname.includes('ucl-arc')}
73+
>
74+
@UCL-ARC Repositories
75+
</TabNav.Link>
6776
<TabNav.Link
6877
href={`${basePath}/documentation`}
6978
selected={router.pathname.includes('documentation')}

app/src/pages/ucl-arc.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { Layout } from '@/components/Layout';
2+
import RepositoriesTable from '@/components/RepositoriesTable';
3+
4+
export default function UCLARCPage() {
5+
return (
6+
<main className="p-4 md:p-10 mx-auto max-w-7xl h-screen">
7+
<Layout>
8+
<RepositoriesTable orgName={'ucl-arc'} />
9+
</Layout>
10+
</main>
11+
);
12+
}

config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
# Organization to pull metrics from (must be an array)
3-
organization: ['ucl']
3+
organization: ['ucl', 'ucl-arc']
44

55
# Start date to pull metrics from
66
since: '2018-01-02'

0 commit comments

Comments
 (0)