Commit Graph

80 Commits

Author SHA1 Message Date
Dylan Knutson
b1de28d80f update ruby version 2025-07-21 22:33:12 +00:00
Dylan Knutson
fd61616c03 remove xdiff/diffy/rb-bsdiff 2025-07-21 21:19:28 +00:00
Dylan Knutson
e67eb94e44 add HasAuxTable 2025-07-18 06:23:40 +00:00
Dylan Knutson
6c086ac9cc first pass at stats.rake 2025-07-10 19:24:41 +00:00
Dylan Knutson
542e38b35a update sorbet 2025-07-10 17:21:18 +00:00
Dylan Knutson
e5c37e4c9d update tapioca 2025-07-10 17:18:06 +00:00
Dylan Knutson
0427ac43c7 bootsnap, spring, sofurry type fixes 2025-07-08 01:25:00 +00:00
Dylan Knutson
967f78366e sofurry WIP for now, sofurry is down 2025-07-08 00:11:24 +00:00
Dylan Knutson
9d2bde629a detect encoding for plain text files 2025-06-19 16:07:26 +00:00
Dylan Knutson
55f806c5b4 factor out resizing logic 2025-03-09 22:40:37 +00:00
Dylan Knutson
f845d06267 simplify post file thumbnails 2025-03-04 01:58:23 +00:00
Dylan Knutson
4ec27ab968 tests for ip address role policy 2025-03-03 16:44:21 +00:00
Dylan Knutson
585cd1b293 add dtext parsing 2025-03-01 03:47:20 +00:00
Dylan Knutson
cd60166d16 bbcode, doc parsing, render msword documents 2025-02-22 07:49:21 +00:00
Dylan Knutson
9a779c1add lots of tweaks, thruster proxy 2025-02-20 22:07:45 +00:00
Dylan Knutson
44209ac89b make sorbet structs comparable 2025-02-17 19:35:45 +00:00
Dylan Knutson
fc0fbfc46e partial migration to tagged logs 2025-02-14 08:13:21 +00:00
Dylan Knutson
a09ddfa32b kaminari types, move views around 2025-02-13 07:35:08 +00:00
Dylan Knutson
7578b85e4b e621 fav jobs 2025-01-28 23:28:35 +00:00
Dylan Knutson
304b9bd5d0 Add HTTP gem for request proxying and enhance application layout 2025-01-04 20:39:37 +00:00
Dylan Knutson
72191c1d93 Add Prometheus monitoring integration and enhance application metrics 2025-01-04 05:59:26 +00:00
Dylan Knutson
2a934490ba Update project configuration and enhance OpenTelemetry integration
- Modified `.gitignore` to include and manage `.devcontainer/signoz/data/*` while preserving `.keep` files.
- Updated `.prettierrc` to include the `@prettier/plugin-xml` plugin and configured XML formatting options.
- Added OpenTelemetry SDK and exporter gems to the `Gemfile` for enhanced monitoring capabilities.
- Removed `package-lock.json` as part of the transition to Yarn for dependency management.
- Enhanced `.devcontainer` configuration with new services for SigNoz, including ClickHouse and related configurations.
- Introduced new ClickHouse configuration files for user and cluster settings.
- Updated Nginx and OpenTelemetry collector configurations to support new logging and monitoring features.
- Improved user experience in the `UserSearchBar` component by updating the placeholder text.

