Skip to content

Commit

Permalink
Add a dependency on the volunteer-manager-timeline project
Browse files Browse the repository at this point in the history
  • Loading branch information
beverloo committed Jan 9, 2024
1 parent 8f9209b commit 1b0c8f2
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 14 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,18 @@ we use the excellent [ts-sql-query](https://ts-sql-query.readthedocs.io/en/stabl

## Building and deploying

### Checking out the repository
We depend on a private `volunteer-manager-timeline` component, availability of which is restricted;
talk to one of the maintainers of this repository if you need access.

Assuming you have access, you will need to generate a
[Personal Access Token](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line)
and run the following `git` command, either globally or local to this repository:

```
$ git config --global url."https://{{PAT}}@github.com/".insteadOf ssh://[email protected]/
```

### Building a developer environment
Developing the AnimeCon Volunteer Manager follows NextJS' best practices. The following commands are
enabled and actively supported:
Expand Down
33 changes: 20 additions & 13 deletions app/admin/system/debug/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import TableContainer from '@mui/material/TableContainer';
import TableRow from '@mui/material/TableRow';
import Table from '@mui/material/Table';

import { AvailabilityTimeline } from 'volunteer-manager-timeline/src/AvailabilityTimeline';

import { Privilege } from '@lib/auth/Privileges';
import { requireAuthenticationContext } from '@lib/auth/AuthenticationContext';

Expand All @@ -28,19 +30,24 @@ export default async function DebugPage() {
debugValues['Headers'] = [ ...headers() ];

return (
<TableContainer component={Paper} sx={{ p: 2, mt: 2 }}>
<Table size="small">
{ Object.entries(debugValues).map(([ key, value ], index) =>
<TableRow key={index}>
<TableCell width="15%">
<strong>{key}</strong>
</TableCell>
<TableCell sx={{ whiteSpace: 'pre-wrap', overflowWrap: 'anywhere' }}>
{ JSON.stringify(value, undefined, /* space= */ 4) }
</TableCell>
</TableRow> )}
</Table>
</TableContainer>
<>
<TableContainer component={Paper} sx={{ p: 2, mt: 2 }}>
<Table size="small">
{ Object.entries(debugValues).map(([ key, value ], index) =>
<TableRow key={index}>
<TableCell width="15%">
<strong>{key}</strong>
</TableCell>
<TableCell sx={{ whiteSpace: 'pre-wrap', overflowWrap: 'anywhere' }}>
{ JSON.stringify(value, undefined, /* space= */ 4) }
</TableCell>
</TableRow> )}
</Table>
</TableContainer>
<Paper sx={{ p: 2 }}>
<AvailabilityTimeline />
</Paper>
</>
);
}

Expand Down
16 changes: 15 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
"simple-sha256": "^1.1.0",
"ts-sql-query": "^1.57.0",
"uuid": "^9.0.1",
"volunteer-manager-timeline": "github:beverloo/volunteer-manager-timeline#ec92bcd",
"zod": "^3.22.4"
},
"devDependencies": {
Expand Down

0 comments on commit 1b0c8f2

Please sign in to comment.