Add two new course types to the Course Type picklist - #1192
Open
rustynwac wants to merge 1 commit into
Open
Conversation
Adds "Intro to Avalanches Field Course" and "Level 1 + Rescue Combined" to the shared courseTypesData constant, making them selectable as a Course's courseType and a Provider's approved course types, and visible in the public course-type filter. Values are stored as plain text, so no migration is required. Closes #1188 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xu99cZaGFPoaP11W3K7hB
Contributor
|
Preview deployment: https://claudextriage-1188-b3gdnn.preview.avy-fx.org |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds two new course types to the shared Course Type picklist:
intro-to-avalanches-field-course)level-1-rescue-combined)courseTypesDatainsrc/constants/courseTypes.tsis the single source of truth for course types — the CoursescourseTypeselect, the Providers "Approved Course Types" select, the public course-type filter, the embed generator, and the provider-published email all derive their options from it. Appending the two entries there makes them available everywhere at once. The options are global to all avalanche centers (course types are not tenant-scoped), which is the intended behavior.The new entries include
labelandvalueonly — nodescription. Thedescriptionfield onCourseTypeis optional and is rendered nowhere (every consumer maps the data down to{ label, value }), so adding description copy would be invisible dead data.Related Issues
Closes #1188
Key Changes
courseTypesDatainsrc/constants/courseTypes.ts(existing six entries untouched).How to test
Screenshots / Demo video
N/A — picklist value addition, no visual/layout change.
Migration Explanation
No migration required. The stored columns for these select values (
courses.course_typeandproviders_course_types.value) are plaintextwith no enum/check constraint, so new option values are accepted without a schema change.Future enhancements / Questions
CourseType.descriptionis currently carried in the constant but rendered nowhere. If descriptions should ever be surfaced (admin field help text, public filter tooltips, etc.), that would be a separate change — and the two new types would need description copy at that point.🤖 Generated with Claude Code
https://claude.ai/code/session_012xu99cZaGFPoaP11W3K7hB
Generated by Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.