This commit moves project search filtering from the server to the client. Changes include: - Remove `Query` field from `ListTablosInput` and related handlers - Add French date formatting for project cards - Convert search form to client-side filter with data attributes - Add empty state message for no search results - Update button border-radius from 0 to 0.7rem - Increase air.toml build command to include Tailwind CSS generation
48 lines
703 B
Go
48 lines
703 B
Go
package tablos
|
|
|
|
import (
|
|
"errors"
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
var ErrNotFound = errors.New("tablo not found")
|
|
|
|
type Status string
|
|
|
|
const (
|
|
StatusTodo Status = "todo"
|
|
StatusInProgress Status = "in_progress"
|
|
StatusDone Status = "done"
|
|
)
|
|
|
|
type Record struct {
|
|
ID uuid.UUID
|
|
OwnerID uuid.UUID
|
|
Name string
|
|
Color string
|
|
Status Status
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
DeletedAt *time.Time
|
|
}
|
|
|
|
type CreateInput struct {
|
|
OwnerID uuid.UUID
|
|
Name string
|
|
Color string
|
|
Status Status
|
|
}
|
|
|
|
type UpdateInput struct {
|
|
ID uuid.UUID
|
|
OwnerID uuid.UUID
|
|
Name string
|
|
Color string
|
|
}
|
|
|
|
type ListInput struct {
|
|
OwnerID uuid.UUID
|
|
Status *Status
|
|
}
|