Skip to content

Commit

Permalink
Add 2026 Appraisal form constants
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDancingClown committed Jan 29, 2025
1 parent bbb3642 commit 59bb730
Showing 1 changed file with 42 additions and 1 deletion.
43 changes: 42 additions & 1 deletion forms/appraisal_form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class AppraisalForm
#
# THIS NEED TO BE UPDATED EACH YEAR
#
SUPPORTED_YEARS = [2022, 2023, 2024, 2025]
SUPPORTED_YEARS = [2022, 2023, 2024, 2025, 2026]

EVALUATION_OPTIONS_2022 = [
["Weak evidence", "weak"],
Expand All @@ -30,6 +30,12 @@ class AppraisalForm
["Strong evidence", "strong"]
]

EVALUATION_OPTIONS_2026 = [
["Weak evidence", "weak"],
["Good evidence", "good"],
["Strong evidence", "strong"]
]

VERDICT_OPTIONS_2022 = [
["Not Recommended", "not_recommended"],
["Recommended", "recommended"],
Expand All @@ -54,6 +60,12 @@ class AppraisalForm
["Undecided", "undecided"]
]

VERDICT_OPTIONS_2026 = [
["Not Recommended", "not_recommended"],
["Recommended", "recommended"],
["Undecided", "undecided"]
]

def self.evaluation_options_for(object, section)
options = const_get("EVALUATION_OPTIONS_#{object.award_year.year}")

Expand Down Expand Up @@ -204,10 +216,39 @@ def self.verdict_options_for(object, section)
}
}.freeze

QAVS_2026 = {
good_impact: {
type: :rag,
label: "Good impact",
position: 0
},
volunteer_led: {
type: :rag,
label: "Volunteer-led",
position: 1
},
good_governance: {
type: :rag,
label: "Good governance",
position: 2
},
exceptional_qualities: {
type: :rag,
label: "Exceptional qualities",
position: 3
},
verdict: {
type: :verdict,
label: "Overall decision",
position: 4
}
}.freeze

ALL_FORMS_2022 = [QAVS_2022]
ALL_FORMS_2023 = [QAVS_2023]
ALL_FORMS_2024 = [QAVS_2024]
ALL_FORMS_2025 = [QAVS_2025]
ALL_FORMS_2026 = [QAVS_2026]

def self.rate(key)
"#{key}_rate"
Expand Down

0 comments on commit 59bb730

Please sign in to comment.