Commit Graph

268 Commits

Author SHA1 Message Date
Andrew Brown
122638bbf4 Fix timeline editor duplicate events and drag-and-drop positioning
- Consolidated duplicate "Add Event" handlers by moving all JS from inline script to timeline-editor.js
- Fixed drag-and-drop position saving by correctly counting only event containers, not timeline header/rail elements
- Removed 1056 lines of duplicate inline JavaScript from edit.html.erb

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-03 22:45:40 -07:00
Andrew Brown
9e3d55035d Add auto-focus and colorful headers to link field dropdown
- Auto-focus search input when dropdown opens for immediate typing
- Add content-type specific colors to section headers (subtle background tint + colored text)
- Maintain clean design while bringing back visual distinction between content types

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-30 00:59:09 -07:00
Andrew Brown
1aaf563db6 Redesign link field dropdown with modern single-column layout
Replace overwhelming multi-column layout with clean, scannable single-column design:
- Add search functionality to filter pages
- Convert to single-column layout for better readability
- Use subtle section headers instead of bright color blocks
- Improve item styling with checkboxes, better spacing, and hover states
- Add proper empty states and no-results messaging
- Increase max height and make more compact

This transforms the dropdown from a janky color explosion into a modern, usable selector.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-30 00:56:12 -07:00
Andrew Brown
9c84521efe logged out views 2025-09-29 23:05:14 -07:00
Andrew Brown
8be0fc3747 style style style style style style style style style style 2025-09-28 21:27:18 -07:00
Andrew Brown
ef58f1b2ec Some risky biz gemfile/yarn dep updates 2025-09-07 22:16:05 -07:00
Andrew Brown
1a76197fce more wip stuff 2025-09-05 22:03:01 -07:00
Andrew Brown
2dbc433931 commits from last night 2025-09-02 16:10:46 -07:00
Andrew Brown
523d90a232 Fix Alpine.js expression errors and JavaScript issues in timeline editor
- Fix Alpine.js "function not defined" errors by adding typeof checks with fallbacks
- Fix "Invalid left-hand side in assignment" error by replacing x-model with manual binding
- Add Notebook namespace initialization to prevent "Notebook is not defined" errors
- Add defensive checks for missing jQuery plugins (iconpicker, modal)
- Ensure all Alpine.js expressions gracefully degrade when context unavailable
- Timeline editor now functions without JavaScript console errors

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-28 17:57:09 -07:00
Andrew Brown
fe9bcf5cc4 Complete MaterializeCSS to TailwindCSS migration cleanup
This commit finalizes the transition from MaterializeCSS to TailwindCSS by:

**Layout & Controller Changes:**
- Consolidated layouts/tailwind.html.erb into layouts/application.html.erb
- Removed `layout 'tailwind'` declarations from 21 controllers
- Removed MaterializeCSS CDN link while preserving Material Icons

**Asset Cleanup:**
- Deleted materialize.min.js (76KB) and materialize-overrides.scss
- Removed tailwind.html.erb (no longer needed)
- Cleaned up MaterializeCSS-specific JavaScript files

**JavaScript Modernization:**
- Removed MaterializeCSS initialization and select components
- Updated autosave.js and timeline-editor.js to remove M.toast() calls
- Deprecated unused React component with MaterializeCSS dependencies

**Result:**
- Unified TailwindCSS layout system across entire application
- Complete removal of MaterializeCSS dependencies
- Preserved all functionality through Alpine.js implementations
- Clean codebase ready for production

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-27 19:39:15 -07:00
Andrew Brown
9c992a04ef collection tweaks 2025-07-08 23:47:08 -07:00
Andrew Brown
1414308e82 style collections and add editors picks 2025-07-08 23:17:22 -07:00
Andrew Brown
190da7f0cc Implement multi-step wizard and live preview for collection creation
Major UX improvements that significantly enhance the collection creation experience:

## Multi-Step Wizard Features:
- 4-step progressive workflow: Basics → Visual → Content → Settings
- Interactive step navigation with progress indicator
- Visual step completion states (active, completed, disabled)
- Form validation before allowing step progression
- Keyboard navigation support (Ctrl+Arrow keys)
- Auto-save functionality with visual feedback

## Live Preview Panel:
- Real-time preview updates as users type and make selections
- Split-screen layout with form on left, preview on right
- Desktop/mobile preview toggle functionality
- Dynamic content type visualization
- Privacy and submission status preview
- Theme preview with color scheme changes

## Enhanced Form Experience:
- Progressive disclosure of form sections
- Smart content type selection (All/None/Common shortcuts)
- Theme selection with visual previews
- Character counter with color-coded warnings
- Better error handling and validation feedback
- "Save Draft" functionality for work-in-progress

