Skip to content

feat(goals): complete with success or failure outcome - #33

Merged
MegaBadCoder merged 1 commit into
mainfrom
feat/goal-outcome
Aug 16, 2026
Merged

feat(goals): complete with success or failure outcome#33
MegaBadCoder merged 1 commit into
mainfrom
feat/goal-outcome

Conversation

@MegaBadCoder

Copy link
Copy Markdown
Owner

Summary

  • Goal gets outcome: success | failure | null (null while active)
  • Web: «Завершить цель» → dialog Успех / Неудача, writes status: completed + outcome
  • Bot «Достигнута» writes outcome: success; activate/archive clears it
  • Badge: Достигнута vs Неудача

Test plan

  • Active goal → Завершить → Успех → tab «Завершённые», badge Достигнута
  • Same with Неудача → badge Неудача
  • Restore/archive from completed → outcome cleared
  • Telegram «Достигнута» → outcome success
  • Global parent stays active (no auto-close in this PR)

Made with Cursor

@MegaBadCoder
MegaBadCoder merged commit 77b5bf7 into main Aug 16, 2026
3 checks passed
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.

1 participant