Rebrand from Casera/MyCrib to honeyDue
Total rebrand across all Go API source files: - Go module path: casera-api -> honeydue-api - All imports updated (130+ files) - Docker: containers, images, networks renamed - Email templates: support email, noreply, icon URL - Domains: casera.app/mycrib.treytartt.com -> honeyDue.treytartt.com - Bundle IDs: com.tt.casera -> com.tt.honeyDue - IAP product IDs updated - Landing page, admin panel, config defaults - Seeds, CI workflows, Makefile, docs - Database table names preserved (no migration needed) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -22,7 +22,7 @@ internal/task/
|
||||
Pure Go functions that define task logic. These are the **canonical definitions** for all task states.
|
||||
|
||||
```go
|
||||
import "github.com/treytartt/casera-api/internal/task/predicates"
|
||||
import "github.com/treytartt/honeydue-api/internal/task/predicates"
|
||||
|
||||
// State checks
|
||||
predicates.IsCompleted(task) // NextDueDate == nil && len(Completions) > 0
|
||||
@@ -43,7 +43,7 @@ predicates.IsUpcoming(task, now, days) // Everything else
|
||||
GORM scope functions that produce the same results as predicates, but execute at the database level. Use these when counting or filtering large datasets without loading all records into memory.
|
||||
|
||||
```go
|
||||
import "github.com/treytartt/casera-api/internal/task/scopes"
|
||||
import "github.com/treytartt/honeydue-api/internal/task/scopes"
|
||||
|
||||
// State scopes
|
||||
db.Scopes(scopes.ScopeActive) // is_cancelled = false AND is_archived = false
|
||||
@@ -69,7 +69,7 @@ db.Scopes(scopes.ScopeKanbanOrder) // Due date ASC, priority DESC, cr
|
||||
Determines which kanban column a task belongs to. Uses predicates internally.
|
||||
|
||||
```go
|
||||
import "github.com/treytartt/casera-api/internal/task/categorization"
|
||||
import "github.com/treytartt/honeydue-api/internal/task/categorization"
|
||||
|
||||
// Single task
|
||||
column := categorization.CategorizeTask(task, 30)
|
||||
@@ -85,7 +85,7 @@ columns := categorization.CategorizeTasksIntoColumns(tasks, 30)
|
||||
For most use cases, import the main task package which re-exports everything:
|
||||
|
||||
```go
|
||||
import "github.com/treytartt/casera-api/internal/task"
|
||||
import "github.com/treytartt/honeydue-api/internal/task"
|
||||
|
||||
// Use predicates
|
||||
if task.IsCompleted(t) { ... }
|
||||
@@ -344,7 +344,7 @@ predicates.IsInProgress(task) // Checks task.InProgress boolean
|
||||
For most files, use the convenience re-exports:
|
||||
|
||||
```go
|
||||
import "github.com/treytartt/casera-api/internal/task"
|
||||
import "github.com/treytartt/honeydue-api/internal/task"
|
||||
|
||||
// Then use:
|
||||
task.IsCompleted(t)
|
||||
@@ -355,8 +355,8 @@ task.CategorizeTask(t, 30)
|
||||
For files that only need predicates or only need scopes:
|
||||
|
||||
```go
|
||||
import "github.com/treytartt/casera-api/internal/task/predicates"
|
||||
import "github.com/treytartt/casera-api/internal/task/scopes"
|
||||
import "github.com/treytartt/honeydue-api/internal/task/predicates"
|
||||
import "github.com/treytartt/honeydue-api/internal/task/scopes"
|
||||
```
|
||||
|
||||
## Related Documentation
|
||||
|
||||
Reference in New Issue
Block a user