## Technical Implementation:
- Comprehensive JavaScript controller for wizard logic
- Stimulus-compatible data attributes for future enhancement
- Responsive design that works on mobile and desktop
- Accessibility improvements with proper ARIA labels
- Performance optimizations with debounced auto-save

## User Experience Benefits:
- Reduces cognitive load by breaking complex form into steps
- Provides immediate visual feedback on choices
- Prevents data loss with auto-save
- Makes collection creation feel guided and intuitive
- Significantly improves completion rates through better UX flow

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-08 10:18:17 -07:00
Andrew Brown
df56671ed3 new template editor 2025-07-02 22:35:56 -07:00
Andrew Brown
aa4d97f6a6 data vault migration to tailwindcss 2025-06-17 11:34:50 -05:00
Andrew Brown
4c07948486 start on account settings redesign 2025-06-15 00:36:38 -05:00
Andrew Brown
65222704ea rig up autosave on serendipitous questions 2025-06-03 00:50:38 -07:00
Andrew Brown
15b50b5276 Merge master into tailwind-redesign - resolved conflicts by keeping Tailwind designs and layouts 2025-06-02 23:05:00 -07:00
Andrew Brown
8a844ab802 remove medium-editor-rails and switch to CDN on editor pages 2024-06-22 15:08:12 -07:00
Andrew Brown
7b927fa15b get the little x removal working on linked pages too 2023-05-22 16:44:21 -07:00
Andrew Brown
508480ae3e add a colored icon to each selected link chip 2023-05-22 16:39:49 -07:00
Andrew Brown
6577cd131d omfg linking actually starting to work again 2023-05-22 16:34:46 -07:00
Andrew Brown
4913f71874 finalize link field styling 2023-05-22 15:49:29 -07:00
Andrew Brown
433c807d24 color-code fields based on autosave status 2023-05-19 21:26:49 -07:00
Andrew Brown
9da0ed3677 fix csrf encoding issue 2023-05-18 18:25:20 -07:00
Andrew Brown
8c7b749ee5 new content page toggle page 2023-04-21 12:10:32 -07:00
Andrew Brown
065a2d0d29 get content category jumping working 2023-04-07 17:47:08 -07:00
Andrew Brown
4ff76b023d Merge branch 'master' into tailwind-redesign (merge conflicts <3) 2023-04-07 16:42:14 -07:00
Andrew Brown
48dd2ce67f use json format for autosave 2023-03-21 12:05:36 -07:00
Andrew Brown
631888c149 ajax autosaves so we can better detect success/error 2023-03-19 13:28:11 -07:00
Andrew Brown
6ee43522d6 secretly add basil but don't tell anyone <3 2023-02-25 13:44:15 -08:00
Andrew Brown
1a082c2dcb new link fields finally work 2023-02-19 12:29:05 -08:00
Andrew Brown
43a19a37e1 basic multiselect dropdown in alpine 2023-02-17 18:54:10 -08:00
Andrew Brown
6ad05817d1 Merge branch 'master' into tailwind-redesign (bad merge oof) 2023-02-14 13:31:13 -08:00
Andrew Brown
7aa1bda4f0 fix double link issue with sprockets 2023-02-13 22:42:35 -08:00
drusepth
cdad1ff3e6 new tags field type 2023-02-01 17:06:15 -08:00
drusepth
bcbd688a8b get edit/read mode toggling working with content refreshing 2023-01-31 12:34:47 -08:00
drusepth
b1b969f840 autosize RTI textareas 2023-01-30 18:37:21 -08:00
drusepth
bec2b4d52e work around browser triggering onblur with remote form submissions (oof) 2023-01-30 18:36:58 -08:00
drusepth
d7adaeddc4 hook up new autosave on content#edit fields 2023-01-16 15:24:09 -08:00
drusepth
862ccbeda6 Merge branch 'master' into tailwind-redesign 2022-06-01 12:24:15 -07:00
drusepth
dc2b0bc831 get content link chips working for notebook pages 2022-05-24 13:21:14 -07:00
drusepth
32945d715d nasty git merge 2022-05-23 13:49:36 -07:00
drusepth
d293930f58 move thredded topic edit form a bit further down to account for long titles pushing notifs button 64px lower 2022-05-23 13:23:42 -07:00
drusepth
2919518101 fill copied timeline event template with new event ids 2022-05-23 11:40:26 -07:00
drusepth
3dfeb5dc15 add stimulusjs 2022-04-15 14:03:23 -07:00
drusepth
95cbad8ed8 start on tw styleguide 2022-03-23 23:12:31 -07:00
drusepth
94bfb0f9b0 appease Uglifier for asset compilation 2021-10-04 23:36:04 -07:00
drusepth
3475a3b533 add page tag controller with remove method 2021-10-04 22:47:22 -07:00
drusepth
6092fcc26c add caching to js name lookups 2021-10-04 22:31:14 -07:00