Giter Club home page Giter Club logo

dashboard's Introduction

Netlify Status

This repository contains the code for the hackathon dashboard of McHacks, Canada's favourite hackathon hosted annually at McGill University. It connects with our API and is hosted at app.mchacks.ca.

Folder Structure

```
.
โ”œโ”€โ”€ .github
โ”œโ”€โ”€ .netlify
โ”œโ”€โ”€ .vscode
โ”œโ”€โ”€ docs
โ”œโ”€โ”€ public
|   โ”œโ”€โ”€ favicon
|   โ”œโ”€โ”€ fonts
โ”œโ”€โ”€ src
|   โ”œโ”€โ”€ api
|   โ”œโ”€โ”€ assets
|   โ”œโ”€โ”€ config
|   โ”œโ”€โ”€ features
|   โ”œโ”€โ”€ shared
|   โ””โ”€โ”€ util
```

Screenshots

Create / edit your account

Imgur

Create / edit your application

Imgur

Hacker Dashboard

Imgur

Team Viewing

Imgur

HackPass QR code for check-in

Imgur

Staff Dashboard

Imgur

Search with filters, fuzzy search

Imgur

Single hacker view modal

Imgur

Single hacker view page

Imgur

Check-in via QR code or email

Imgur

dashboard's People

Contributors

alinastarkov avatar ambr0se6 avatar ashaduzzamane avatar brarsanmol avatar dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar erickzhao avatar isabelledelmundo avatar jackyyzhang03 avatar jamesxu123 avatar jenniferchen11 avatar krubenok avatar logan-r avatar loreina avatar pengyk avatar pierretklein avatar rohitgarudadri avatar ronyboi avatar tony9984 avatar ty-won avatar yifeizhang2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

dashboard's Issues

Set up Redux

Redux is the most popular way to manage state alongside React. Its main advantage is avoiding the hassle of passing app-wide state locally via props from component to component, which allows it to scale much better than a solely local state solution.

Setup should just involve installing packages and setting a few folders up.

Edit frontend copy

  • Update copy of application questions to be consistent
  • Fix typos
  • Change Droplr to Dribbble
  • Update sign-in page copy

Create <x> User component

After a user has created an account, they will receive an email to fill in the details with respect to the type of user they are (hacker, sponsor, volunteer, admin, etc.). They can access the component only if they provide a token generated by the API that gives them access.

Style components

  • Textarea.tsx
  • Autosuggest.tsx
  • Checkbox.tsx
  • NumberFormat.tsx
  • File upload

404 page

Implement 404 page
Add to react-router

Simplify import API for components

Currently, we use a lot of custom components to accomplish many things. This means that our imports on top of files get very cluttered.

I'm proposing that for the shared, components, and containers folders, we have an index.js file that exports all the components so that we can have cleaner imports when we use stuff.

Example:

import { H1, H2, Paragraph } from `src/shared/`;

App crash when user clicks login and then quickly clicks register

TypeError: Cannot read property 'email' of null

LoginContainer.push../src/containers/login.tsx.LoginContainer.handleSubmit
src/containers/login.tsx:116

  113 |  * Function that calls the login function once the form is submitted.
  114 |  */
  115 | private handleSubmit(): void {
> 116 |     UserInfoController.logIn(
      | ^  117 |         this.state.email,
  118 |         this.state.password
  119 |     ).then((value: AxiosResponse) => {

User-friendly error validation

Currently, our error states only involve console.error calls and red borders for inputs. We should have a better system to give clear input to users about why they aren't able to submit stuff (e.g. network issues, invalid email or password, etc.)

This would require some work from @hackmcgill/design to mock up what more complex would look like throughout the registration form.

Currently, we only have this guideline, and only for text inputs:
image

cc @pierreTklein

Folder restructuring & file renaming

๐Ÿ‘‹

I'd like to maybe start a discussion on how we can reorganize our folder structure and file names so that our directories feel less bloated.

As a refresher for what we currently do:

  • Individual components belong in src/components.
  • Page containers belong in src/containers.
  • All styled components belong in src/shared. Styled third-party components have the prefix Styled_____ in their file names.
  • All HOCs belong in src/hocs.
  • API wrappers belong in src/api.
  • Constants belong in src/config.

A few things I've noticed:

  • We probably need a new folder for utility .ts files.
  • We have prop inconsistencies between all of the input components.
  • Our file names are inconsistent.
  • shared is more like styled?
  • Might need to make subfolders for components
  • We need to reduce the number of imports in every file (see #78)
  • src/config is also hosting a bunch of abstractions as well.

Anyways, I'd like to maybe discuss what we could refactor as a Priority 2.

cc @hackmcgill/dev @hackmcgill/directors

CSV export of searches

As an admin or a sponsor, I want to be able to export information generated from my queries in order to manipulate it offline.

Potential memory leak

Right after logging in, I get the following error in my console:

Warning: Can't call setState (or forceUpdate) on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.
    in ToastContainer (created by class_1)
    in div (created by Context.Consumer)
    in StyledComponent (created by Box)
    in class_1 (created by class_1)
    in class_1 (created by class_1)
    in class_1 (created by Route)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.