Commit Graph

28 Commits

Author SHA1 Message Date
Dylan Knutson
7f7728366b Sep 2025 posted_at fixes 2025-09-07 18:27:22 +00:00
Dylan Knutson
58b8321333 Add FA favorites backfill task with date tracking
- Add BackfillFavsAndDatesTask for systematic favorites/dates processing
- Enhance FavsJob with FavsAndDatesStats for date tracking
- Add supporting utilities and parser improvements

This enables robust collection and backfill of user favorites with associated dates.
2025-07-10 17:07:14 +00:00
Dylan Knutson
d14dc6d3c1 Domain::FaFavIdAndDate for tracking when fa favs are made 2025-07-10 01:17:30 +00:00
Dylan Knutson
c5b4374def detect tz based on logged in user 2025-07-09 23:45:45 +00:00
Dylan Knutson
9a4b1b891d compute timezone offset for submission posted at times 2025-07-09 22:35:24 +00:00
Dylan Knutson
7f57d4363f compute timezone offset from difference between requested_at and server local time 2025-07-09 21:57:00 +00:00
Dylan Knutson
94533b6e45 FA submission pages no longer have gender field 2025-06-18 15:53:53 +00:00
Dylan Knutson
7453db4ba5 tweaks for march 2025 user page updates 2025-03-04 17:30:27 +00:00
Dylan Knutson
a98d9c49ee user page job improvement for skipping gallery scans 2025-03-02 19:28:47 +00:00
Dylan Knutson
9256d78bf5 improve cache busting based on policy 2025-03-02 07:45:07 +00:00
Dylan Knutson
3285e56c10 more typing 2025-02-15 06:17:25 +00:00
Dylan Knutson
cf5c4d28b6 parse submission date in etc, conver to to utc 2025-02-03 23:48:40 +00:00
Dylan Knutson
4d3a8e9fc6 Enhance PostsHelper and View Logic for Improved Post Metadata Display
- Updated `PostsHelper` to enforce strict typing and added new methods for guessing HTTP log entries related to scanned posts and file downloads.
- Refactored the `post_state_string` method to handle unknown states more gracefully.
- Modified the view template to replace the old scanned and file description logic with links to log entries, providing clearer metadata about post actions.
- Removed deprecated tests related to the old description methods and added new tests for the updated functionality.

These changes improve the clarity and usability of post metadata in the application.
2025-01-20 18:00:08 +00:00
Dylan Knutson
3a14c6946f Add RSpec-Sorbet integration and enhance type safety across the codebase
- Added `rspec-sorbet` gem to the Gemfile for improved type checking in tests.
- Updated various Ruby files to enforce strict typing with Sorbet, enhancing type safety.
- Refactored job classes and models to include type signatures, ensuring better type checking and documentation.
- Modified tests to utilize RSpec-Sorbet features, improving clarity and maintainability.

These changes aim to enhance the overall stability and maintainability of the codebase.
2025-01-01 21:10:54 +00:00
Dylan Knutson
f079fc0f98 add typed where possible 2025-01-01 03:29:53 +00:00
Dylan Knutson
93259d2676 Refactor Inkbunny job handling and enhance avatar management
- Removed the direct assignment of user avatar URL in JobHelper, delegating it to the post update logic.
- Updated UpdatePostsJob to enqueue UserAvatarJob when the avatar URL changes, improving avatar management.
- Refactored tests to utilize new methods for checking enqueued job arguments, enhancing clarity and maintainability.
- Improved user avatar handling in UserAvatarJob, ensuring proper state management and logging.
- Added new utility methods in SpecUtil for better job argument retrieval in tests.
2024-12-31 05:54:21 +00:00
Dylan Knutson
ca914dbe25 Update .gitignore, Gemfile, and various job classes for improved functionality
- Added '*.notes.md' and '*.export' to .gitignore to prevent unnecessary files from being tracked.
- Refactored job classes in the Domain::Fa module to enhance logging and job enqueuing processes, including:
  - Improved logging messages in Domain::Fa::Job::Base for better clarity.
  - Added support for a new 'enqueue_favs_scan' option in user job processing.
  - Enhanced the FavsJob to utilize active fav post joins and added a 'removed' flag for better management of favorites.
- Updated user and post models to include scopes for active favorites and improved error handling in user creation.
- Enhanced the page parser to support new formats for favorites pages and added tests for these changes.
2024-12-29 01:26:39 +00:00
Dylan Knutson
276a4adc0c format 2024-12-17 23:09:06 +00:00
Dylan Knutson
fb8db13ba5 allow empty favs list 2023-08-25 17:05:16 -07:00
Dylan Knutson
cdde756529 username parsing for fa+ users 2023-08-25 16:57:36 -07:00
Dylan Knutson
b3784b24d4 add incremental user page (fa) job 2023-08-25 13:56:37 -07:00
Dylan Knutson
52dd497d4c more flexible page parsing, guess avatar uri 2023-08-21 07:54:12 -07:00
Dylan Knutson
1a7b6c7c3c Home page job while browse page is protected 2023-07-07 11:08:08 -07:00
Dylan Knutson
7cee795ea2 allow spaces in account names 2023-05-17 10:04:45 -07:00
Dylan Knutson
c4d386457c more parsing fixes 2023-05-16 23:11:45 -07:00
Dylan Knutson
8935cb4f5f fix parsing admin pages 2023-05-16 19:08:14 -07:00
Dylan Knutson
b33028eb6e scaffold out recommendation user script 2023-04-01 21:12:42 +09:00
Dylan Knutson
2fe46ae778 port over some files from test to spec 2023-04-01 14:42:52 +09:00