2afd8179523b153f9cc0fecad2f4ffd596d2ed3d
- Author
- TheEdgeOfRage <git@theedgeofrage.com>
- Committer
- TheEdgeOfRage <git@theedgeofrage.com>
- Date
Message
Diff
This diff is truncated to protect this page.
1diff --git a/AGENTS.md b/AGENTS.md
2index 87b6476e703f0662516db2f2b125fbb2aed09d2c..6b4c4e9fedb38104a6d307aa8a086831e5d6542e 100644
3--- a/AGENTS.md
4+++ b/AGENTS.md
5@@ -1,6 +1,6 @@
6 ## IMPORTANT
7
8-- Don't edit the generated templ code or mock files
9+- Don't edit generated go code like the templ.go or mock files manually. Always generate them using the make targets
10 - Don't invoke ANY go commands, the development workflow is orchestrated with make targets
11
12 ## Architecture
13diff --git a/Makefile b/Makefile
14index a1a4c1025e470d4f5c8c48a76c1d373bce76eb09..99bd2ce4416e08c4141fd8cbe33ecbb8c8907e0c 100644
15--- a/Makefile
16+++ b/Makefile
17@@ -5,9 +5,9 @@ DB_URI ?= postgres://ytrssil:ytrssil@localhost:5432/ytrssil?sslmode=disable
18 bin:
19 mkdir bin
20 bin/moq: bin
21- GOBIN=$(PWD)/bin go install github.com/matryer/moq@v0.6.0
22+ GOBIN=$(PWD)/bin go install github.com/matryer/moq@v0.7.1
23 bin/golangci-lint: bin
24- GOBIN=$(PWD)/bin go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.11.3
25+ GOBIN=$(PWD)/bin go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.11.4
26 bin/migrate: bin
27 GOBIN=$(PWD)/bin go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@v4.19.1
28 bin/air: bin
29diff --git a/assets/index.js b/assets/index.js
30index 356878032b929548e555308effa8d2a8b53f310e..2425c7604404a1fcdd58afa2556f157146d00ffb 100644
31--- a/assets/index.js
32+++ b/assets/index.js
33@@ -2,15 +2,6 @@ document.addEventListener("DOMContentLoaded", function() {
34 const searchInput = document.getElementById("video-search");
35 if (!searchInput) return;
36
37- const addVideoInput = document.querySelector("#add-video-modal input[name='video_id']");
38- if (addVideoInput) {
39- document.addEventListener("show.bs.modal", function (e) {
40- if (e.target.id === "add-video-modal") {
41- addVideoInput.focus();
42- }
43- });
44- }
45-
46 function performSearch() {
47 const videoCards = Array.from(document.querySelectorAll(".video-card"));
48 const query = searchInput.value.trim();
49diff --git a/pages/add_video_modal.templ b/pages/add_video_modal.templ
50index fda99e97a3b0db73987390554d03d3cdb643dfc6..34a04d66c4f785a031a105f583faa4bf545d86ff 100644
51--- a/pages/add_video_modal.templ
52+++ b/pages/add_video_modal.templ
53@@ -23,6 +23,7 @@ templ addVideoModal() {
54 placeholder="Video ID"
55 class="form-control"
56 autocomplete="off"
57+ autofocus
58 />
59 <button type="submit" class="btn btn-primary ms-3"><i class="bi bi-camera-video"></i></button>
60 </form>
61diff --git a/pages/add_video_modal_templ.go b/pages/add_video_modal_templ.go
62index 0195ddf46b74cbf91f03f36010f80766b63000d0..d5bbe9e8421235d9ad2b18817ba530ff4a7c7a43 100644
63--- a/pages/add_video_modal_templ.go
64+++ b/pages/add_video_modal_templ.go
65@@ -30,7 +30,7 @@ func addVideoModal() templ.Component {
66 templ_7745c5c3_Var1 = templ.NopComponent
67 }
68 ctx = templ.ClearChildren(ctx)