Skip to content

Conversation

@subhankar-panda
Copy link
Contributor

The code should not have changed at all (only comments). Please scroll through and make user not a single line of runnable code has changed (expect lint fixes :) )

@subhankar-panda
Copy link
Contributor Author

Please squash commits before merge :)

Copy link
Contributor

@efeichen efeichen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I kinda gave up at the end cuz it's a lot lol but just minor nitpicks and some formatting stuff.

Not sure ESLint can automatically fix some of these issues. If not, maybe considering Prettier? I personally like it, but feels scary dropping it in a big codebase like this so your call. Thanks Panda!

Comment on lines +2 to +5
UserYearOptions,
UserGenderOptions,
UserPronounOptions,
UserShirtSizeOptions } from '@Shared/UserEnums';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can these be aligned with line 1? Does ESLint fix these kind of formatting issues?

Since this is a refactoring PR I'm gonna be ocd about these kind of stuff 😛


/**
* Create a new admin in the database and update the frontend to reflect the change
* @param {NewAdminModalFormData} newAdmin the new admin to be added to the system
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should there be some kind of separator (e.g. - or tab or 2 spaces) between the param name and the description? Think that'll make it easier to read. Also capitalize first char of sentence (or not) for consistency.

* Show the alerts currently in state.
* @param {Boolean} container Determines whether the alert is wrapped in a container.
* @param {className} Override the alert with a different className.
* @returns {Component}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should there be comment on return too?

Comment on lines +1 to +15
import { TESCUser } from '@Shared/ModelTypes';
import { UserStatus } from '@Shared/UserStatus';
import React from 'react';
import { connect } from 'react-redux';
import { showLoading, hideLoading } from 'react-redux-loading-bar';
import { RouteComponentProps } from 'react-router';
import { bindActionCreators } from 'redux';
import { ApplicationDispatch, loadAllAdminEvents } from '~/actions';
import { loadAllSponsorUsers } from '~/data/AdminApi';
import { ApplicationState } from '~/reducers';
import { applyResumeFilter } from '~/static/Resumes';

import { replaceApplicants, replaceFiltered } from './actions';
import ResumeList from './components/ResumeList';

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why a space before the import?

Copy link
Contributor

@lisalluo lisalluo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is amazing stuff!!!!!!! i went through all the files and didn't see any real code changes except for an extra (accidental?) call for exporting emails

};

/**
* Render the T-Shirt size selection.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this comment is on the wrong thing

import ResumeList from './components/ResumeList';

type RouteProps = RouteComponentProps<{
import { TESCUser } from '@Shared/ModelTypes';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

while we're looking at this file, seems like TESCUser and UserStatus aren't used anywhere in this file

*/
exportEmails = () => {
const eventAlias = this.props.event.alias;
exportUsers(eventAlias, true)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there are two calls to exportUsers() here


/**
* Create the input field for aqpplicant GPAs.
* @param info redux-form object of the institution the applicatnt is from
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we're being really nitpicky, applicant is spelled wrong twice :)


/**
* Create the input field for major and year information of the applicant.
* @param info redux-form object of the institution the applicatnt is from
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpicky: applicant spelling

}
const adminToBeRendered = {...admin,
lastAccessed: admin.lastAccessed
? moment(admin.lastAccessed).fromNow()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you align these lines somehow

if (logo) {
promiseReq.attach('logo', logo[0])
if (logo) {
promiseReq.attach('logo', logo[0]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

misaligned

import UsersPage from './pages/UsersPage';
import PreviewApplication from './pages/EventPage/components/PreviewApplication';

/*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think these comments are a little misplaced?

├── HomePage
* This is the main page that loads when a user goes to www.tesc.events
* This page handles 2 states
- showing all apply-able events when the user is not logged in, and show
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete ", and show"

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants