diff --git a/.gitignore b/.gitignore index df0a1b4..8e05df5 100644 --- a/.gitignore +++ b/.gitignore @@ -178,4 +178,4 @@ cython_debug/ **/**.DS_Store _site/* !_site/.gitkeep - +output.projects.json diff --git a/templates/kaban_board.html b/templates/kaban_board.html index dd42be2..4d35c35 100644 --- a/templates/kaban_board.html +++ b/templates/kaban_board.html @@ -59,56 +59,65 @@

{{ title }}

- + {% for status in statuses %} -
-
-
{{ status }}
+
+
+
{{ status }}
- {% for task in tasks if task.status == status %} - {% set card_id = "card-" ~ status | lower | replace(" ", "-") ~ "-" ~ loop.index0 %} + {% for task in tasks if task.status == status %} + {% set card_id = "card-" ~ status | lower | replace(" ", "-") ~ "-" ~ loop.index0 %} -
- -
-
- - 📦 Repository: - - {{ task.content.repository }} - - +
+ -
👤 Assignee: {{ task.assignees | join(', ') }}
-
🏷️ Labels: {{ task.labels | join(', ') }}
-
📌 Status: {{ task.status }}
-
- View Issue +
+
+ + 📦 Repository: + + {{ task.content.repository }} + + +
+
+ + 👤 Assignee: + {{ task.assignees | join(', ') }} + +
+
+ + 🏷️ Labels: + {{ task.labels | join(', ') }} + +
+ {% endfor %}
- {% endfor %}
-
{% endfor %}
-
+
@@ -126,10 +135,22 @@

{{ title }}

// Iterate over all the cards kanbanCards.forEach(function(card) { // Get the card's title, issue number, and other text content to check if it matches the query - const title = card.querySelector('.d-flex .text-dark').textContent.toLowerCase(); - const issueNumber = card.querySelector('.d-flex .text-primary').textContent.toLowerCase(); - const repository = card.querySelector('.text-muted') ? card.querySelector('.text-muted').textContent.toLowerCase() : ''; - const assignee = card.querySelector('.d-flex .assignee') ? card.querySelector('.d-flex .assignee').textContent.toLowerCase() : ''; + const titleElement = card.querySelector('.text-dark'); + const issueNumberElement = card.querySelector('.text-primary'); + const repositoryElement = card.querySelector('.repo-name'); + const assigneeElement = card.querySelector('.assignee'); + const labelsElement = card.querySelector('.labels'); + + const title = titleElement ? titleElement.textContent.toLowerCase() : ''; + const issueNumber = issueNumberElement ? issueNumberElement.textContent.toLowerCase() : ''; + const repository = repositoryElement ? repositoryElement.textContent.toLowerCase() : ''; + const assignee = assigneeElement ? assigneeElement.textContent.toLowerCase() : ''; + const labels = labelsElement ? labelsElement.textContent.toLowerCase() : ''; + + // console.log("Title: " + title) + // console.log("Issue: " + issueNumber) + // console.log("Repository: " + repository) + // console.log("Assignee: " + assignee) // Check if the query matches any part of the task (title, issue number, repository, assignee) const matches = title.includes(query) || issueNumber.includes(query) || repository.includes(query) || assignee.includes(query);