1. revised the new date format (reformatted to be a function so it would return new dates each time called)
2. re-added new date format functionality as I had previously rolled it back while debugging the avatar loading issues discovered in last push.
3. resolved some issues related to loading past chats for bots with no chat save files. Usually this wouldn't happen, as a new (or previous) chat is loaded each time the character is selected. But in cases where the files are deleted after being created, the chat history loading screen would remain in a 'loading.svg' loop. I added errorhandling to avoid this, and to kick GetAllCharaChats() from trying to read empty arrays.
4. increased potential size of past chats popup box
1. Due to a mistake on my end character avatars were not updating real time. This has been fixed.
2. added some tooltips to icons and buttons on the right nav panel.
3. resized the New Character and Import Character buttons
1. Replaced all Date.now() instances with a humanized ISO8601 timestamp that is easily readable by users.
This has a seamless effect on the embedded timestamping of chat mesages. Old chat files can still be edited (messages deleted), and continued.
Character PNG files get updated with the new date format, and this will be reflected in github but there is no functional change to the user.
2. Added character name to the front of all newly saved/imported chat files. Old chats will retain their original filename unless re-imported.
With these two changes, the new chat filenames are as such:
"Aqua - 2023-3-3 @03h 08m 36s 948ms.jsonl"
(I would like to make it smaller, perhaps by removing the milliseconds. Let me know if this is possible, or if it would introduce potential overwrites if users make/update files within the same second.)
3. Increased the size of the 'view past chats' popup box to max 800px so accommodate the new larger filenames.
changed the right nav header tabs from "character" and "settings" to emojis that represent each respectively. This was to allow the selected character's name to have a larger display footprint for mobile screens.
previously the keydown eventlistener for 'enter' would trigger even though ctrl was pressed, so i changed it so it doesn't trigger when ctrl is pressed (previously it only checked if shift was not pressed)
- removed forced size tags from text-pole div's as these caused some textareas to overflow the nav on iphone. instead widths are done with CSS now.
- added <br> after yourName textarea and increased size of the nameChange button to match the API design. This is also better for phones.
Rewrote the nav HTML/CSS
.nav --> #right-nav-panel
.nav-toggle <label> --> removed, using #nav-toggle:after for styling instead
The main purpose of this rewrite was to allow for a function such that the nav panel will auto-close when the user clicks away from it. The former structure of using a label for a hidden checkbox made this impossible, as the label produced two clicks when clicked on (one for the label, and one for the box), therefore locking the panel if the click-away feature was turned on.
I will add in a 'pin' toggle soon to allow users to hold the nav panel open if they wish.
- Changed default font size from 1rem to 15px;
- removed unused CSS code for <main>,<article>,<header>, and <footer>, which were not used in the HTML
- made send3.png opaque and adjusted opacity with CSS
- removed redundant backdrop blur on from <body>
- removed redundant backdrop blur from bg1 and bg2 (they now only self-blur)
- made "Connect" button on both API panels larger for mobile screens, and added :hover coloring
- made character 'export' and 'delete' buttons larger and further apart to decrease likeliness of mis-clicks, especially on phone screens.
- adjusted send_form opacity/background stylings to allow #options to perform blur effect
- added <br> after novel API URL input to match KoboldAI form style
- cleaned up #options_content and added styling