Skip to content

Add time stamps#13

Merged
andreas-vester merged 4 commits intomainfrom
andreas-vester/issue12
Jan 22, 2026
Merged

Add time stamps#13
andreas-vester merged 4 commits intomainfrom
andreas-vester/issue12

Conversation

@andreas-vester
Copy link
Copy Markdown
Owner

  • Added "created_at" and "conlcuded_at" columns to the "applications"
    table.
  • Added "voted_at" column to the "votes" table.

Closes #12

This commit introduces timestamp tracking for key events in the funding application
system:

- Adds  and  fields to the  model.
- Adds  field to the  model.
- Automatically sets  upon application submission (via ).
- Sets  when a board member casts a vote.
- Sets  when an application's voting process is finalized (either
  approved or rejected, potentially through early conclusion logic).

Unit tests have been updated and added to  to verify the
correct population of these timestamp fields across various application and
voting scenarios.

Addresses the remaining open points in ai_docs/task_1_1.md regarding timestamping.
This commit introduces several new functionalities:

- Displays `created_at` and `concluded_at` timestamps in the
  application archive UI.
- Displays `voted_at` timestamp for each vote in the archive's expanded
  view.
- Adds `created_at` and `concluded_at` timestamps to all relevant email
  templates.
- Refactors SQLAlchemy models to use modern, type-annotated syntax with
  `Mapped` and `mapped_column` to improve type safety.
- Added "created_at" and "conlcuded_at" columns to the "applications"
table.
- Added "voted_at" column to the "votes" table.

Closes #12
@andreas-vester andreas-vester added the enhancement New feature or request label Jan 22, 2026
@andreas-vester andreas-vester self-assigned this Jan 22, 2026
@andreas-vester andreas-vester changed the title Andreas-vester/issue12 Add time stamps Jan 22, 2026
@andreas-vester andreas-vester merged commit b664213 into main Jan 22, 2026
3 checks passed
@andreas-vester andreas-vester deleted the andreas-vester/issue12 branch January 22, 2026 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Add date to archive list

1 participant