Implement complete ANSI art terminal redesign
Transform entire UI into retro terminal aesthetic with ASCII/ANSI art:
Visual Changes:
- Add large ASCII art "TINKER TICKETS" banner with typewriter animation
- Terminal black background (#0a0a0a) with matrix green text (#00ff41)
- ASCII borders throughout using box-drawing characters (┌─┐│└─┘╔═╗║╚╝)
- Monospace fonts (Courier New, Consolas, Monaco) everywhere
- All rounded corners removed (border-radius: 0)
- Text glow effects on important elements
- Terminal prompts (>, $) and brackets ([]) on all UI elements
Dashboard:
- Table with ASCII corner decorations and terminal green borders
- Headers with > prefix and amber glow
- Priority badges: [P1] [P2] format with colored glows
- Status badges: [OPEN] [CLOSED] with borders and glows
- Search box with $ SEARCH prompt
- All buttons in [ BRACKET ] format
Ticket View:
- Ticket container with double ASCII borders (╔╗╚╝)
- Priority-colored corner characters
- UUID display: [UUID: xxx] format
- Comments section: ╔═══ COMMENTS ═══╗ header
- Activity timeline with ASCII tree (├──, │, └──)
- Tabs with [ ] brackets and ▼ active indicator
Components:
- Modals with ╔═══ TITLE ═══╗ headers and ASCII corners
- Hamburger menu with MENU SYSTEM box decoration
- Settings modal with terminal styling
- All inputs with green borders and amber focus glow
- Checkboxes with ✓ characters
Technical:
- New file: ascii-banner.js with banner artwork and typewriter renderer
- Comprehensive responsive design (1024px, 768px, 480px breakpoints)
- Mobile: simplified ASCII, hidden decorations, full-width menu
- Print styles for clean black/white output
- All functionality preserved, purely visual transformation
Colors preserved:
- Priority: P1=red, P2=orange, P3=blue, P4=green, P5=gray
- Status: Open=green, In Progress=yellow, Closed=red
- Accents: Terminal green, amber, cyan
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-06 23:22:25 -05:00
|
|
|
/**
|
|
|
|
|
* ASCII Art Banners for Tinker Tickets - Terminal Edition
|
|
|
|
|
*
|
|
|
|
|
* This file contains ASCII art banners and rendering functions
|
|
|
|
|
* for the retro terminal aesthetic redesign.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
// ASCII Art Banner Definitions
|
|
|
|
|
const ASCII_BANNERS = {
|
|
|
|
|
// Main large banner for desktop
|
|
|
|
|
main: `
|
|
|
|
|
╔══════════════════════════════════════════════════════════════════════════╗
|
|
|
|
|
║ ║
|
|
|
|
|
║ ████████╗██╗███╗ ██╗██╗ ██╗███████╗██████╗ ║
|
|
|
|
|
║ ╚══██╔══╝██║████╗ ██║██║ ██╔╝██╔════╝██╔══██╗ ║
|
|
|
|
|
║ ██║ ██║██╔██╗ ██║█████╔╝ █████╗ ██████╔╝ ║
|
|
|
|
|
║ ██║ ██║██║╚██╗██║██╔═██╗ ██╔══╝ ██╔══██╗ ║
|
|
|
|
|
║ ██║ ██║██║ ╚████║██║ ██╗███████╗██║ ██║ ║
|
|
|
|
|
║ ╚═╝ ╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ ║
|
|
|
|
|
║ ║
|
|
|
|
|
║ ████████╗██╗ ██████╗██╗ ██╗███████╗████████╗███████╗ ║
|
|
|
|
|
║ ╚══██╔══╝██║██╔════╝██║ ██╔╝██╔════╝╚══██╔══╝██╔════╝ ║
|
|
|
|
|
║ ██║ ██║██║ █████╔╝ █████╗ ██║ ███████╗ ║
|
|
|
|
|
║ ██║ ██║██║ ██╔═██╗ ██╔══╝ ██║ ╚════██║ ║
|
|
|
|
|
║ ██║ ██║╚██████╗██║ ██╗███████╗ ██║ ███████║ ║
|
|
|
|
|
║ ╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝╚══════╝ ╚═╝ ╚══════╝ ║
|
|
|
|
|
║ ║
|
|
|
|
|
║ >> RETRO TERMINAL TICKETING SYSTEM v1.0 << ║
|
|
|
|
|
║ ║
|
|
|
|
|
╚══════════════════════════════════════════════════════════════════════════╝
|
|
|
|
|
`,
|
|
|
|
|
|
|
|
|
|
// Compact version for smaller screens
|
|
|
|
|
compact: `
|
|
|
|
|
┌──────────────────────────────────────────────────────────┐
|
|
|
|
|
│ ▀█▀ █ █▄ █ █▄▀ █▀▀ █▀█ ▀█▀ █ █▀▀ █▄▀ █▀▀ ▀█▀ █▀ │
|
|
|
|
|
│ █ █ █ ▀█ █ █ ██▄ █▀▄ █ █ █▄▄ █ █ ██▄ █ ▄█ │
|
|
|
|
|
│ Terminal Ticketing System v1.0 │
|
|
|
|
|
└──────────────────────────────────────────────────────────┘
|
|
|
|
|
`,
|
|
|
|
|
|
|
|
|
|
// Minimal version for mobile
|
|
|
|
|
minimal: `
|
|
|
|
|
╔════════════════════════════╗
|
|
|
|
|
║ TINKER TICKETS v1.0 ║
|
|
|
|
|
╚════════════════════════════╝
|
|
|
|
|
`
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Renders ASCII banner with optional typewriter effect
|
|
|
|
|
*
|
|
|
|
|
* @param {string} bannerId - ID of banner to render ('main', 'compact', or 'minimal')
|
|
|
|
|
* @param {string} containerSelector - CSS selector for container element
|
|
|
|
|
* @param {number} speed - Speed of typewriter effect in milliseconds (0 = instant)
|
|
|
|
|
* @param {boolean} addGlow - Whether to add text glow effect
|
|
|
|
|
*/
|
|
|
|
|
function renderASCIIBanner(bannerId, containerSelector, speed = 5, addGlow = true) {
|
|
|
|
|
const banner = ASCII_BANNERS[bannerId];
|
|
|
|
|
const container = document.querySelector(containerSelector);
|
|
|
|
|
|
|
|
|
|
if (!container || !banner) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Create pre element for ASCII art
|
|
|
|
|
const pre = document.createElement('pre');
|
Accessibility pass: ARIA roles, label associations, CSS class migrations
- Add role=dialog/aria-modal/aria-labelledby to all 12 modal overlays (JS + PHP)
- Add aria-label="Close" to all 14 modal close buttons
- Add full ARIA combobox pattern to @mention autocomplete (listbox, option, aria-selected, aria-expanded)
- Add for= attributes to admin filter form labels (AuditLog, UserActivity, ApiKeys)
- Remove dead closeOnAdvancedSearchBackdropClick() from advanced-search.js
CSS/JS style cleanup:
- Move .ascii-banner static styles from JS inline to CSS class; add .ascii-banner--glow
- Add .ascii-banner-cursor, .loading-overlay--hiding, .has-overlay, tr[data-clickable]
- Add .animate-fadein/.animate-fadeout/.comment--deleting to ticket.css
- Add .lt-toast--hiding to base.css; remove opacity/transition inline JS
- Remove redundant cursor:pointer JS (already in th{} CSS rule)
- Remove trailing space in lt-select class attributes
Bug fixes:
- base.js: boot overlay opacity inline style was overriding .fade-out class opacity via
specificity (1000 vs 20), preventing the fade-out animation — removed
- ascii-banner.js: cursor used blink-caret (border-color only) instead of blink-cursor
(opacity-based), so the █ cursor never actually blinked — fixed
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-20 20:29:58 -04:00
|
|
|
pre.className = addGlow ? 'ascii-banner ascii-banner--glow' : 'ascii-banner';
|
Implement complete ANSI art terminal redesign
Transform entire UI into retro terminal aesthetic with ASCII/ANSI art:
Visual Changes:
- Add large ASCII art "TINKER TICKETS" banner with typewriter animation
- Terminal black background (#0a0a0a) with matrix green text (#00ff41)
- ASCII borders throughout using box-drawing characters (┌─┐│└─┘╔═╗║╚╝)
- Monospace fonts (Courier New, Consolas, Monaco) everywhere
- All rounded corners removed (border-radius: 0)
- Text glow effects on important elements
- Terminal prompts (>, $) and brackets ([]) on all UI elements
Dashboard:
- Table with ASCII corner decorations and terminal green borders
- Headers with > prefix and amber glow
- Priority badges: [P1] [P2] format with colored glows
- Status badges: [OPEN] [CLOSED] with borders and glows
- Search box with $ SEARCH prompt
- All buttons in [ BRACKET ] format
Ticket View:
- Ticket container with double ASCII borders (╔╗╚╝)
- Priority-colored corner characters
- UUID display: [UUID: xxx] format
- Comments section: ╔═══ COMMENTS ═══╗ header
- Activity timeline with ASCII tree (├──, │, └──)
- Tabs with [ ] brackets and ▼ active indicator
Components:
- Modals with ╔═══ TITLE ═══╗ headers and ASCII corners
- Hamburger menu with MENU SYSTEM box decoration
- Settings modal with terminal styling
- All inputs with green borders and amber focus glow
- Checkboxes with ✓ characters
Technical:
- New file: ascii-banner.js with banner artwork and typewriter renderer
- Comprehensive responsive design (1024px, 768px, 480px breakpoints)
- Mobile: simplified ASCII, hidden decorations, full-width menu
- Print styles for clean black/white output
- All functionality preserved, purely visual transformation
Colors preserved:
- Priority: P1=red, P2=orange, P3=blue, P4=green, P5=gray
- Status: Open=green, In Progress=yellow, Closed=red
- Accents: Terminal green, amber, cyan
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-06 23:22:25 -05:00
|
|
|
pre.style.fontSize = getBannerFontSize(bannerId);
|
|
|
|
|
|
|
|
|
|
container.appendChild(pre);
|
|
|
|
|
|
|
|
|
|
// Instant render or typewriter effect
|
|
|
|
|
if (speed === 0) {
|
|
|
|
|
pre.textContent = banner;
|
|
|
|
|
} else {
|
|
|
|
|
renderWithTypewriter(pre, banner, speed);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get appropriate font size for banner type
|
|
|
|
|
*
|
|
|
|
|
* @param {string} bannerId - Banner ID
|
|
|
|
|
* @returns {string} - CSS font size
|
|
|
|
|
*/
|
|
|
|
|
function getBannerFontSize(bannerId) {
|
|
|
|
|
const width = window.innerWidth;
|
|
|
|
|
|
|
|
|
|
if (bannerId === 'main') {
|
|
|
|
|
if (width < 768) return '0.4rem';
|
|
|
|
|
if (width < 1024) return '0.6rem';
|
|
|
|
|
return '0.8rem';
|
|
|
|
|
} else if (bannerId === 'compact') {
|
|
|
|
|
if (width < 768) return '0.6rem';
|
|
|
|
|
return '0.8rem';
|
|
|
|
|
} else {
|
|
|
|
|
return '0.8rem';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Renders text with typewriter effect
|
|
|
|
|
*
|
|
|
|
|
* @param {HTMLElement} element - Element to render into
|
|
|
|
|
* @param {string} text - Text to render
|
|
|
|
|
* @param {number} speed - Speed in milliseconds per character
|
|
|
|
|
*/
|
|
|
|
|
function renderWithTypewriter(element, text, speed) {
|
|
|
|
|
let index = 0;
|
|
|
|
|
|
|
|
|
|
const typeInterval = setInterval(() => {
|
|
|
|
|
element.textContent = text.substring(0, index);
|
|
|
|
|
index++;
|
|
|
|
|
|
|
|
|
|
if (index > text.length) {
|
|
|
|
|
clearInterval(typeInterval);
|
|
|
|
|
// Trigger completion event
|
|
|
|
|
const event = new CustomEvent('bannerComplete');
|
|
|
|
|
element.dispatchEvent(event);
|
|
|
|
|
}
|
|
|
|
|
}, speed);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Renders responsive banner based on screen size
|
|
|
|
|
*
|
|
|
|
|
* @param {string} containerSelector - CSS selector for container
|
|
|
|
|
* @param {number} speed - Typewriter speed (0 = instant)
|
|
|
|
|
*/
|
|
|
|
|
function renderResponsiveBanner(containerSelector, speed = 5) {
|
|
|
|
|
const width = window.innerWidth;
|
|
|
|
|
|
|
|
|
|
let bannerId;
|
|
|
|
|
if (width < 480) {
|
|
|
|
|
bannerId = 'minimal';
|
|
|
|
|
} else if (width < 1024) {
|
|
|
|
|
bannerId = 'compact';
|
|
|
|
|
} else {
|
|
|
|
|
bannerId = 'main';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
renderASCIIBanner(bannerId, containerSelector, speed, true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Animated welcome sequence
|
|
|
|
|
* Shows banner followed by a blinking cursor effect
|
|
|
|
|
*
|
|
|
|
|
* @param {string} containerSelector - CSS selector for container
|
|
|
|
|
*/
|
|
|
|
|
function animatedWelcome(containerSelector) {
|
|
|
|
|
const container = document.querySelector(containerSelector);
|
|
|
|
|
|
|
|
|
|
if (!container) return;
|
|
|
|
|
|
|
|
|
|
// Clear container
|
|
|
|
|
container.innerHTML = '';
|
|
|
|
|
|
|
|
|
|
// Render banner
|
|
|
|
|
renderResponsiveBanner(containerSelector, 3);
|
|
|
|
|
|
|
|
|
|
// Add blinking cursor after banner
|
|
|
|
|
const banner = container.querySelector('.ascii-banner');
|
|
|
|
|
if (banner) {
|
|
|
|
|
banner.addEventListener('bannerComplete', () => {
|
|
|
|
|
const cursor = document.createElement('span');
|
|
|
|
|
cursor.textContent = '█';
|
Accessibility pass: ARIA roles, label associations, CSS class migrations
- Add role=dialog/aria-modal/aria-labelledby to all 12 modal overlays (JS + PHP)
- Add aria-label="Close" to all 14 modal close buttons
- Add full ARIA combobox pattern to @mention autocomplete (listbox, option, aria-selected, aria-expanded)
- Add for= attributes to admin filter form labels (AuditLog, UserActivity, ApiKeys)
- Remove dead closeOnAdvancedSearchBackdropClick() from advanced-search.js
CSS/JS style cleanup:
- Move .ascii-banner static styles from JS inline to CSS class; add .ascii-banner--glow
- Add .ascii-banner-cursor, .loading-overlay--hiding, .has-overlay, tr[data-clickable]
- Add .animate-fadein/.animate-fadeout/.comment--deleting to ticket.css
- Add .lt-toast--hiding to base.css; remove opacity/transition inline JS
- Remove redundant cursor:pointer JS (already in th{} CSS rule)
- Remove trailing space in lt-select class attributes
Bug fixes:
- base.js: boot overlay opacity inline style was overriding .fade-out class opacity via
specificity (1000 vs 20), preventing the fade-out animation — removed
- ascii-banner.js: cursor used blink-caret (border-color only) instead of blink-cursor
(opacity-based), so the █ cursor never actually blinked — fixed
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-20 20:29:58 -04:00
|
|
|
cursor.className = 'ascii-banner-cursor';
|
Implement complete ANSI art terminal redesign
Transform entire UI into retro terminal aesthetic with ASCII/ANSI art:
Visual Changes:
- Add large ASCII art "TINKER TICKETS" banner with typewriter animation
- Terminal black background (#0a0a0a) with matrix green text (#00ff41)
- ASCII borders throughout using box-drawing characters (┌─┐│└─┘╔═╗║╚╝)
- Monospace fonts (Courier New, Consolas, Monaco) everywhere
- All rounded corners removed (border-radius: 0)
- Text glow effects on important elements
- Terminal prompts (>, $) and brackets ([]) on all UI elements
Dashboard:
- Table with ASCII corner decorations and terminal green borders
- Headers with > prefix and amber glow
- Priority badges: [P1] [P2] format with colored glows
- Status badges: [OPEN] [CLOSED] with borders and glows
- Search box with $ SEARCH prompt
- All buttons in [ BRACKET ] format
Ticket View:
- Ticket container with double ASCII borders (╔╗╚╝)
- Priority-colored corner characters
- UUID display: [UUID: xxx] format
- Comments section: ╔═══ COMMENTS ═══╗ header
- Activity timeline with ASCII tree (├──, │, └──)
- Tabs with [ ] brackets and ▼ active indicator
Components:
- Modals with ╔═══ TITLE ═══╗ headers and ASCII corners
- Hamburger menu with MENU SYSTEM box decoration
- Settings modal with terminal styling
- All inputs with green borders and amber focus glow
- Checkboxes with ✓ characters
Technical:
- New file: ascii-banner.js with banner artwork and typewriter renderer
- Comprehensive responsive design (1024px, 768px, 480px breakpoints)
- Mobile: simplified ASCII, hidden decorations, full-width menu
- Print styles for clean black/white output
- All functionality preserved, purely visual transformation
Colors preserved:
- Priority: P1=red, P2=orange, P3=blue, P4=green, P5=gray
- Status: Open=green, In Progress=yellow, Closed=red
- Accents: Terminal green, amber, cyan
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-06 23:22:25 -05:00
|
|
|
banner.appendChild(cursor);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Export functions for use in other scripts
|
|
|
|
|
if (typeof module !== 'undefined' && module.exports) {
|
|
|
|
|
module.exports = {
|
|
|
|
|
ASCII_BANNERS,
|
|
|
|
|
renderASCIIBanner,
|
|
|
|
|
renderResponsiveBanner,
|
|
|
|
|
animatedWelcome
|
|
|
|
|
};
|
|
|
|
|
}
|