Human Rights First (HRF) is a non-profit, nonpartisan, 501(c)(3), international human rights organization based in New York, Washington D.C., Houston, and Los Angeles. HRF works to link immigration attorneys and advocates with asylum seekers and provide those attorneys with resources to best represent their clients. Our application leverages historical data to better inform advocates of a judge’s past decisions. The hope is that advocates for asylum seekers can use our tools to tailor their arguments before a particular judge and maximize their client's chances of receiving asylum.
The base technologies are JavaScript, HTML and CSS. The frontend leverages React, the backend uses Express and PostgreSQL, the server runs on Heroku, and the authentication workflow runs on Okta. The frontend is hosted on AWS and the style guide/wireframe is located on Figma
- Clone both the front-end and back-end repositories to your machine. DO NOT FORK.
- From the backend directory, in your terminal:
- Create an environment file (.env) based on the sample .env and populate the environment variables (Migrate/Seed your local database)
- Make sure the
.env
is in your.gitignore
- Follow the Lambda instructions to set up the local PostgreSQL database
- Download the server dependencies by running
npm install
- Migrate your tables by running
npm run knex migrate:latest
- Seed your tables by running
npm run knex seed:run
- Start up the server by running
npm run watch:dev
- From the frontend directory in your terminal:
- Download the frontend dependencies by running
npm install
- Start up the app by running
npm start
- Download the frontend dependencies by running
- The Front End of the application allows Administrators to invite users and assign them as either an Administrator role or a Refugee Representative role. This application uses Okta to handle third-party authentication for user sign up/login. (FUTURE DEVS: This can be checked in the back-end repo, look to the ProfileRouter for more information. For front-end, look to the 'HomeContainer' component).
- Administrators are able to oversee user management such as inviting users, editing any user's role, and deleting users. They may also perform all other tasks available to Administrators or Refugee Representatives.
- Administrators are able to approve, deny, or edit uploaded asylum case data, as well as perform all other tasks available to Refugee Representatives.
- Refugee Representatives, or standard users, are able to look up information on judges, look up information on previous asylum cases, upload case file information in bulk on asylum case rulings, and see accurate data visualizations.
- Added new home page which displays visualizations meant to showcase the current state of the database and, eventually, the state of asylum cases across the nation
- Swapped many Material UI components to use ANT D instead
- Moved many features to use modals to prevent from UX being disrupted by unnecessary page-hopping (Case Upload, add/edit a user, edit/add a faq, case details/edit case, and support contact form)
- Combined related features in the sidebar, making for a smoother user experience
- Changed the accordions on the Manage Users page to a table
- Filtering indication for the Judges and the Cases Tables
- Ability to send a comment when an Administrator rejects a case from the administrator to the user
- Client-side form validation
- Styling of Login Page
- Export Report on Saved Cases can be downloaded
- Updated Styling
- Optimized backend
- Implementation of data normalization
- Home Page needs to accommdate for custom visualization with a form
- The ability to request to join the app still needs work see Trello Board
- Groundwork has been laid for in-app notifications to work
- BE needs to be built out for noticiations to work
- Stakeholders are deciding on what email notification system they want to use for external notifications, but not super important right now
- Stakeholders have also mentioned users might want to be able to favorite/subscribe to specific judges so they can watch for new cases to be added that might be most relevant to them
- Sort out where the support contact form goes (Check backend ENV credentials)
- The PDF view for the my_cases table still needs work
- Individual Judge Page needs work
- Judge Management needs implementation like ability to add or delete judge
- BE needs to create a judges table by creating a many-to-many relationship in handling judge to case relationships
- BE needs to delete protected_grounds and social_tags tables
- On Manage Users Page, approve, reject, edit, and delete buttons not functioning properly
- For Case Uploads:
- BE needs to pull from table ds_cases
- Look into work queue system to rate limit the amount of uploads being performed at once
- On Cases, user needs to be able to filter the cases like a stacked search