diff --git a/.gitattributes b/.gitattributes index ee063b5..a894673 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,2 @@ ./assets/kurious binary +*/**/*_templ.go binary diff --git a/.task/checksum/generate b/.task/checksum/generate index db3ce01..e9c2351 100644 --- a/.task/checksum/generate +++ b/.task/checksum/generate @@ -1 +1 @@ -de22f926e2940e47830ef3a33736db71 +8d0ebfae489db7ae534fee52ed6ceb3f diff --git a/internal/kurious/app/query/listcourses.go b/internal/kurious/app/query/listcourses.go index 0bcbc3c..701989e 100644 --- a/internal/kurious/app/query/listcourses.go +++ b/internal/kurious/app/query/listcourses.go @@ -44,7 +44,6 @@ func NewListCourseHandler( func (h listCourseHandler) Handle(ctx context.Context, query ListCourse) (out domain.ListCoursesResult, err error) { const defaultBatchSize = 1_000 - out.NextPageToken = query.NextPageToken drainFull := query.Limit == 0 if !drainFull { out.Courses = make([]domain.Course, 0, query.Limit) @@ -58,7 +57,6 @@ func (h listCourseHandler) Handle(ctx context.Context, query ListCourse) (out do OrganizationID: query.OrganizationID, Limit: query.Limit, Offset: query.Offset, - NextPageToken: out.NextPageToken, }) if err != nil { return out, fmt.Errorf("listing courses: %w", err) @@ -72,7 +70,6 @@ func (h listCourseHandler) Handle(ctx context.Context, query ListCourse) (out do }) out.Courses = append(out.Courses, result.Courses...) - out.NextPageToken = result.NextPageToken out.Count = result.Count if drainFull && len(result.Courses) == query.Limit { diff --git a/internal/kurious/ports/http/bootstrap/common.templ b/internal/kurious/ports/http/bootstrap/common.templ index d613ebf..6f29957 100644 --- a/internal/kurious/ports/http/bootstrap/common.templ +++ b/internal/kurious/ports/http/bootstrap/common.templ @@ -9,9 +9,8 @@ templ buttonRedirect(id, title string, linkTo string) { class="button" id={ "origin-link-" + id } > - { title } + { title } - @onclickRedirect("origin-link-" + id, linkTo) } diff --git a/internal/kurious/ports/http/bootstrap/common_templ.go b/internal/kurious/ports/http/bootstrap/common_templ.go index 0a6b61e..556004b 100644 --- a/internal/kurious/ports/http/bootstrap/common_templ.go +++ b/internal/kurious/ports/http/bootstrap/common_templ.go @@ -83,7 +83,7 @@ func buttonRedirect(id, title string, linkTo string) templ.Component { var templ_7745c5c3_Var4 string templ_7745c5c3_Var4, templ_7745c5c3_Err = templ.JoinStringErrs(title) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/kurious/ports/http/bootstrap/common.templ`, Line: 11, Col: 8} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/kurious/ports/http/bootstrap/common.templ`, Line: 11, Col: 9} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4)) if templ_7745c5c3_Err != nil { diff --git a/internal/kurious/ports/http/bootstrap/core.templ b/internal/kurious/ports/http/bootstrap/core.templ index 5e1a95b..e4a44c7 100644 --- a/internal/kurious/ports/http/bootstrap/core.templ +++ b/internal/kurious/ports/http/bootstrap/core.templ @@ -3,8 +3,8 @@ package bootstrap templ head(title string) { { title } - - + + - } @@ -28,30 +25,31 @@ templ headerNavbar(page PageKind) { diff --git a/internal/kurious/ports/http/bootstrap/main_templ.go b/internal/kurious/ports/http/bootstrap/main_templ.go index d21ed9b..82a7330 100644 --- a/internal/kurious/ports/http/bootstrap/main_templ.go +++ b/internal/kurious/ports/http/bootstrap/main_templ.go @@ -292,7 +292,7 @@ func pagination(p Pagination) templ.Component { var templ_7745c5c3_Var17 string templ_7745c5c3_Var17, templ_7745c5c3_Err = templ.JoinStringErrs(strconv.Itoa(i)) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/kurious/ports/http/bootstrap/main.templ`, Line: 83, Col: 101} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/kurious/ports/http/bootstrap/main.templ`, Line: 83, Col: 103} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var17)) if templ_7745c5c3_Err != nil {