feat: update existing comparisons

This commit is contained in:
alphafetus committed 2026-01-21 13:55:53 -05:00
1 parent 5e45cc89fc
commit 9e418dddf5
2 files changed
+5 -4

No files matched your search

+2 -1
View File
@@ -1,4 +1,4 @@
use crate::pages::{ProviderPortal, ScholarshipInfoPage, ProviderContactPage, LoanerShell, LoanerFallback, LoanerBorrowForm, LoanerReturnForm, AuthCallbackPage, ApplicantsPageFallback}; use crate::pages::{ProviderPortal, ScholarshipInfoPage, ProviderContactPage, LoanerShell, LoanerFallback, LoanerBorrowForm, LoanerReturnForm, AuthCallbackPage, ApplicantsPageFallback, TestPage};
use leptos::prelude::*; use leptos::prelude::*;
use leptos_meta::{MetaTags, Stylesheet, Title, provide_meta_context}; use leptos_meta::{MetaTags, Stylesheet, Title, provide_meta_context};
use leptos_oidc::AuthSignal; use leptos_oidc::AuthSignal;
@@ -61,6 +61,7 @@ pub fn AppWithRoutes() -> impl IntoView {
<ToastList> <ToastList>
// TODO Create a 404 page // TODO Create a 404 page
<Routes fallback=|| "Page not found.".into_view()> <Routes fallback=|| "Page not found.".into_view()>
// <Route path=path!("/testing") view=TestPage />
<ProviderRoutes /> <ProviderRoutes />
<LoanerRoutes /> <LoanerRoutes />
</Routes> </Routes>
+3 -3
View File
@@ -263,12 +263,12 @@ fn create_major_comparisons() -> Vec<ComparisonData> {
#[allow(unused)] #[allow(unused)]
fn make_comp_list() -> Vec<ComparisonData> { fn make_comp_list() -> Vec<ComparisonData> {
let gpa_3 = ComparisonData::new( let gpa_3 = ComparisonData::new(
"gpa_3", "gpa_top_third",
"weighted_gpa", "weighted_gpa",
ComparisonType::Number(NumberComparison::GreaterThanOrEqual), ComparisonType::Number(NumberComparison::GreaterThanOrEqual),
ValueType::Number(Some(3.0.to_string())), ValueType::Number(Some(6.264.to_string())),
"GPA Limits", "GPA Limits",
"GPA >= 3.0", "Top Third GPA",
); );
let test_comp = ComparisonData::new( let test_comp = ComparisonData::new(