Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
2b1db8b
add devcontainer NET8
ferantivero Apr 15, 2025
62d8c5a
streamline: remove sln for visual studio
ferantivero Apr 15, 2025
66408e8
sort usings following .NET conventions
ferantivero Apr 16, 2025
51b20cd
streamline: use primery contructors
ferantivero Apr 16, 2025
27f6079
streamline: dict initialization
ferantivero Apr 16, 2025
843bf70
streamline: use var if can be inferred from context
ferantivero Apr 16, 2025
e1f9348
fix: guard null api configuration values
ferantivero Apr 16, 2025
b97b3fe
streamline: remove dup code
ferantivero Apr 16, 2025
150cda2
fix: stdout headers
ferantivero Apr 16, 2025
dae1fea
refact: add structure and more expresive logging capabs
ferantivero Apr 16, 2025
cff2100
fix: prompt null check
ferantivero Apr 16, 2025
5c6bddf
ai naming convention: replace query var name by prompt
ferantivero Apr 16, 2025
7965ed2
cleanup: address warnings removing dead code
ferantivero Apr 16, 2025
c188a98
cleanup: not currently in use UserSecretsId
ferantivero Apr 17, 2025
749f2fb
update: to System.Text.Json
ferantivero Apr 17, 2025
1648a10
streamline: remove not in use endpoint
ferantivero Apr 17, 2025
d897def
streamline: remove apparently not in use authZ capabs
ferantivero Apr 17, 2025
8d4e641
cleanup: remove unused dev appsettings
ferantivero Apr 17, 2025
e8a2eb5
fix: add expected app settings
ferantivero Apr 17, 2025
bbb4960
configure console log level and structure log entry
ferantivero Apr 17, 2025
fa8d13a
udpdate: use modern async js function with fetch instead of jq
ferantivero Apr 17, 2025
1bef5af
update: remove jq dep
ferantivero Apr 17, 2025
b12129c
cleanup: remove unused style
ferantivero Apr 17, 2025
40b3b47
udpate: use options for settings
ferantivero Apr 21, 2025
c7adc4d
cleanup: use controller placeholder convention for route
ferantivero Apr 21, 2025
d721cf0
cleanup: simplify http client init
ferantivero Apr 21, 2025
49846ab
cleanup: inline content init
ferantivero Apr 21, 2025
cdfecfe
cleanup: post and content stream invoking
ferantivero Apr 21, 2025
2eeff48
streamline: response hanlding
ferantivero Apr 21, 2025
aa6b7b5
improve: logging messages
ferantivero Apr 21, 2025
15b561e
update: register the httpclient
ferantivero Apr 21, 2025
88169c2
improve: naming conventions endpoint for an ai context
ferantivero Apr 21, 2025
69f290d
improve: js naming conventions
ferantivero Apr 21, 2025
37da25f
improve js query elements
ferantivero Apr 21, 2025
1fa0639
improve: add trycatch when sending a prompt
ferantivero Apr 21, 2025
c7ffe60
streamline js sendPrompr function
ferantivero Apr 21, 2025
ae7d588
streamline js addChatMessage
ferantivero Apr 21, 2025
523035e
streamline js formatDate function
ferantivero Apr 21, 2025
e2a9014
cleanup: distilled unused markup element
ferantivero Apr 21, 2025
24c32f3
improve: screen readers read new messages
ferantivero Apr 21, 2025
ea05d66
minors: indent, add semantic html element and more
ferantivero Apr 21, 2025
e8e0fe8
streamline: use file-scoped namespace
ferantivero Apr 21, 2025
7eae87e
streamline: launch profile and settings
ferantivero Apr 21, 2025
745a479
fix: remove message label that slipped through
ferantivero Apr 21, 2025
bddf108
refact: use record for inmuntale dto
ferantivero Apr 21, 2025
124f6f0
improve: prompt guard
ferantivero Apr 21, 2025
871922c
update zip
ferantivero Apr 21, 2025
c58d11d
Address PR Feedback: change app name
ferantivero Apr 22, 2025
64e6969
Address PR Feedback: fix assistant behavior
ferantivero Apr 22, 2025
c47591b
Address PR Feedback: change bot name
ferantivero Apr 22, 2025
030eba5
Address PR Feedback: change logging entry level for troubleshooting p…
ferantivero Apr 22, 2025
78a035e
Address PR Feedback: make naming convetions gpt-agnostic
ferantivero Apr 21, 2025
eabf6ae
Address PR Feedback: support settings hot reload
ferantivero Apr 22, 2025
a42814b
Address PR Feedback: use custom httpclienthanlder validation only in dev
ferantivero Apr 22, 2025
cf8f7c6
update zip after addressing pr feedback
ferantivero Apr 22, 2025
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
streamline js formatDate function
  • Loading branch information
ferantivero committed Apr 21, 2025
commit 523035e3f756d31cc6a33750d80cada4c7b062b8
7 changes: 2 additions & 5 deletions website/chatui/Views/Home/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -235,11 +235,8 @@
chatContainer.scrollTop = chatContainer.scrollHeight;
}

function formatDate(date) {
const h = "0" + date.getHours();
const m = "0" + date.getMinutes();

return `${h.slice(-2)}:${m.slice(-2)}`;
function formatTime(date) {
return date.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' });
}

function escapeHTML(str) {
Expand Down