Notes and Expiry fields add #453

Merged
Medvedinca merged 6 commits from future-notes-and-expiry into dev-1.10.0 2025-12-20 03:11:28 +00:00
Medvedinca commented 2025-12-18 09:10:19 +00:00 (Migrated from github.com)

Add Notes and Expiration Date Fields to SSH Hosts

Summary

Added two new optional fields to SSH host configurations: Notes and Expiration Date for better host documentation and credential lifecycle management.

Changes

Database Schema:

  • Added notes: text("notes") column to sshData table
  • Added expirationDate: text("expiration_date") column to sshData table

Backend (src/backend/database/routes/ssh.ts):

  • Updated POST /db/host to accept notes and expirationDate
  • Updated PUT /db/host/:id to update notes and expirationDate
  • Both fields stored as nullable text

Frontend:

  • Enhanced Textarea component with improved focus styling (ring effects, transitions)
  • Updated HostManagerEditor.tsx to include notes and expiration date fields
  • Added TypeScript types to SSHHost and SSHHostData interfaces

Localization:

  • Added translations for English and Russian

Use Cases

  • Notes: Add documentation, setup instructions, or troubleshooting info
  • Expiration Date: Track temporary credentials or time-limited access

image
# Add Notes and Expiration Date Fields to SSH Hosts ## Summary Added two new optional fields to SSH host configurations: **Notes** and **Expiration Date** for better host documentation and credential lifecycle management. ## Changes **Database Schema:** - Added `notes: text("notes")` column to `sshData` table - Added `expirationDate: text("expiration_date")` column to `sshData` table **Backend (`src/backend/database/routes/ssh.ts`):** - Updated POST `/db/host` to accept `notes` and `expirationDate` - Updated PUT `/db/host/:id` to update `notes` and `expirationDate` - Both fields stored as nullable text **Frontend:** - Enhanced `Textarea` component with improved focus styling (ring effects, transitions) - Updated `HostManagerEditor.tsx` to include notes and expiration date fields - Added TypeScript types to `SSHHost` and `SSHHostData` interfaces **Localization:** - Added translations for English and Russian ## Use Cases - **Notes**: Add documentation, setup instructions, or troubleshooting info - **Expiration Date**: Track temporary credentials or time-limited access --- <img width="1614" height="295" alt="image" src="https://github.com/user-attachments/assets/582a7026-56d9-49b2-a109-e97b869451eb" />
Sign in to join this conversation.