These changes aim to improve project maintainability, monitoring capabilities, and user experience.
2025-01-04 00:55:19 +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
20aa7871ea init sorbet 2025-01-01 01:14:26 +00:00
Dylan Knutson
9e8f2651db Refactor FA cookie management and enhance testing
- Updated the FA cookie management in the Scraper::FaHttpClientConfig class to validate cookie formats and handle cookies more robustly.
- Removed the fa.yml configuration file and integrated cookie retrieval directly within the class.
- Added comprehensive tests for cookie handling in the new fa_http_client_config_spec.rb file.
- Updated the Gemfile to include parallel_tests in the test and development group.
- Modified the .rspec file to enable color output for better readability in test results.
- Simplified test commands in the justfile for improved usability.
- Adjusted the rails_helper.rb to ensure the test environment is correctly set up.
2024-12-30 02:00:30 +00:00
Dylan Knutson
3cfa166b4a Enhance Gemfile, update styles, and improve log entry handling
- Added `db-query-matchers` gem for improved query testing capabilities.
- Updated `sanitize` gem version to `~> 6.1` for better security and features.
- Refactored styles in `application.tailwind.css` for better responsiveness.
- Improved `LogEntriesController` to utilize `response_size` for more accurate data handling.
- Added a new `favorites` action in `Domain::Fa::PostsController` for better user experience.
- Enhanced `fa_post_description_sanitized` method in `Domain::Fa::PostsHelper` for improved HTML sanitization.
- Updated views for `Domain::Fa::Posts` to streamline layout and improve user interaction.
- Improved pagination controls for better navigation across post listings.
2024-12-29 20:30:10 +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
7e02771431 Add pundit-matchers gem and enhance indexed post handling
- Added `pundit-matchers` gem to improve policy testing capabilities.
- Updated `BlobsController` to support a new "tiny" size option for avatars.
- Enhanced `IndexablePostsHelper` with a `show_path` method for different postable types.
- Refactored `IndexedPost` model to include methods for retrieving artist information and external links.
- Modified `Domain::E621::Post` model to initialize `tags_array` as a hash.
- Updated views for indexed posts to support new display formats (gallery and table).
- Improved test coverage with new user factory and updated specs for controller and job behaviors.
2024-12-27 21:56:26 +00:00
Dylan Knutson
18b9bf531c initial commit for devise and user auth 2024-12-27 19:03:08 +00:00
Dylan Knutson
5c1807711b Add testing utilities and improve test coverage with FactoryBot integration
- Added `shoulda-matchers` for enhanced RSpec testing capabilities.
- Introduced `factory_bot_rails` for easier test data creation.
- Created factories for `HttpLogEntry`, `BlobEntry`, and `Domain::Fa::Post` models.
- Updated `rails_helper.rb` to include FactoryBot methods and configure Shoulda matchers.
- Enhanced `HttpLogEntry` model with a new `response_size` method.
- Refactored `justfile` to include parallel test execution.
- Improved `Gemfile` and `Gemfile.lock` with new testing gems.
2024-12-27 16:59:27 +00:00
Dylan Knutson
2381df7d10 indexed posts enums 2024-12-25 21:53:47 +00:00
Dylan Knutson
355da6932b indexed posts, more specs 2024-12-25 17:30:03 +00:00
Dylan Knutson
9391a2cfe1 better styling for fa posts, users, index pages 2024-12-23 16:47:14 +00:00
Dylan Knutson
9265b55876 refactor UserSearchBar, js formatting 2024-12-22 19:10:33 +00:00
Dylan Knutson
432c13be42 upgrade to rails 7.2, ui improvements 2024-12-21 19:47:56 +00:00
Dylan Knutson
dba9fc1d4e fix tailwind suggestions, staging live reload 2024-12-19 19:16:42 +00:00
Dylan Knutson
29f671b41f tailwind updates, inkbunny listing stuff 2024-12-19 06:04:37 +00:00
Dylan Knutson
0715fa86e7 update good_job 2024-12-17 19:00:33 +00:00
Dylan Knutson
9de3c1b5e8 remove proxy code 2024-12-17 17:57:17 +00:00
Dylan Knutson
aad2f29e96 before redoing devcontainer files 2024-12-17 06:34:47 -08:00
Dylan Knutson
752b8c3b2c dockerfile 2023-10-08 19:40:54 -07:00
Dylan Knutson
bab5ff1e34 use influxdb 1.8 2023-08-21 16:05:08 -07:00
Dylan Knutson
fcb19bcd02 use vips for resizing 2023-08-21 11:16:08 -07:00
Dylan Knutson
a4247ff8b0 more useful fa user pages, post pages 2023-08-20 19:42:24 -07:00
Dylan Knutson
7824deac2d update good_job 2023-08-18 18:18:48 -07:00
Dylan Knutson
bdfd057cc8 remove id pk from follows, use composite index 2023-05-23 10:36:21 -07:00
Dylan Knutson
63994d5a62 fa user and post controller cleanup 2023-05-21 18:55:16 -07:00
Dylan Knutson
026d78bc29 add pghero to rails app, dymk fork 2023-05-19 17:33:53 -07:00
Dylan Knutson
2f7fbf29fe tighter ip constraint 2023-04-08 18:22:54 -07:00
Dylan Knutson
4e62fd4291 add rake task for dumping fa user info 2023-04-07 09:27:09 -07:00