Commit Graph
10 Commits
Author SHA1 Message Date
BordedDev 20967d3331 chore: merge branch 'feat/push-notifications' into main with chat-input refactors
- Reformatted empty arrow function bodies in autoCompletions to use block syntax
- Removed unused properties (previousValue, lastChange, changed) from ChatInputComponent
- Added expiryTimer property and removed redundant constructor assignments
- Simplified set value method by removing fallback to empty string
- Refactored resolveAutoComplete to use for-of loop and early return on duplicate matches
- Updated starsRender call formatting for consistency
2025-06-05 20:06:54 +00:00
BordedDev 8664f7564e feat: add async semaphore and run_in_executor wrapper to BaseMapper for thread-safe db operations 2025-05-31 22:54:17 +00:00
BordedDev abde6cb59e feat: add async semaphore and run_in_executor to BaseMapper for non-blocking DB calls
Introduce an asyncio.Semaphore(1) and a run_in_executor method in BaseMapper, wrapping synchronous table operations (find_one, exists, count, upsert) to prevent blocking the event loop. Add a loop property returning the current event loop.
2025-05-31 22:53:17 +00:00
BordedDev 02d877ac89 fix: correct variable reference in start time stripping for youtube embed
The bug was in `embed_youtube` function in `src/snek/system/template.py` where the variable `start_time` was being sliced instead of the loop variable `t` when stripping trailing 's' characters from time values. This caused incorrect start time parsing for all entries after the first in multi-start queries.
2025-05-23 16:14:32 +00:00
BordedDev a83452b3f6 feat: add application uptime tracking and new dumb-terminal web component
Add `time_start` initialization and `uptime_seconds`/`uptime` properties to the Application class, including a `_format_uptime` helper that converts seconds into a human-readable string with days, hours, minutes, and seconds. Introduce a new `DumbTerminal` custom element in `dumb-term.js` with a retro terminal UI, command history navigation, and a shadow DOM-based layout. Additionally, reformat multiple JavaScript files (app.js, chat-input.js, chat-window.js, event-handler.js, fancy-button.js) to use consistent 2-space indentation and double quotes, and remove trailing whitespace from license comments.
2025-05-23 13:45:56 +00:00
BordedDev ba3235402b feat: add uptime property and DumbTerminal component to app and static assets
Add `uptime_seconds` and `uptime` properties to the Application class in `src/snek/app.py`, tracking server runtime from `datetime.now()` on startup. Introduce a new `DumbTerminal` custom element in `src/snek/static/dumb-term.js` providing a retro terminal UI with command history. Reformat multiple JS files (app.js, chat-input.js, chat-window.js, event-handler.js, fancy-button.js) from 4-space to 2-space indentation and unify quote style to double quotes.
2025-05-23 13:34:30 +00:00
BordedDev 7e29f6d51b feat: add container CRUD views, mapper, service, model and update chat-input typing color 2025-05-20 01:34:05 +00:00
BordedDev 50df05a62d feat: add animated starfield background to app via sandbox.css and sandbox.html template
Introduce a twinkling starfield effect on the app page by creating a new `sandbox.css` stylesheet with `.star` positioning and `twinkle` keyframes, and a `sandbox.html` template that generates 200 randomized star elements with varying size, animation duration, and delay. Wire both into `app.html` by linking the stylesheet and including the template before the closing body tag.
2025-05-18 01:26:53 +00:00
BordedDev f522e7583e feat: add uuid-based uid generation and per-user upload directories in security and upload modules
- Introduce UIDNS class and uid() function in security.py for deterministic UUID5 generation
- Refactor hash() and verify() with type hints, docstrings, and string-based salt handling
- Replace global UPLOAD_DIR constant in upload.py with dynamic per-user upload folder derived from session uid
- Update file path handling to use user-specific upload directory instead of hardcoded ./drive path
2025-05-06 21:17:08 +00:00
BordedDev b349db3f97 feat: redesign search user results as thread cards with avatar and metadata
Replace the plain list-based user search results with a rich thread-style card layout
featuring avatar, nick, color-coded author, and last ping timestamp. Update the backend
view to pass user record objects and current_user context to the template.
2025-03-08 18:40:43 +00:00