Commit Graph

19 Commits

Author SHA1 Message Date
Ken Johnson aefbe201d3 Fix dropdown text cutoff by reducing padding to optimal value
Reduced padding from 0.85rem to 0.5rem and adjusted line-height from 1.6 to 1.5
to prevent text from being cut off at the bottom of the dropdown selector. Also
added option styling to ensure consistent spacing throughout the dropdown.

The excessive padding was causing the text to be vertically centered in a way
that cut off descenders. The new values provide clean text rendering without cutoff.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-09 16:59:26 +00:00
Ken Johnson 5f8c24b285 Add !important rules to ensure dropdown height CSS applies
Added !important to all dropdown height/padding CSS rules to ensure
they override any conflicting Bootstrap or global styles:
- min-height: 52px !important
- line-height: 1.6 !important
- padding: 0.85rem 0.75rem !important
- vertical-align: middle !important
- box-sizing: border-box !important

This forces the styles to apply and prevent text cutoff.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-09 16:49:51 +00:00
Ken Johnson da1ce63e59 Increase dropdown height and padding to fully prevent text cutoff
Increased vertical spacing to ensure recipient names display fully:
- min-height: 48px → 52px
- line-height: 1.5 → 1.6
- padding: 0.75rem → 0.85rem
- Added vertical-align: middle

This provides more breathing room for text to prevent any cutoff
at the bottom of the dropdown field.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-09 16:47:54 +00:00
Ken Johnson 89cdf5f1d7 Fix dropdown text being cut off at the bottom
Added CSS to ensure proper height and padding:
- min-height: 48px (provides enough vertical space)
- line-height: 1.5 (proper text spacing)
- padding: 0.75rem (matches Bootstrap form-control-lg)

This prevents the selected recipient name from being cut off
at the bottom of the dropdown field.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-09 16:01:00 +00:00
Ken Johnson 9bc03f67af Remove all custom dropdown JavaScript and excessive CSS
The custom JavaScript was actually interfering with normal browser
behavior. The hide().show() and attribute manipulation was causing
the dropdown to reset visually after selection.

Changes:
- Removed all custom dropdown change event handlers
- Removed all debugging console logs
- Removed excessive !important CSS rules
- Removed debug red border
- Kept only the simple focus styling

Now using native browser select behavior with Bootstrap form-control
styling, which should work correctly out of the box.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-09 15:35:26 +00:00
Ken Johnson a9335952a5 Change dropdown from form-select to form-control class
Bootstrap 5's form-select class may have rendering issues.
Switched to form-control which has simpler styling and should
display the selected text properly.

Also explicitly added ID attribute to ensure JavaScript targets
the correct element.

Added additional debugging for:
- Font family
- Transform
- Position
- Z-index
- Padding
- Inner text/HTML of selected option

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-09 15:33:25 +00:00
Ken Johnson 632f8ca08e Add comprehensive CSS debugging and forced visibility properties
Added extensive CSS properties to force text visibility:
- Explicit text-indent: 0
- Overflow: visible
- Font-size and line-height
- Proper padding
- Red border for visual debugging

Added comprehensive JavaScript logging of computed styles:
- Font size, color, background
- Text indent, overflow
- Display, visibility, opacity
- Width and height

This will help identify which CSS property is hiding the selected text.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-09 15:30:39 +00:00
Ken Johnson b4a95e54a9 Add comprehensive debugging for dropdown selection issue
Added extensive console logging to diagnose why selected value
isn't displaying in the dropdown:
- Select element's full text content
- Selected index position
- Total options count
- Option text at selected index
- Explicitly setting 'selected' attribute on options

This will help identify whether the issue is with:
- Option selection not being applied
- Visual rendering despite correct selection
- Bootstrap form-select interference

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-09 15:05:06 +00:00
Ken Johnson ffac25bae3 Further improve dropdown selection display with enhanced CSS and debugging
Added enhanced CSS with !important rules and explicit appearance properties
to ensure the dropdown properly displays the selected recipient name.

Changes:
- Added explicit appearance properties for proper browser rendering
- Added !important to color and background-color rules
- Added styling for option:checked state
- Enhanced JavaScript debugging with value and color logging
- Added hide/show to force visual re-render

The console logs now show:
- Selected recipient name
- Selected value
- Current color CSS property

This should help diagnose and fix the visual display issue.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-09 15:04:36 +00:00
Ken Johnson 65e42ceee3 Remove Travis CI badge and improve dropdown selection handling
1. Removed broken Travis CI build status badge from README header

2. Enhanced dropdown selection on messages page:
   - Added explicit JavaScript change event handler
   - Added CSS to ensure proper text color and background
   - Added blur/focus to force visual update after selection
   - Added console logging for debugging

This should resolve the issue where selected recipient names weren't
displaying properly in the dropdown after selection.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-09 14:59:07 +00:00
Ken Johnson 05cc35927a Fix dropdown selection display on messages page
Added prompt option "Select a recipient..." to the To dropdown on
the messages page. This provides a clear placeholder and makes the
selected user's name visible after selection.

Before: Dropdown showed no placeholder, making it unclear what was selected
After: Shows "Select a recipient..." by default, then displays the
       selected user's name when a recipient is chosen

Fixes the issue where clicking a user in the dropdown didn't show
their name in the dropdown field.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-09 14:51:41 +00:00
Ken Johnson cff40e68ac Modernize messages page with inbox cards and sticky compose form
Complete redesign of the messaging interface with modern layout:

Inbox improvements:
- Replace table with modern message cards
- Each message shows circular gradient avatar with person icon
- Display sender name prominently with formatted date
- Show full message text with proper line wrapping
- Add Details and Delete action buttons with icons
- Hover effect highlights each message
- Beautiful empty state with inbox icon when no messages

Send Message form:
- Relocate to right sidebar with sticky positioning
- Add green gradient header with send icon
- Style as modern card with left border accent
- Large form controls with icons for better UX
- Recipient selector with all users
- Expandable textarea for message composition
- Full-width send button in success green
- Helpful tip box below form
- Modern Bootstrap 5 alerts with icons for success/error
- Auto-reload page after successful send to show new message

Layout enhancements:
- Two-column responsive layout (8/4 split)
- Inbox on left, compose on right
- Sticky compose form stays visible while scrolling
- Mobile-friendly with stacked layout on small screens
- Replace all Bootstrap 2 classes (row-fluid, span12, widget)
- Modern Bootstrap 5 grid and components
- Turbolinks compatibility

The page now provides a clean, modern messaging experience similar
to contemporary email/messaging applications.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-07 03:05:49 -05:00
Joseph Mastey b6c2259b88 removes user_id column from User model to use idiomatic Rails automatic IDs 2017-12-12 15:19:22 -06:00
James Espinosa 7e4fad462b Convert file indentation to spaces 2014-07-05 20:17:27 -05:00
James Espinosa 68e6a01743 Clean up trailing and leading whitespace 2014-07-05 19:15:32 -05:00
cktricky 8ed2714f3f changed constantize to metaprogramming for the addition of tutorials specific to metaprogramming flaws. In addition, the messages portion of the app needed some generic TLC so I have removed the "new" view in order to bring that functionality into the seed message page/view. 2014-05-20 14:25:45 -04:00
cktricky f02895351d removed a bit of cruft, also activated the sidebar item when working within the messages section 2013-10-13 23:17:18 -04:00
Mike McCabe 8c17a3df0e adding messaging function, needs tests... 2013-10-13 21:49:17 -04:00
Mike McCabe 8686f6b9d3 adding messages mvc to allow users to send messages. 2013-10-11 16:03:37 -04:00