PAIR-code / PAIR-code/deliberate-lab

Enable admins to easily add new experimenters to allowlist

Open
#762 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

runtime:experimenter-ux stale
Dominant language
TypeScript
Stars
96
Forks
40
Avg merge
2d 11h
Merged PRs (30d)
20

Description

Right now, the only way to add experimenters to the allowlist is by manually adding their email address (after manually ensuring it's all lowercase) as a new document under our database's allowlist collection in the Firebase console.

Ideally, we should:

  • Add a textarea/button to the admin dashboard that allows admins to submit new experimenter emails (automatically lowercased) to the allowlist
  • [optional] Enable admins to remove experimenters from the allowlist via the admin dashboard

Related: We could consider enabling experimenters to request access via the web app (e.g., on the home page when not logged in) such that the requests appear in the admin dashboard for admins to easily review and approve/reject. (Our current solution is directing requests to a Google Form, which we manually check.) However, not sure admins are more likely to check the Deliberate Lab admin dashboard over form responses.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the admin dashboard and the Firebase allowlist collection, then trace how admin actions are authenticated and persisted. Implement the required flow for submitting experimenter emails with automatic lowercasing; consider removal and request-review features separately because they are optional or exploratory. Done means an admin can add an email through the dashboard and it appears in the allowlist.

Written by the indexing model from the issue text.

Assessment

Tech stack
firebase, typescript
Domain
authorization, database, full-stack
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.