Skip to content

Handle locked-period timer saves and surface errors in web and TUI#103

Open
ponbac wants to merge 1 commit intomasterfrom
96/handle-locked-period-timer-saves-and-surface-errors-in-web-and-tui
Open

Handle locked-period timer saves and surface errors in web and TUI#103
ponbac wants to merge 1 commit intomasterfrom
96/handle-locked-period-timer-saves-and-surface-errors-in-web-and-tui

Conversation

@ponbac
Copy link
Owner

@ponbac ponbac commented Mar 6, 2026

Handle locked-period timer saves and surface errors in web and TUI

Fixes #96

@vercel
Copy link

vercel bot commented Mar 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
toki2 Ready Ready Preview, Comment Mar 6, 2026 10:32am

Request Review

@ponbac ponbac marked this pull request as ready for review March 6, 2026 10:14
@ponbac
Copy link
Owner Author

ponbac commented Mar 6, 2026

@codex

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d54c74a7a3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ponbac ponbac force-pushed the 96/handle-locked-period-timer-saves-and-surface-errors-in-web-and-tui branch from d54c74a to 13b1565 Compare March 6, 2026 10:31
@ponbac
Copy link
Owner Author

ponbac commented Mar 6, 2026

Addressed review note from https://github.com/ponbac/toki2/pull/103#discussion_r2894987061.\n\nChange made: blank-body 404 responses are no longer classified as locked periods; added regression test to keep blank 404 as unknown error.\n\n@codex please re-review.

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. Chef's kiss.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be able to use zod here in order to make it cleaner.

body,
} => {
let body_lower = body.to_lowercase();
body_lower.contains("timer not found")
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be checked against Milltime, what the real response is.

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.

Timer save fails silently when current month is locked

1 participant