feature/search-proposition-with-filters #133

Merged
aniram merged 50 commits from feature/search-proposition-with-filters into main 2026-07-24 21:19:41 +00:00
Owner
  • Search propositions by name(PL 1/2001) and topic.
  • Redesign. Use primitives for font-sizes, font-families and colors.
  • Change fonts from TTF to WOFF2, and use Roboto Mono, InriaSerif and Inter.
  • Reorganize HTML templates.
  • Remove presenter layer.
- Search propositions by name(PL 1/2001) and topic. - Redesign. Use primitives for font-sizes, font-families and colors. - Change fonts from TTF to WOFF2, and use Roboto Mono, InriaSerif and Inter. - Reorganize HTML templates. - Remove presenter layer.
aniram added this to the 2026.1 milestone 2026-07-23 23:33:43 +00:00
aniram force-pushed feature/search-proposition-with-filters from 622f394841 to af4d9b8894 2026-07-23 23:35:47 +00:00 Compare
aniram force-pushed feature/search-proposition-with-filters from af4d9b8894 to c3a612e66e 2026-07-23 23:42:38 +00:00 Compare
aniram force-pushed feature/search-proposition-with-filters from c3a612e66e to 7c651f3853 2026-07-23 23:46:17 +00:00 Compare
aniram force-pushed feature/search-proposition-with-filters from 7c651f3853 to 1e80b86d9c 2026-07-23 23:48:12 +00:00 Compare
@ -53,0 +52,4 @@
func (h PropositionHandler) RenderErrorTemplate(w http.ResponseWriter, err error, msg string, query string) {
if msg != "" {
fmt.Printf("Error: %s: %v", msg, err)
Author
Owner

Add newline to printf.

Add newline to printf.
aniram marked this conversation as resolved
@ -96,0 +146,4 @@
var err error
propositions, err = h.propositions.ByKeyword(query, itemsPerPage, itemsPerPage*(pageNum-1))
if err != nil && err != sql.ErrNoRows {
h.RenderErrorTemplate(w, err, "render propositions by number", "")
Author
Owner

Message should be "render propositions by keyword".

Message should be "render propositions by keyword".
aniram marked this conversation as resolved
@ -158,3 +232,3 @@
idStr := r.PathValue("id")
if idStr == "" {
h.RenderErrorTemplate(w, errors.New("failed to read 'id' from URL as it empty"))
h.RenderErrorTemplate(w, errors.New("read 'id' from URL as it empty"), "", "")
Author
Owner

Write 'id' uppercased.

Write 'id' uppercased.
aniram marked this conversation as resolved
@ -169,0 +302,4 @@
}
if err := h.templ.ExecuteTemplate(w, "proposition-page", data); err != nil {
fmt.Printf("Failed to render Proposition Page template: %v\n", err)
Author
Owner

Write "failed" instead of "Failed".

Write "failed" instead of "Failed".
aniram marked this conversation as resolved
@ -0,0 +20,4 @@
func (h SearchHandler) Render(w http.ResponseWriter, r *http.Request) {
if err := h.templ.ExecuteTemplate(w, "search-page", nil); err != nil {
fmt.Printf("failed to render search page: %v\n", err)
Author
Owner

Write the template's name uppercase to differentiate it.

Write the template's name uppercase to differentiate it.
aniram marked this conversation as resolved
@ -84,0 +126,4 @@
uri,
urlInteiroTeor,
COUNT(*) OVER()
FROM proposition WHERE siglaTipo = ? AND numero = ? and ano = ?
Author
Owner

Write "AND ano" instead of "and ano".

Write "AND ano" instead of "and ano".
aniram marked this conversation as resolved
@ -0,0 +8,4 @@
<a
href="/"
>
<!-- Home -->
Author
Owner

Write to help when searching for "Icon".

Write <!-- Home Icon --> to help when searching for "Icon".
aniram marked this conversation as resolved
@ -0,0 +18,4 @@
<a
href="/busca"
>
<!-- Search -->
Author
Owner

Write to help when searching for "Icon".

Write <!-- Search Icon --> to help when searching for "Icon".
aniram marked this conversation as resolved
@ -0,0 +28,4 @@
<a
class="flex flex-col justify-center items-center size-10 rounded-xl"
>
<!-- Settings -->
Author
Owner

Write to help when searching for "Icon".

Write <!-- Settings Icon --> to help when searching for "Icon".
aniram marked this conversation as resolved
@ -0,0 +1,29 @@
{{ define "proposition-detail" }}
Author
Owner

Remove this file.

Remove this file.
aniram marked this conversation as resolved
aniram merged commit 9f0753e7aa into main 2026-07-24 21:19:41 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
overdrives/chambersbr!133
No description provided.