update frontend ui, i18n, filters, and deps

This commit is contained in:
2026-01-22 06:18:04 +01:00
parent 88624f3bed
commit 2b659920c2
52 changed files with 13874 additions and 13 deletions

View File

@@ -27,6 +27,9 @@ type categorieRequest struct {
func (h *Handler) ListCategories(c *gin.Context) {
limit, offset, page := parsePagination(c.Query("page"), c.Query("limit"))
query := h.client.Categorie.Query()
if nom := c.Query("nom"); nom != "" {
query = query.Where(categorie.NomContainsFold(nom))
}
total, err := query.Count(c.Request.Context())
if err != nil {
c.JSON(http.StatusInternalServerError, gin.H{"erreur": "impossible de compter les categories"})