This repository has been archived by the owner on Jan 5, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 644
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #230 from lvalics/main
Dashboard feature and Errors page view.
- Loading branch information
Showing
21 changed files
with
310 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
from enum import Enum | ||
import random | ||
|
||
class ChatBotDefaults(Enum): | ||
NAME = "My First Chatbot" | ||
@staticmethod | ||
def NAME(): | ||
random_number = random.randint(1000, 9999) | ||
return f"ChatBot {random_number}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
{% extends 'layout/app.html' %} | ||
{% block content %} | ||
<main class="p-6"> | ||
<div class="flex flex-col gap-6"> | ||
<div class="card"> | ||
|
||
<div class="container mx-auto p-4"> | ||
<h1 class="text-xl font-bold mb-4">Error Check</h1> | ||
<table class="min-w-full leading-normal"> | ||
<thead> | ||
<tr> | ||
<th | ||
class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider"> | ||
Payload | ||
</th> | ||
<th | ||
class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider"> | ||
UUID | ||
</th> | ||
<th | ||
class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider"> | ||
Exception | ||
</th> | ||
<th | ||
class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider"> | ||
Failed At | ||
</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for error in errors %} | ||
<tr> | ||
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm"> | ||
{{ error.payload }} | ||
</td> | ||
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm"> | ||
{{ error.uuid }} | ||
</td> | ||
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm"> | ||
{{ error.exception }} | ||
</td> | ||
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm"> | ||
{{ error.failed_at }} | ||
</td> | ||
</tr> | ||
{% empty %} | ||
<tr> | ||
<td colspan="4" class="px-5 py-5 border-b border-gray-200 bg-white text-sm text-center"> | ||
No errors found. | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
<div class="pagination"> | ||
<span class="step-links"> | ||
{% if errors.has_previous %} | ||
<a href="?page=1">« first</a> | ||
<a href="?page={{ errors.previous_page_number }}">previous</a> | ||
{% endif %} | ||
<span class="current"> | ||
Page {{ errors.number }} of {{ errors.paginator.num_pages }}. | ||
</span> | ||
{% if errors.has_next %} | ||
<a href="?page={{ errors.next_page_number }}">next</a> | ||
<a href="?page={{ errors.paginator.num_pages }}">last »</a> | ||
{% endif %} | ||
</span> | ||
</div> | ||
|
||
</div> | ||
|
||
</div> | ||
</div> | ||
|
||
</main> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.