Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

agreement signatures page #4

Assignees

Comments

@SKairinos
Copy link
Contributor

SKairinos commented Aug 8, 2024

Create a page that lists all of the logged in contributor's agreement signatures. List should be sorted by signed_at timestamp in descending order (latest signature at the top of the list).

It should also check if the contributor has signed the latest agreement signature (you did a task in the past to get the latest agreement's commit hash/ID). If the latest agreement is not in the list of signed agreements, there should be a call to action at the top of the list to sign the latest agreement.

For each agreement signature in the list, the contributor should be able to see the agreement in embedded in the page.
You can load the agreement from GitHub's raw urls. Like so:
https://raw.githubusercontent.com/ocadotechnology/codeforlife-workspace/{COMMIT_HASH}/CONTRIBUTING.md
For example:
https://raw.githubusercontent.com/ocadotechnology/codeforlife-workspace/0977085890c3efa6883031d5886fec3d3cac0c4a/CONTRIBUTING.md
I recommend rendering the markdown file using this
https://www.npmjs.com/package/react-markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment