-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Bug: Frequency dropdown shows "Hourly" option to free-tier users without restriction
Severity: low
Location: client/src/components/CreateMonitorDialog.tsx:195 and client/src/components/MonitorCard.tsx:153
1. Background / Context
Both the monitor creation dialog (CreateMonitorDialog.tsx) and the monitor edit card (MonitorCard.tsx) render a frequency selector that includes the "Hourly" option for all users regardless of tier. The CreateMonitorDialog component already has userTier available (line 57) and uses it for tag-related gating, but does not use it to filter frequency options.
With server-side enforcement (PR #250), selecting "Hourly" as a free-tier user now results in a 403 error after submitting the form. However, the user gets no indication that "Hourly" is a paid feature until after filling out the entire form and submitting it.
2. How to Reproduce
- Sign in as a free-tier user.
- Click "Add Monitor" to open CreateMonitorDialog.
- Observe that the frequency dropdown offers both "Hourly" and "Daily" with no visual distinction.
- Select "Hourly", fill out the rest of the form, and submit.
3. Actual Result
The "Hourly" option is shown without any badge, tooltip, or disabled state indicating it requires a Pro or Power plan.
4. Expected Result
For free-tier users, the "Hourly" option should either be disabled with a tooltip (e.g., "Requires Pro plan"), visually marked with a lock/upgrade badge, or filtered out entirely.
Found by automated bug scan during magicwand pipeline.