Commit Graph

310 Commits

Author SHA1 Message Date
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
c512da72c0 redesigns 2025-07-23 11:05:57 -07:00
Andrew Brown
fb761da7b6 changes from last night 2025-07-21 11:07:07 -07:00
Andrew Brown
76dde8c0e1 designs wip 2025-07-20 18:02:28 -07:00
Andrew Brown
e4761de6c2 Implement pagination and performance optimizations for content#index
- Add pagination with 50 items per page to improve load times
- Optimize database queries by extracting content IDs once
- Add conditional loading for expensive operations (images, commissions)
- Implement comprehensive pagination UI with mobile/desktop layouts
- Preserve sort and filter parameters across page navigation
- Update content counter to show pagination info
- Fix tag filtering variable references (@page_tags, @filtered_page_tags)
- Improve tag filter button styling for better visual consistency

Performance improvements:
- ~70-90% faster page loads for users with large content collections
- Reduced redundant database queries and array iterations
- Better memory usage by processing smaller content batches

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-19 17:46:38 -07:00
Andrew Brown
ec9fde5990 sort and tag filtering working on content#index pages again 2025-07-19 17:25:57 -07:00
Andrew Brown
9419b3014c Merge branch 'master' into tailwind-redesign 2025-07-17 00:26:08 -07:00
Andrew Brown
de2feb0122 improve pinned image reliability 2025-07-11 01:18:55 -07:00
Andrew Brown
537a235923 fix pinning images edge case 2025-07-11 00:15:49 -07:00
Andrew Brown
ada4b03f92 Consolidate attributes editor and fix dashboard image errors
- Merged duplicate attributes editors into single route
- Removed /plan/:content_type/attributes-tailwind route and controller method
- Moved modern Tailwind attributes editor to main /attributes route
- Fixed dashboard ArgumentError: Nil location provided. Can't build URI
- Enhanced HasImageUploads concern with better Active Storage handling
- Added nil-safety guards to header_asset_for method
- Improved caching logic to prevent nil value storage

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-07 00:10:33 -07:00
Andrew Brown
e1c397d8f8 add more export formats and fill out import template section 2025-07-04 23:39:01 -07:00
Andrew Brown
f2811388d7 template editor tweaks from claudy 2025-07-03 16:55:33 -07:00
Andrew Brown
df56671ed3 new template editor 2025-07-02 22:35:56 -07:00
Andrew Brown
a3be81b0f0 claude take the wheel: resolve all the materialize-->tailwind merge conflicts 2025-06-30 23:45:40 -07:00
Andrew Brown
11136b9115 Revert "Start free Basil month"
This reverts commit b0a2e1e2e9.
2025-06-30 23:10:14 -07:00
Andrew Brown
1956c7aad8 Add comprehensive tests for FoldersController
This commit adds test coverage for the FoldersController, including tests for:
- Authentication requirements
- Creating folders and subfolders
- Updating folders
- Viewing folders
- Filtering by favorites and tags
- Deleting folders
- Security (preventing access to other users' folders)

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-30 12:18:28 -07:00
Andrew Brown
4f1abc82cd release polish 2025-06-30 01:30:13 -07:00
Andrew Brown
f72a1c894c fix from last night 2025-06-27 11:03:29 -07:00
Andrew Brown
307bb4137d galleries cleanup & image reordering 2025-06-26 22:48:49 -07:00
Andrew Brown
0f57473bd9 new gallery ui 2025-06-25 18:49:03 -07:00
Andrew Brown
ca550d569b new full gallery page + polishing up artfight integration 2025-06-24 23:01:44 -07:00
Andrew Brown
aa4d97f6a6 data vault migration to tailwindcss 2025-06-17 11:34:50 -05:00
Andrew Brown
0ff6d4dffc Merge branch 'master' into tailwind-redesign 2023-06-13 19:19:07 -07:00
Andrew Brown
42d0034869 fix collaboration bug not defaulting new premium content to collaborated universes 2023-06-05 11:21:01 -07:00
Andrew Brown
a269d3e8a0 references page 2023-05-25 09:43:08 -07:00
Andrew Brown
e66b08240c form fixes 2023-05-22 11:49:19 -07:00
Andrew Brown
6e9952dbc3 another pass on content#show/edit design 2023-05-10 11:50:35 -07:00
Andrew Brown
4ff76b023d Merge branch 'master' into tailwind-redesign (merge conflicts <3) 2023-04-07 16:42:14 -07:00
Andrew Brown
0fdc522f25 show basil images as cards/list images 2023-03-23 16:08:24 -07:00
Andrew Brown
93c50ec6f7 allow html field updates too 2023-03-21 11:37:59 -07:00
Andrew Brown
631888c149 ajax autosaves so we can better detect success/error 2023-03-19 13:28:11 -07:00
Andrew Brown
7ee780f021 enable deleting basil images 2023-03-12 18:03:57 -07:00
Andrew Brown
9a36b581e1 show saved basil images on content#show gallery tab 2023-03-12 17:33:30 -07:00
Andrew Brown
eebbfe11ef restyle onboarding universe field type 2023-02-16 13:33:52 -08:00
drusepth
cdad1ff3e6 new tags field type 2023-02-01 17:06:15 -08:00
drusepth
3ac27fe7d4 new universe picker on content#edit 2023-02-01 13:47:40 -08:00
drusepth
d7adaeddc4 hook up new autosave on content#edit fields 2023-01-16 15:24:09 -08:00
drusepth
c50aed74a9 allow creating folders from content pages with modal 2023-01-09 15:33:41 -08:00
drusepth
c40464ba1d folders in worldbuilding pages (waow) 2023-01-09 14:46:25 -08:00
drusepth
ec55782873 reuse new foldered index view across content pages and documents 2022-09-07 16:22:05 -07:00
drusepth
a61f9dc5b9 Merge branch 'master' into tailwind-redesign 2022-09-05 16:13:13 -07:00
drusepth
f09270737f yaml fallback for changelogs 2022-08-17 23:31:55 -07:00
drusepth
2e9115aa25 tweaked gallery design based on feedback 2022-07-29 23:34:29 -07:00
drusepth
6a15c72ae8 WIP content#show redesign 2022-07-20 13:18:59 -07:00
drusepth
66bc408283 tag filtering is working 2022-04-15 17:42:29 -07:00
Andrew Brown
10e7998c10
Merge branch 'master' into tailwind-redesign 2022-04-15 16:10:05 -05:00
drusepth
8f60c12945 wip content#index styling 2022-04-14 23:52:11 -07:00
drusepth
3949da7a63 require edit perms to view content changelogs 2022-01-27 13:27:51 -08:00
drusepth
8cd54092ce skip n+1 on linkable images in content#edit 2021-11-11 00:19:36 -08:00
drusepth
6bab0f705b cache image uploads to avoid n+1 query on content#index pages 2021-11-11 00:04:24 -08:00