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

Imports & Navbar visual changes #151

Open
wants to merge 24 commits into
base: main
Choose a base branch
from

Conversation

Ilverism
Copy link
Collaborator

@Ilverism Ilverism commented Jul 16, 2024

09/11/24:

  • Allows Environment Variable for SendEmail baseURL
    • Will default to hard-coded "https://ngafid.org" if unset
    • Should add export NGAFID_BASE_URL="https://ngafid.org" to init_env.sh

  • Reworked how the Imports rows appear
  • Modified the Uploads panel on the home page to reflect the new badges on the Imports page
  • Added new icons to the Navbar
  • Added a background highlight when hovering the Navbar
  • Fixed the Navbar text not reflecting what the active page was for some pages

image
image

image
image

image
image

@jkarns275
Copy link
Collaborator

I like this

package.json Show resolved Hide resolved
src/main/java/org/ngafid/WebServer.java Show resolved Hide resolved
webpack.config.js Outdated Show resolved Hide resolved
jkarns275 and others added 5 commits August 13, 2024 13:34
* reworks airsync to fix missing imports

---------

Co-authored-by: RIT <[email protected]>
Co-authored-by: RIT <[email protected]>
Co-authored-by: e911 <[email protected]>
Co-authored-by: Aaron Chan <[email protected]>
Co-authored-by: Mayur Shinde <[email protected]>
Co-authored-by: Joshua Karns <[email protected]>
Unsubscribe links for email preferences + removal of expired unsub tokens.
Add default value for severityColumn state value
Give users with view permission the ability to view uploads (but not modify)
Comment on lines 35 to 36
private static final String baseURL = "https://ngafid.org";
//private static final String baseURL = "https://ngafidbeta.rit.edu";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this be made into an environment variable?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes

src/main/java/org/ngafid/SendEmail.java Outdated Show resolved Hide resolved
src/main/java/org/ngafid/accounts/AirSyncFleet.java Outdated Show resolved Hide resolved
src/main/java/org/ngafid/accounts/AirSyncFleet.java Outdated Show resolved Hide resolved
src/main/java/org/ngafid/accounts/AirSyncFleet.java Outdated Show resolved Hide resolved
String resp = new String(respRaw).replaceAll("tail_number", "tailNumber");

Type target = new TypeToken<List<AirSyncAircraft>>(){}.getType();
System.out.println(resp);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Use a logger

Comment on lines 28 to 30
private static HashMap<Integer, User> users = new HashMap<>();
private static HashMap<String, Integer> userIDs = new HashMap<>();
private static HashMap<String, HashMap<String, Boolean>> emailTypesUsers = new HashMap<>();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can the fields just be Maps?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Probably would have to update a few getters though

Copy link
Collaborator

@jkarns275 jkarns275 Sep 10, 2024

Choose a reason for hiding this comment

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

Should probably just update the getters to use the Map interface, but using the concrete HashMap here is fine.

@jkarns275
Copy link
Collaborator

honestly LGTM fix conflicts and we send it

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.

3 participants