feat: show Anonymous in league when name empty, add username to settings, show salary hint in summary

This commit is contained in:
2026-06-25 01:54:37 +03:30
parent 605c41ab88
commit 88ccc6aa68
4 changed files with 26 additions and 0 deletions

View File

@@ -114,6 +114,8 @@ func (h *Handler) buildMonthlySummary(user *db.User, calY, calM int, startStr, e
est := computeMonthlySalary(days, h.DB, user.ID, st.HourlyRate, loc)
b.WriteString(fmt.Sprintf("\nSalary: %s (%.1f hours, %d days)",
est.formatSalary(st.Currency), est.WorkHours, est.WorkDays))
} else {
b.WriteString("\nSalary: No rate configured — use /setrate <amount>")
}
b.WriteString("\n\nDetails:\n")