Commit Graph

89 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
9419b3014c Merge branch 'master' into tailwind-redesign 2025-07-17 00:26:08 -07:00
Andrew Brown
d69f8f80c7 more stripe safety 2025-07-11 00:37:50 -07:00
Andrew Brown
ac96a001a8 Fix Stripe subscription errors by migrating deprecated sources API to payment_methods API
- Migrate from deprecated sources API to modern payment_methods API in SubscriptionsController
- Update subscription plan modifications to use Subscription.modify instead of direct assignment
- Fix payment method creation/deletion to use PaymentMethod.create/detach instead of sources
- Update view templates to use new payment_methods data structure
- Migrate price.id usage from deprecated plan.id in data integrity tasks
- Add comprehensive test suite with proper Stripe API stubs
- Add missing test gems: rspec-rails, webmock, factory_bot_rails, shoulda-matchers

This resolves Error 500 when users try to upgrade to Premium subscriptions.
The original error was: NoMethodError - undefined method 'total_count' for nil:NilClass
caused by stripe_customer.sources.total_count when sources API returned nil.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-10 23:40:36 -07:00
Andrew Brown
11d6f033ea Fix polymorphic association loading error in user profiles
- Replace problematic joins on polymorphic content_page association
- Filter content page shares in Ruby instead of SQL to avoid polymorphic join issues
- Update activity streak calculation to work with filtered array instead of ActiveRecord relation
- Maintain privacy filtering by checking content_page.privacy in Ruby

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-08 01:01:35 -07:00
Andrew Brown
e87e818915 Implement privacy filtering and remove edit activities from user profiles
- Filter all content to show only public items on profile pages
- Remove "made an edit" activities from activity feeds and timeline
- Update activity streak calculation to use only content shares
- Clean up UI references to edit activities in overview and activity tabs
- Fix polymorphic association loading issue in content page shares
- Ensure tag filtering only shows public content across all content types

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-08 00:56:24 -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
4f1abc82cd release polish 2025-06-30 01:30:13 -07:00
Andrew Brown
83197ced56 add new tags page to profiles 2025-06-23 21:51:26 -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
5ae70beaeb some anti-spam measures 2024-03-27 14:15:53 -07:00
Andrew Brown
4ff76b023d Merge branch 'master' into tailwind-redesign (merge conflicts <3) 2023-04-07 16:42:14 -07:00
Andrew Brown
1053d49a11 add basil images to user#content indexes 2023-03-31 23:31:27 -07:00
drusepth
862ccbeda6 Merge branch 'master' into tailwind-redesign 2022-06-01 12:24:15 -07:00
drusepth
19edda8c2d quick redesign of user content-by-type page 2022-05-24 18:16:37 -07:00
drusepth
f99c980b2b start on new user profile designs 2022-03-23 02:49:48 -07:00
Andrew Brown
6021e60a60 remove mixpanel 2021-07-18 00:50:12 -07:00
Andrew Brown
f389169396 fix doublereturn 500 2021-01-25 13:23:42 -08:00
Andrew Brown
7afc34ff46 Refactoring 2020-11-12 16:44:10 -08:00
Andrew Brown
28f458cf17 extra includes on profiles 2020-10-19 17:09:35 -07:00
Andrew Brown
6738a43a86 faster destroy to prevent timeouts 2020-08-09 04:21:18 -07:00
Andrew Brown
53e71bfab9 wip new sidebar components 2020-08-09 04:11:06 -07:00
Andrew Brown
7b81bbbd80 user profile following/followers page 2020-06-28 21:59:13 -05:00
Andrew Brown
27b0a5a4b6 wip profile redesign 2020-06-18 04:16:11 -05:00
Andrew Brown
fa8c303dd3 more user preferences / dark mode work 2020-06-03 17:08:18 -05:00
Andrew Brown
f6fa089030 Merge branch 'master' into collaboration-expansion 2020-04-23 16:43:53 -05:00
Andrew Brown
2d5cdddfe9 allow dismissing associations banner 2020-03-28 20:21:19 -05:00
Andrew Brown
3e8afbbc28 sidenav expansion 2020-03-28 19:33:16 -05:00
Andrew Brown
fddc33a917 fix 500 2020-01-31 00:19:29 -06:00
Andrew Brown
0b70dbac16 PR polish 2020-01-30 23:35:48 -06:00
Andrew Brown
c5ecf6da14 add initial framework for favorite page type themeing profile pages 2020-01-25 13:29:35 -06:00
Andrew Brown
adfa20f606 delete avatars before changing to a new one 2019-12-14 18:56:00 -06:00
Andrew Brown
545061ce85 allow users to customize their premium badge in settings 2019-08-13 17:25:44 -05:00
Andrew Brown
1934d8e526 fix 500 on viewing nonexistent documents 2019-06-12 12:16:00 -05:00
Andrew Brown
6989b041a9 fix 500 on user delete 2019-06-01 00:13:04 -05:00
Andrew Brown
f37a54046e fix account deletion 2019-05-13 17:17:32 -05:00
Andrew Brown
2df32cf73a clear email before deleting users 2019-05-10 16:55:29 -05:00
Andrew Brown
b2ac9ca21f better stream query + better privacy indicator in stream 2019-05-10 15:52:27 -05:00
Andrew Brown
82f72a4099 profile redesign wip 2019-05-03 20:02:41 -05:00
Andrew Brown
cd0dc21e5d allow accessing profile by /@andrew 2019-01-15 18:20:01 -06:00
Andrew Brown
6a20524882 general polishes 2018-12-18 18:24:14 -06:00
Andrew Brown
0d94097c7b same 2018-12-04 13:20:53 -06:00
Andrew Brown
97bf9c16cb don't throw 500s when trying to find() nonexistent pages 2018-12-02 16:32:19 -06:00
Andrew Brown
cc95a7e9cd another profile fix 2018-10-22 02:15:31 -05:00
Andrew Brown
239b12b2eb fix old-style profiles 2018-10-22 02:07:30 -05:00
Andrew Brown
8f76f587e7 delete users asynchronously 2018-10-22 01:30:52 -05:00
Andrew Brown
2afbb9b340 group profile contents by attribute->entity 2018-10-22 01:30:12 -05:00
Andrew Brown
833199dfc6 minor fixes 2018-09-16 21:17:44 -05:00
Andrew Brown
8f01115015 fix profile page streams 2018-09-08 22:32:44 -05:00
Andrew Brown
ee06aa29d2 subscriptions refactor 2018-03-03 16:49:08 -06:00