You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[P1/bug] +New category commit is invisible to the user — only fires on Save, not on Add #338
The flow is: user opens the dropdown → "+ New" → types "Daily Reports" → clicks Add. The addCategory is called from handleSave (line 44), not when the user clicks Add. This means the dialog calls addCategory("Daily Reports") AND addFavorite({ category: "Daily Reports", ... }) in the same atomic operation. The implementation actually IS correct, but the UX is confusing: the user types "Daily Reports", sees the input field clear when they click Save (line 47-53), and the new favorite appears in the sidebar under "Daily Reports" — they never see the "+ New" form commit visually. The intermediate state is invisible.
Typing "Daily Reports" in the new-category input and clicking Add shows the category in the dropdown selected, the input collapses, and the favorite saves under "Daily Reports" — no surprise clicks.
Proposed fix
Scope S — when the user clicks "Add" inline in the new-category input, call addCategory(name); setCategory(name); setShowNewCategory(false). The Save button then just persists the favorite with the now-selected category.
Acceptance
Typing "Daily Reports" in the new-category input and clicking Add shows the category in the dropdown selected, the input collapses, and the favorite saves under "Daily Reports" — no surprise clicks.
Activity