UI redesign: condensed-sans ledger style with logo in the zero hero #18

Merged
claude-code merged 6 commits from feat/17-condensed-sans-redesign into main 2026-04-17 17:04:55 -06:00
2 changed files with 19 additions and 0 deletions
Showing only changes of commit eb689cd9a1 - Show all commits

View file

@ -83,6 +83,19 @@ def shift_year_month(year_month: str, delta: int) -> str:
return f"{new_year:04d}-{new_month0 + 1:02d}"
_MONTH_NAMES = [
"", "January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December",
]
def pretty_year_month(year_month: str) -> str:
if not valid_year_month(year_month):
return year_month
year, month = year_month.split("-")
return f"{_MONTH_NAMES[int(month)]} {year}"
def get_month(db: Session, year_month: str) -> Month | None:
stmt = select(Month).where(Month.year_month == year_month)
return db.scalar(stmt)

View file

@ -131,6 +131,9 @@ def view_month(
"month_create.html",
{
"year_month": year_month,
"pretty_year_month": month_service.pretty_year_month(year_month),
"pretty_prev": month_service.pretty_year_month(prev_ym),
"pretty_next": month_service.pretty_year_month(next_ym),
"prev_year_month": prev_ym,
"next_year_month": next_ym,
"all_months": all_months,
@ -148,6 +151,9 @@ def view_month(
{
"month": month,
"year_month": year_month,
"pretty_year_month": month_service.pretty_year_month(year_month),
"pretty_prev": month_service.pretty_year_month(prev_ym),
"pretty_next": month_service.pretty_year_month(next_ym),
"prev_year_month": prev_ym,
"next_year_month": next_ym,
"all_months": all_months,