Your one-stop-cake-shop for everything Freshly Baked has to offer

feat(m): add "list links" page #169

merged opened by a.starrysky.fyi targeting main from private/minion/push-mkpovzswunnr

The main page should list all of our links, as well as allowing us to edit or delete them. I've also rewritten the templating system here to work off a regex, which is a lot more comfortable and also means that templates which aren't used can avoid being evaluated (at the cost of making a template that is used multiple times be evaluated multiple times - perhaps we should be memoizing here?)

Labels

None yet.

requested-reviewers

None yet.

approved

None yet.

tested-working

None yet.

rejected

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:uuyqs6y3pwtbteet4swt5i5y/sh.tangled.repo.pull/3mc6qjooc5c22
+33 -42
Interdiff #3 โ†’ #4
-32
menu/.sqlx/query-069d278baf0c78799bcc919daec41ecd2a331e10d5a315a7eb133289c1689167.json
··· 1 - { 2 - "db_name": "PostgreSQL", 3 - "query": "SELECT \"from\", \"to\", \"owner\" FROM direct ORDER BY direct.\"from\" DESC", 4 - "describe": { 5 - "columns": [ 6 - { 7 - "ordinal": 0, 8 - "name": "from", 9 - "type_info": "Varchar" 10 - }, 11 - { 12 - "ordinal": 1, 13 - "name": "to", 14 - "type_info": "Varchar" 15 - }, 16 - { 17 - "ordinal": 2, 18 - "name": "owner", 19 - "type_info": "Varchar" 20 - } 21 - ], 22 - "parameters": { 23 - "Left": [] 24 - }, 25 - "nullable": [ 26 - false, 27 - false, 28 - false 29 - ] 30 - }, 31 - "hash": "069d278baf0c78799bcc919daec41ecd2a331e10d5a315a7eb133289c1689167" 32 - }
-3
menu/.sqlx/query-069d278baf0c78799bcc919daec41ecd2a331e10d5a315a7eb133289c1689167.json.license
··· 1 - SPDX-FileCopyrightText: 2026 Freshly Baked Cake 2 - 3 - SPDX-License-Identifier: CC0-1.0
-3
menu/.sqlx/query-1b4988d7979a505b569cfd4df711f85ea7a93074611822c91974eda5a473cff1.json.license
··· 1 - SPDX-FileCopyrightText: 2026 Freshly Baked Cake 2 - 3 - SPDX-License-Identifier: CC0-1.0
menu/Cargo.lock

This file has not been changed.

menu/Cargo.toml

This file has not been changed.

menu/src/html/index.html

This file has not been changed.

menu/src/html/public/logo.css

This file has not been changed.

menu/src/html/public/tables.css

This file has not been changed.

+1 -1
menu/src/main.rs
··· 250 250 if matches!(page_type, StaticPageType::Index) { 251 251 let links_query = sqlx::query_as!( 252 252 Link, 253 - r#"SELECT "from", "to", "owner" FROM direct ORDER BY direct."from" DESC"#, 253 + r#"SELECT "from", "to", "owner" FROM direct ORDER BY direct."from" ASC"#, 254 254 ) 255 255 .fetch_all( 256 256 STATE
-3
menu/.sqlx/query-9eecf9b43e5458bc95fc45fe8e48d6da5edb50cdbf1e7a478faf310d6b9022ad.json.license
··· 1 - SPDX-FileCopyrightText: 2026 Freshly Baked Cake 2 - 3 - SPDX-License-Identifier: CC0-1.0
+32
menu/.sqlx/query-ca0119f85393f3c3aa1907ed10aa70d9227a6d9586c3295af4dbca3ef4ea6be5.json
··· 1 + { 2 + "db_name": "PostgreSQL", 3 + "query": "SELECT \"from\", \"to\", \"owner\" FROM direct ORDER BY direct.\"from\" ASC", 4 + "describe": { 5 + "columns": [ 6 + { 7 + "ordinal": 0, 8 + "name": "from", 9 + "type_info": "Varchar" 10 + }, 11 + { 12 + "ordinal": 1, 13 + "name": "to", 14 + "type_info": "Varchar" 15 + }, 16 + { 17 + "ordinal": 2, 18 + "name": "owner", 19 + "type_info": "Varchar" 20 + } 21 + ], 22 + "parameters": { 23 + "Left": [] 24 + }, 25 + "nullable": [ 26 + false, 27 + false, 28 + false 29 + ] 30 + }, 31 + "hash": "ca0119f85393f3c3aa1907ed10aa70d9227a6d9586c3295af4dbca3ef4ea6be5" 32 + }
menu/.sqlx/query-ca0119f85393f3c3aa1907ed10aa70d9227a6d9586c3295af4dbca3ef4ea6be5.json.license

History

5 rounds 0 comments
sign up or login to add to the discussion
1 commit
expand
feat(m): add "list links" page
5/5 success
expand
expand 0 comments
pull request successfully merged
1 commit
expand
feat(m): add "list links" page
5/5 success
expand
expand 0 comments
1 commit
expand
feat(m): add "list links" page
5/5 success
expand
expand 0 comments
1 commit
expand
feat(m): add "list links" page
1/5 failed, 4/5 success
expand
expand 0 comments
1 commit
expand
feat(m): add "list links" page
5/5 success
expand
expand 0 comments