164 Коммитов

Автор SHA1 Сообщение Дата
Gleb Tv
13e2e83f18 chore: Update RuboCop TargetRubyVersion to 3.2
Align RuboCop TargetRubyVersion with gemspec's required_ruby_version.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 17:48:00 +03:00
Gleb Tv
c4a0fd2d17 docs: Update guides for Quill Editor and ActiveAdmin 4.0.0.beta20
- Replace Tom Select references with Quill Editor
- Update all version references to beta20
- Remove irrelevant guides (Tom Select migration, CKEditor upload system)
- Add Quill Editor specific imports and configurations
- Update package.json dependencies to use Quill instead of Tom Select

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 17:45:37 +03:00
Gleb Tv
1a6a7c6878 fix: Allow ActiveAdmin 4.x beta versions in gemspec dependency
Update activeadmin dependency from '>= 4.0' to '>= 4.0.0.beta'
to allow pre-release beta versions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 17:43:28 +03:00
Gleb Tv
39380e7276 chore: Upgrade to ActiveAdmin 4.0.0.beta20 and simplify test matrix
- Update ActiveAdmin from beta16 to beta20
- Drop support for Rails 6.1, 7.0, 7.1 and ActiveAdmin 2.x/3.x
- Minimum requirements now: Rails 7.2+, Ruby 3.2+, ActiveAdmin 4.x
- Reduce CI jobs from 22+ to 6 (2 gemfiles × 3 Ruby versions)
- Clean up obsolete documentation files

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 17:41:29 +03:00
Gleb Tv
0a12969370 refactor: Remove jQuery dependency and consolidate JavaScript assets
- Rename vendor JS file to activeadmin/quill_editor.js to avoid conflicts
- Update import alias to use 'activeadmin/quill_editor' for consistency
- Remove jQuery-dependent legacy file (quill_editor_input.js)
- Simplify engine asset configuration - only one JS file now
- Update documentation with correct paths and import names
- All functionality preserved with vanilla JavaScript

BREAKING CHANGE: Drops support for jQuery-based initialization.
Applications using the legacy jQuery initialization will need to
update to the new module-based approach.

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-24 14:42:54 +03:00
Gleb Tv
10ea2928a4 docs: Add complete esbuild.config.js with critical alias configuration
- Include the full esbuild.config.js from dummy app
- Emphasize the critical 'alias' configuration for resolving gem's JS
- Show how to get gem path dynamically using 'bundle show'
- Add proper error handling and watch mode setup

The alias configuration is CRITICAL for properly importing the gem's
JavaScript file from vendor/assets/javascripts/

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-24 14:21:06 +03:00
Gleb Tv
22e8fb58da rm unneded doc file 2025-09-24 14:13:42 +03:00
Gleb Tv
e5035f96b5 docs: Clarify JS import usage and add complete example files
- Explicitly warn users NOT to copy the gem's JavaScript file
- Clarify that activeadmin_quill_editor.js should be imported from the gem
- Add complete working examples from dummy app:
  - Full app/javascript/active_admin.js with proper imports
  - Complete tailwind.config.js with all safelist classes
  - lib/tasks/active_admin.rake for Tailwind builds
- Remove incorrect symlink from dummy app

