Skip to content

Commit

Permalink
Feat/docs attached (#123)
Browse files Browse the repository at this point in the history
* add garanld rating

* Aspires next position feature and garland rating new feature

* Search, filter and sort capabilities for Garland rating added

* hot fixes for filters, duplicated records, vacancy forecast

* vacancies detection scripts changes, ui fixes, general improvements

* second week review fixes

* Estabilizing changes, correcting formulas

* url auth fix, readme update
  • Loading branch information
nsd-juanignacio authored Jul 29, 2024
1 parent 0b2bbe1 commit 916a1d4
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 4 deletions.
6 changes: 6 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,12 @@ on the `Startup` class instead of the `SmtpSender` class:
services.AddTransient<IEmailSender, SmtpSender>();
```

## Documentation

You can refer [Leadership Portal Technical Guide](./docs/hw-tech-docs.docx) for more technical details.

We also attach [Holdsworth Data request](./docs/holdsworth_data_request_v1.3.docx) to help in the Ed-Fi adoption process.

## Legal Information

Copyright (c) 2024 Ed-Fi Alliance, LLC and contributors.
Expand Down
Binary file added docs/holdsworth_data_request_v1.3.docx
Binary file not shown.
Binary file added docs/hw-tech-docs.docx
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0.
// See the LICENSE and NOTICES files in the project root for more information.

import React, { useState } from 'react';
import React, { useEffect, useState } from 'react';

import { Button } from 'reactstrap';

Expand All @@ -16,10 +16,22 @@ import ErrorMessage from '../ErrorMessage';
import DirectoryFilters from './DirectoryFilters';
import ResultsDownload from '../../utils/ResultsDownload';

import { useLocation, useNavigate } from "react-router-dom";
import AuthService from "../../utils/auth-service";


const Directory = () => {
const [activeComponent, setActiveComponent] = useState("table");
const { setColumnSort, sort, data, exportData, paging, setPage, error, setFilters, exportResults, buttonRef } = UseDirectory();

const { isAuthenticated } = AuthService();
const navigate = useNavigate();


useEffect(() => {
if (!isAuthenticated()) navigate('/account/login');
},[]);

const callbackFilteredSearch = (searchData) => {
setFilters(searchData);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ import LeadersFilters from "./LeadersFilters/LeadersFilters";
import LeadersCharts from "./LeadersCharts/LeadersCharts";
import UseIdentifyLeaders from "./UseIdentifyLeaders";

import AuthService from "../../utils/auth-service";
import { useLocation, useNavigate } from "react-router-dom";


const IdentifyLeaders = () => {
const {
data,
Expand All @@ -40,6 +44,13 @@ const IdentifyLeaders = () => {
let [isLoaded, setIsLoaded] = useState(false);
const [viewAll, setViewAll] = useState(false);

const navigate = useNavigate();
const { isAuthenticated } = AuthService();

useEffect(() => {
if (!isAuthenticated()) navigate('/account/login');
},[]);


useEffect(() => {
setIsLoaded(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ function UseLogin() {
// .then(response => response.json())
.then(
(result) => {
if (!unmounted)
// console(result);
if (!unmounted && result?.status == 200)
{
setError(false);
loginAuth(username);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// See the LICENSE and NOTICES files in the project root for more information.

import React, { useEffect, useState } from "react";

import { useLocation, useNavigate } from "react-router-dom";
import {
Chart as ChartJS,
CategoryScale,
Expand Down Expand Up @@ -42,6 +42,7 @@ import WhoHasLeft from "./WhoHasLeft/WhoHasLeft";

import UseVacancyReport from "./UseVacancyReport";
import StaffTable from "../StaffTable";
import AuthService from "../../utils/auth-service";

// import CardList from './CardListComponents/CardList';
// import UseLandingPage from './UseLandingPage';
Expand Down Expand Up @@ -98,6 +99,8 @@ export const lineChartData3 = {
const VacancyReport = () => {
const [dropdownOpen, setDropdownOpen] = useState(false);
const toggle = () => setDropdownOpen((prevState) => !prevState);
const navigate = useNavigate();


const [activeComponent, setActiveComponent] = useState("table");
// const { setColumnSort, sort, data, exportData, paging, setPage, error, setFilters, exportResults, buttonRef } = UseDirectory();
Expand All @@ -106,6 +109,14 @@ const VacancyReport = () => {
// setFilters(searchData);
// }


const { isAuthenticated } = AuthService();


useEffect(() => {
if (!isAuthenticated()) navigate('/account/login');
},[]);

const {
data,
fetchData,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function LogoutService() {
'logoutId': authInfo,
})}).then(() => {
logoutAuth();
navigate('/');
navigate('/account/login');
}).catch(error => console.error(error));
}

Expand Down

0 comments on commit 916a1d4

Please sign in to comment.