Skip to content

Add footer countdown timers and expose scheduler config endpoint#19

Draft
Copilot wants to merge 4 commits intomasterfrom
copilot/fix-payment-countdown-issues
Draft

Add footer countdown timers and expose scheduler config endpoint#19
Copilot wants to merge 4 commits intomasterfrom
copilot/fix-payment-countdown-issues

Conversation

Copy link
Contributor

Copilot AI commented Feb 12, 2026

Footer countdown timers were missing. Payment triggering via scheduler was already functional but untested.

Changes

Backend

  • Added GET /config/payout endpoint to expose scheduler interval and reward configuration

Frontend

  • Added fixed footer with dual countdown timers for next accrual and settlement cycle
  • Implemented real-time countdown logic (updates every second, synced to scheduler interval)
  • Both timers show identical values—accrual and settlement run in the same scheduler cycle per src/jobs/__main__.py
  • Footer visibility toggles on user login state

Implementation

Countdown calculation tracks elapsed time from page load rather than assuming epoch-based scheduler alignment:

function updateCountdowns() {
  const elapsed = Date.now() - countdownStartTime;
  const msUntilNext = intervalMs - (elapsed % intervalMs);
  // Format and display HH:MM:SS
}

Screenshots

Active countdown timers in footer:

Countdown at 11:46

Countdown at 10:57 (5 seconds later)

Deployment

Use deploy-akash.yaml workflow with branch copilot/fix-payment-countdown-issues and desired image tag.

Original prompt

The payments are not triggering and the countdowns to accruals and payments are not working in the footer.

Please fix these and deploy with deploy-akash.yaml workflow


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@mconstant
Copy link
Owner

@copilot start again I merged the footer and other stuff in

Copilot AI and others added 2 commits February 12, 2026 00:29
Co-authored-by: mconstant <85532172+mconstant@users.noreply.github.com>
Co-authored-by: mconstant <85532172+mconstant@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix payments triggering and countdowns in footer Add footer countdown timers and expose scheduler config endpoint Feb 12, 2026
Copilot AI requested a review from mconstant February 12, 2026 00:35
Copy link
Contributor Author

Copilot AI commented Feb 12, 2026

@copilot start again I merged the footer and other stuff in

I can see the footer and countdown changes are still in this branch. Could you clarify what you'd like me to do? Should I:

  1. Revert all my changes to start fresh on a new feature?
  2. Update the existing footer implementation?
  3. Something else?

Also, which branch should I use as the base - I don't see a main/master branch to compare against.

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