This prevents users from mistakenly copying the gem's JS file into their
app instead of properly importing it from vendor/assets/javascripts/

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-24 14:12:51 +03:00
Gleb Tv
c7a2fec052 fix: Exclude Ruby 3.0 + Rails 7.2 combination from CI matrix
Rails 7.2 requires Ruby 3.1+ according to its gemspec, so the combination
of Ruby 3.0 with Rails 7.2 is invalid and causes bundler conflicts.

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-24 13:40:57 +03:00
Gleb Tv
74cbb7853d style: Fix remaining RuboCop offenses
- Use have_css instead of have_selector (Capybara/RSpec/HaveSelector)
- Fix argument alignment in multi-line method calls
- Break long line into multiple lines to respect 120 character limit
- Use single quotes for strings without interpolation

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-24 13:27:29 +03:00
Gleb Tv
cd97f2eeb8 fix: Fix test failures across different ActiveAdmin versions
- Update CSS loading test to check for Quill styling in a more robust way
- Handle nested resource test differently for AA2/3 vs AA4 due to has_many behavior differences
- Fix RuboCop Layout/ExtraSpacing offenses in Appraisals file
- Tests now pass for AA4 and gracefully skip incompatible tests in AA2/3

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-24 13:23:53 +03:00
Gleb Tv
9d11acb6ec fix: Add proper sqlite3 version constraints to appraisal gemfiles
- Rails 6.1, 7.0, 7.1 require sqlite3 ~> 1.4
- Rails 7.2+ and 8.0 can use latest sqlite3 version
- Regenerate gemfiles with correct dependencies
2025-09-24 13:05:26 +03:00
Gleb Tv
4c8d511bf6 fix: Add trailing newline to Appraisals file
Fixes RuboCop Layout/TrailingEmptyLines offense
2025-09-24 12:59:03 +03:00
Gleb Tv
96166aaf12 fix: Add appraisal gemfiles to repository
The gemfiles generated by appraisal need to be committed for CI to work.
Only ignoring the .gemfile.lock files which are generated at runtime.
2025-09-24 12:58:55 +03:00
Gleb Tv
c26aef65ab refactor: Modernize CI with Appraisal gem and consolidate workflows
- Add Appraisal gem for managing multiple test gemfiles
- Create test matrix for Rails 6.1-8.0 and ActiveAdmin 2.9-4.x
- Consolidate multiple workflow files into single ci.yml
- Use matrix strategy to test across Ruby 3.0-3.3
- Remove deprecated individual workflow files
- Add gemfiles/ to gitignore as they're generated
- Improve backward compatibility support
2025-09-24 12:58:47 +03:00
Gleb Tv
194518dea4 fix: Improve backward compatibility for Rails 6 and Ruby 3.0+
- Lower Rails requirement from 7.0 to 6.0 for ActiveAdmin 2.9 compatibility
- Lower Ruby requirement from 3.2 to 3.0 for broader compatibility
- Update CI workflows to test with Ruby 3.0, 3.1, 3.2 where appropriate
- Maintain Ruby 3.2+ for ActiveAdmin 4 and Rails 8 tests
2025-09-24 12:58:40 +03:00
Gleb Tv
395a099a3c ci: Update Ruby versions to match gemspec requirement
- Update minimum Ruby version from 3.0/3.1 to 3.2 in all workflows
- Remove obsolete exclude for Ruby 3.1 with Rails 8
- Ensure all CI jobs use Ruby >= 3.2 to match gemspec requirement
2025-09-24 12:58:34 +03:00
Gleb Tv
826a3dee1c fix: Handle version specifiers with operators in Gemfile
The eval_version function now properly handles versions that already
include operators like ~>, >=, etc. This fixes CI failures where
ACTIVEADMIN_VERSION was passed with '~> 3.0' format.
2025-09-24 12:58:27 +03:00
Gleb Tv
21d1395b77 chore: Update .gitignore to exclude node_modules but keep package-lock.json 2025-09-24 12:58:21 +03:00
Gleb Tv
d588651863 fix: Update tests and CI for ActiveAdmin 4 compatibility
- Fix active_admin_comments to use active_admin_comments_for in AA4
- Add author to CSS test to fix validation error
- Update has_many support for AA4 using .has-many-add button click
- Simplify GitHub Actions workflow for AA4 testing
- All tests now passing with ActiveAdmin 4.0.0.beta16

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-24 12:58:09 +03:00
Gleb Tv
7f3d842e3a feat: Add ActiveAdmin 4 and Propshaft support
- Switch to ActiveAdmin 4 beta with Tailwind CSS
- Replace Sprockets with Propshaft for Rails 8
- Migrate from jQuery to vanilla JavaScript
- Implement proper module initialization without setTimeout hacks
- Add esbuild for JavaScript bundling with clean import aliases
- Configure Tailwind CSS build process with ActiveAdmin plugin
- Update engine configuration for both Propshaft and Sprockets
- Add comprehensive documentation for AA4 gem updates
- Maintain backward compatibility with legacy AA versions

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-24 12:58:00 +03:00
Mattia Roccoberton
f291f7e7e6 Merge pull request #62 from blocknotes/chore/bump-to-2.0.0
Bump version to 2.0.0
v2.0.0
2025-04-16 22:02:34 +02:00
Mattia Roccoberton
df944277b5 chore: Bump version to 2.0.0 2025-04-16 12:55:31 +02:00
Mattia Roccoberton
3cc5683d44 Merge pull request #63 from blocknotes/chore/internal-improvements
Update Quill imageUploader plugin
2025-04-16 12:52:49 +02:00
Mattia Roccoberton
498cbbd0c9 build: Update Quill imageUploader 2025-04-16 09:03:32 +02:00
Mattia Roccoberton
bfc2e997f1 chore: Minor changes to dummy app migrations 2025-04-16 09:03:24 +02:00
Mattia Roccoberton
9bda446762 chore: internal improvements to quill editor input js 2025-04-16 08:52:13 +02:00
Mattia Roccoberton
533471c0d6 Merge pull request #61 from blocknotes/build/update-quill-to-2.0.3
Update Quill to version 2.0.3
2025-04-15 08:12:47 +02:00
Mattia Roccoberton
3617aab7f2 test: Improve some tests 2025-04-14 13:44:35 +02:00
Mattia Roccoberton
5196a8811a build: Update quill.imageUploader plugin 2025-04-14 13:44:35 +02:00
Mattia Roccoberton
5e9a3b6c5a build: Update Quill to version 2.0.3 2025-04-13 18:14:10 +02:00
Mattia Roccoberton
181aab7fd6 Merge pull request #60 from blocknotes/test/improve-tests
Improve tests
2025-04-13 16:36:07 +02:00
Mattia Roccoberton
300b4a0a03 test: Improve tests 2025-04-13 16:35:14 +02:00
Mattia Roccoberton
451a225277 Merge pull request #59 from blocknotes/build/improve-dev-setup
Improve dev and test setup
2025-04-13 15:04:13 +02:00
Mattia Roccoberton
6cbb39daad test: Improve test suite setup 2025-04-13 15:00:22 +02:00
Mattia Roccoberton
d19fc7ddfc build: Improve dev setup 2025-04-13 14:54:13 +02:00
Mattia Roccoberton
74790fc115 Merge pull request #58 from blocknotes/test/update-build-setup
test: Update build setup
2025-04-05 09:32:24 +02:00
Mattia Roccoberton
c3b129a212 ci: Update GitHub workflows 2025-04-05 09:25:11 +02:00
Mattia Roccoberton
ab858f7c6f test: Remove Appraisal dependency 2025-04-05 09:25:11 +02:00
Mattia Roccoberton
6cf744b84c test: Update build setup 2025-04-05 09:25:11 +02:00
Mattia Roccoberton
0ae4ce2035 Merge pull request #57 from blocknotes/test/setup-coverage
Test: setup coverage
2025-03-22 09:14:34 +01:00
Mattia Roccoberton
dd9aa22cf5 test: Install Appraisal dependencies 2025-03-22 09:10:47 +01:00
Mattia Roccoberton
b6f3c0c3a6 test: Setup coverage 2025-03-22 09:08:36 +01:00
Mattia Roccoberton
7d3a084977 Merge pull request #56 from blocknotes/v1.3.0
chore: Bump to version 1.3.0
v1.3.0
2025-03-18 22:25:05 +01:00
Mattia Roccoberton
1569b1ff18 chore: Bump to version 1.3.0 2025-03-18 22:15:04 +01:00
Mattia Roccoberton
3459800dbf Merge pull request #55 from blocknotes/api/quill-editor-query-functions
API: Quill editor query functions
2025-03-18 08:49:00 +01:00
Mattia Roccoberton
af901f4f7d feat: API: expose quill editor query functions 2025-03-18 08:47:16 +01:00
Mattia Roccoberton
328ee0d9fa Merge pull request #54 from blocknotes/test/update-test-suite-2
test: Update test suite (2)
2025-03-17 09:08:23 +01:00
Mattia Roccoberton
751196ef8c test: Update dependencies 2025-03-17 09:06:04 +01:00
Mattia Roccoberton
589b782866 Merge pull request #53 from blocknotes/test/update-test-suite
test: Update test suite
2025-03-17 08:46:08 +01:00