Skip to content

feat: require explicit activity type selection when logging activities#700

Merged
RussH merged 5 commits intoopencats:masterfrom
anonymoususer72041:feature/activity-type-no-default
Mar 17, 2026
Merged

feat: require explicit activity type selection when logging activities#700
RussH merged 5 commits intoopencats:masterfrom
anonymoususer72041:feature/activity-type-no-default

Conversation

@anonymoususer72041
Copy link
Contributor

Summary

This PR removes the default preselection of the "Call" activity type when logging an activity and introduces validation to require an explicit choice. The Activity Type dropdown now starts with a placeholder option and the form is blocked if an activity type is not selected. The requirement is enforced both client-side (for immediate feedback) and server-side (to prevent invalid submissions when JavaScript is unavailable).

Motivation

Previously, "Call" was preselected by default, which made it easy to unintentionally log a call when submitting quickly without making a conscious selection. Requiring an explicit activity type choice reduces accidental data entry and improves the accuracy of activity tracking in day-to-day use.

@anonymoususer72041 anonymoususer72041 changed the title feature: require explicit activity type selection when logging activities feat: require explicit activity type selection when logging activities Jan 27, 2026
@anonymoususer72041 anonymoususer72041 force-pushed the feature/activity-type-no-default branch from 8ae7684 to 4c93eee Compare March 11, 2026 09:54
@RussH RussH self-requested a review March 17, 2026 09:25
@RussH
Copy link
Member

RussH commented Mar 17, 2026

Thank you for the PR - made some minor changes to style, nothing else.

@RussH RussH merged commit 2700270 into opencats:master Mar 17, 2026
2 of 3 checks passed
@anonymoususer72041 anonymoususer72041 deleted the feature/activity-type-no-default branch March 18, 2026 07:19
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.

2 participants