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
# 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" />
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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:
notes: text("notes")column tosshDatatableexpirationDate: text("expiration_date")column tosshDatatableBackend (
src/backend/database/routes/ssh.ts):/db/hostto acceptnotesandexpirationDate/db/host/:idto updatenotesandexpirationDateFrontend:
Textareacomponent with improved focus styling (ring effects, transitions)HostManagerEditor.tsxto include notes and expiration date fieldsSSHHostandSSHHostDatainterfacesLocalization:
Use Cases