owen2345/camaleon-cms
38.5
Weak · 6 November 2026
18.3k
lines of production code
Ruby
with JavaScript
4
measurements over time
What this system is
Features
Add camaleon\_first default theme to dummy app
The dummy application now includes the 'camaleon\_first' theme, providing a complete default theme package for testing. This adds the theme's configuration, a main helper for theme settings and installation hooks, and the necessary frontend assets including CSS (Bootstrap, Font Awesome, Magnific Popup, custom styles) and JavaScript (jQuery, Modernizr, hover zoom, Magnific Popup). The theme features a home page layout with a hero section and a dynamic portfolio grid that displays recent posts based on configurable theme settings.
spec/dummy/app/apps/themes · high confidence
Added HTML email templates for user notifications
New HTML email templates have been added to the Camaleon CMS mailer views to handle specific user communication scenarios. Users will now receive styled emails for account confirmation, password resets, and general mailer content, utilizing localized strings for greetings and instructions while dynamically rendering URLs and subject lines.
_app/views/camaleon\_cms/html\mailer · high confidence
Added default theme styles based on WordPress Twenty Thirteen
The default theme's main stylesheet (style.css.scss) has been added, importing the styling rules from the WordPress Twenty Thirteen theme. This provides the visual design for the application's default theme, including typography, layout, and responsive behavior.
app/apps/themes/default/assets/css · high confidence
Added localization files for the TinyMCE editor
New translation files have been added for the TinyMCE rich text editor in the admin interface, supporting German (de), English (en\_GB), Spanish (es), French (fr\_FR), Italian (it), Dutch (nl), Portuguese (pt-BR), and Russian (ru). This allows users to see the editor's interface labels and messages in their preferred language.
_app/assets/javascripts/camaleon\cms/admin/tinymce · high confidence
Added placeholder assets for the gem plugin template
The gem plugin generator template now includes empty placeholder files (.keep) in the images, JavaScript, and stylesheets directories for the generated plugin. This ensures that the asset directories are created and tracked by version control when a new gem plugin is scaffolded, providing a standard structure for developers to add custom assets.
_lib/generators/camaleon\_cms/gem\_plugin\_template/app/assets/images/plugins/my\_plugin, lib/generators/camaleon\_cms/gem\_plugin\_template/app/assets/javascripts/plugins/my\_plugin, lib/generators/camaleon\_cms/gem\_plugin\_template/app/assets/stylesheets/plugins/my\plugin · high confidence
Added rake tasks for migration generation and RSpec testing
The Camaleon CMS engine now provides two new rake tasks to assist with setup and testing. The \camaleon\_cms:generate\_migrations\ task allows users to manually copy plugin migrations into their application's migration folder, controlled by the new \auto\_include\_migrations\ setting. Additionally, the \camaleon\_cms:rspec\ task enables running the engine's feature specs, either for all files or a specific test file, streamlining the testing workflow for developers integrating the CMS.
_lib/tasks/camaleon\cms · high confidence
Added sample initializer for custom model associations
A new initializer file, custom\_models.rb, has been added to the gem plugin template. It contains commented-out code demonstrating how to register a custom model association (has\_many :attack) within a CamaleonCms::Site class, serving as a reference for plugin developers.
_lib/generators/camaleon\_cms/gem\_plugin\template/config/initializers · high confidence
Adds custom error pages and a modular flash message partial
The CMS now includes dedicated view templates for 404 (page not found) and 500 (server error) responses, displaying localized messages and optional error details. Additionally, a new \\_flash\_messages.html.erb\ partial has been added to standardize the rendering of flash notices, allowing for consistent styling of info, success, error, and alert messages across the application.
_app/views/camaleon\cms · high confidence
Allow changing post author in the plugin
The Authoring Posts plugin now includes a UI control in the post creation and editing forms that lets users select the post author. This is implemented via a new helper module that renders a dropdown list of site users (excluding clients), defaulting to the current user for new posts, and disables the selector if the user lacks the necessary permissions to edit other users' posts.
_app/apps/plugins/authoring\post · high confidence
Default theme adds JSON API and RSS views for content pages
The default theme now includes JSON (Jbuilder) and RSS (RSS.builder) view templates for the homepage, individual posts, categories, post types, and post tags. This enables consuming site content via structured JSON responses and RSS feeds, supporting integration with external frontends or aggregators.
_app/views/camaleon\_cms/default\theme · high confidence
Gem plugin generator now includes default admin and frontend view templates
The gem plugin generator template now provides pre-built view files for new plugins, including an admin index page, an admin settings form with support for custom fields, and a basic frontend index page. This ensures that plugins generated via the console command have immediate, functional UI scaffolding in both the admin panel and the public frontend without requiring manual creation of these view files.
_lib/generators/camaleon\_cms/gem\_plugin\_template/app/views/plugins/my\plugin · high confidence
New admin dashboard and search interface with post type support
The admin interface now includes a dedicated dashboard view that displays notifications and dashboard items via hooks, and a comprehensive search page that allows filtering by content, categories, tags, and post types. The search results table now includes a column for post types and supports hierarchical content listing, enabling users to locate and manage specific content types more effectively within the admin panel.
_app/views/camaleon\cms/admin · high confidence
New admin interface for managing custom field groups
The admin settings area now includes a dedicated interface for creating and organizing custom field groups. Administrators can define groups of fields (such as text boxes, selects, or checkboxes) and assign them to specific content types, including posts, post types, categories, post tags, users, sites, themes, and navigation menus. The new UI supports grouping fields into repeatable sections, configuring field options like multiple values, required status, and translation, and reordering the groups via drag-and-drop.
_app/views/camaleon\_cms/admin/settings/custom\fields · high confidence
New admin interface for managing post tags
The admin area now includes a dedicated interface for managing post tags, featuring a list view that displays tag names, descriptions, slugs, and associated post counts, along with actions to view, edit, or delete tags. The new edit form allows administrators to modify tag details and supports custom fields defined for post tags, enabling extended metadata management within the CMS.
_app/views/camaleon\_cms/admin/post\tags · high confidence
New custom field types available in admin settings
The admin settings interface for custom fields now includes dedicated view templates for a wide range of data types, allowing administrators to add fields such as audio, video, images, files, dates, colors, checkboxes, radio buttons, and select lists to their content structures. New relational field types have also been added, enabling custom fields to link to categories, post types, posts, and users, thereby expanding the flexibility of content modeling within the CMS.
_app/views/camaleon\_cms/admin/settings/custom\fields/fields · high confidence
New development tooling and configuration files
The repository now includes configuration files for RuboCop (\.rubocop.yml\, \.rubocop\_todo.yml\), ESLint (\.eslintrc.js\), Bundler audit (\.bundler-audit.yml\), and RSpec (\.rspec\), along with a \.tool-versions\ file specifying Ruby 3.4.10 and Node.js 24.15.0. A \Dockerfile\ is added for containerized development, and \SECURITY.md\ provides contact details for vulnerability reporting. The \config.ru\ file has been removed, and \.gitignore\ is updated to exclude local audit reports and temporary review state.
(repo-wide) · high confidence
New file manager plugin for TinyMCE editor
A new TinyMCE plugin named 'filemanager' has been added to the admin interface. This introduces a new 'Insert file' button and menu item in the editor toolbar. When clicked, it opens a file uploader interface. Upon selecting a file, the system inserts an HTML anchor tag linking to the file, opening it in a new browser tab.
_app/assets/javascripts/camaleon\cms/admin/tinymce/plugins/filemanager · high confidence
New generators for gem plugins, themes, and installation scaffolding
The \lib/generators/camaleon\_cms\ directory now includes three new generators: \gem\_plugin\_generator\ creates a full gem-based plugin structure with pre-configured admin and frontend routes; \theme\_generator\ scaffolds a new theme directory with configuration and helper files; and \install\_generator\ sets up the initial CMS structure, including copying default themes, configuring Sprockets 4+ asset manifests, and updating the Gemfile. These changes provide developers with standardized tools to extend the CMS without manually creating directory structures.
_lib/generators/camaleon\cms · high confidence
New repair and security audit Rake tasks for data integrity and content safety
This release introduces a suite of new Rake tasks in the \camaleon\_cms\ namespace to repair existing data inconsistencies and audit stored content against new security gates. Operators can now re-home custom field groups with mismatched site tenancy (\rehome\_cross\_site\_field\_groups\), backfill missing permissions for custom fields and select\_eval in user roles, and fix orphaned comments by reassigning them to anonymous users. Media visibility flags are repaired by purging and rebuilding the cache (\repair\_media\_visibility\), and private S3 upload ACLs are corrected (\repair\_private\_upload\_acls\). Additionally, new read-only audit tasks (\scan\_content\, \scan\_uploads\) list stored posts, custom field values, templates, and media files that would be rejected by current security rules, allowing for manual review without automatic modification. A task is also provided to re-key user field groups stored under namespaced user model names (\demodulize\_user\_field\_groups\).
lib/tasks · high confidence
New theme management interface with preview and data import capabilities
Administrators now have a dedicated interface to manage CMS themes, featuring a card-based index page that displays theme thumbnails, descriptions, and action buttons for previewing, selecting, and configuring themes. The update introduces a modal preview mode for inspecting themes without activating them, and adds functionality to import sample data (data.json) for themes that support it, with appropriate feedback messages for success, warnings, or errors during the import process.
_app/views/camaleon\cms/admin/appearances/themes · high confidence
New validators for slug uniqueness and URL security
Added three new validators to the CMS: PostUniqValidator and UniqValidator enforce unique slugs for posts and taxonomy terms respectively, preventing duplicate content identifiers; UserUrlValidator introduces strict security checks for user-provided URLs, including SSRF mitigation via DNS resolution and local network blocking, path traversal prevention, and HTML sanitization, with an optional kill-switch environment variable for trusted environments.
app/validators · high confidence
Plugin generator template now includes secure admin settings controller
The gem plugin generator template now provides a pre-built AdminController that securely handles plugin configuration. It confines custom field submissions to only the slugs registered by the plugin, preventing unauthorized modification of other fields, and integrates standard option and meta saving logic for a consistent settings experience.
_lib/generators/camaleon\_cms/gem\_plugin\_template/app/controllers/plugins/my\plugin · high confidence
Rebuilt admin navigation menu editor with custom fields and external link support
The admin navigation menu editor has been rebuilt to provide a more robust interface for managing site menus. This update introduces support for custom fields on menu items, allowing administrators to attach additional configuration data. It also adds the ability to create and manage external links with configurable target attributes (e.g., open in new tab). The editor now supports hierarchical menu structures and includes a dedicated UI for adding custom menu items via hooks. These changes improve the flexibility and usability of the menu management experience in the Camaleon CMS admin panel.
_app/views/camaleon\_cms/admin/appearances/nav\menus · high confidence
Removals
Admin comments interface removed
The admin comments management views (form, index, and reply templates) have been deleted, removing the user-facing interface for editing, listing, and replying to comments within the admin panel.
app/views/admin/comments · high confidence
Ecommerce plugin removed
The entire Ecommerce plugin has been removed from the application. This deletion eliminates all associated administrative controls for managing orders, coupons, payment methods, shipping methods, tax rates, and pricing, as well as the front-end checkout flow, cart functionality, and payment processing logic (including PayPal and credit card validation). Users will no longer have access to any e-commerce features provided by this plugin.
_app/apps/plugins/contact\_form, app/apps/plugins/ecommerce, app/apps/plugins/front\editor · high confidence
Removal of FrontendConcern controller module
The \FrontendConcern\ module, which previously provided controller actions for generating sitemaps, handling robots.txt, and saving post comments, has been removed from the application. Users will no longer be able to interact with these specific frontend features through the controller layer that previously relied on this concern.
app/controllers/concerns · high confidence
Removal of admin layout partials and installer template
The admin interface no longer renders the previously defined partials for AJAX content, flash messages, form errors, and the sidebar, nor does it use the dedicated installer layout template. Users will no longer see the specific flash message styling, form error explanations, or sidebar profile navigation that were previously included via these deleted view components, and the installation screen will no longer use its dedicated layout structure.
app/views/layouts/admin · high confidence
Removal of admin post drafts controller
The \Admin::Posts::DraftsController\ has been removed from the application. This eliminates the backend API endpoints previously used to create, update, and manage draft posts within the admin interface, meaning users can no longer save or modify post drafts through this specific controller path.
app/controllers/admin/posts · high confidence
Removal of admin session views
The admin session views for login, registration, and password reset have been removed from the application. Users will no longer be able to access these specific interface components for authentication and account management through this location.
app/views/admin/sessions · high confidence
Removal of default theme layout templates
The default theme's layout structure has been removed, specifically deleting the header partial (\_header.html.erb), footer partial (\_footer.html.erb), and the main index layout (index.html.erb). This eliminates the previous Bootstrap-based navigation, user authentication dropdowns, and footer links from the application's default view.
_app/views/default\theme/layouts · high confidence
Removal of default theme view templates
The default theme's view layer has been removed, deleting the ERB templates for the homepage, category, post, post tag, post type, search, and sitemap pages, as well as the robots.txt template. This eliminates the standard rendering logic for these core site sections.
_app/views/default\theme · high confidence
Removal of legacy admin JavaScript libraries
The admin panel no longer includes several legacy client-side libraries, specifically the custom actions handler, the asset manifest, and bundled versions of Bootstrap components (colorpicker, datepicker, datetimepicker, select, and the core Bootstrap JS). This cleanup removes unused or outdated code from the admin interface, likely to reduce bundle size and simplify the dependency stack.
app/assets/javascripts/admin · high confidence
Removal of legacy admin and frontend controllers
The legacy controller files for the admin panel (including settings for custom fields, post types, and sites, plus the main admin controller) and the frontend application controller have been removed from the codebase. This cleanup eliminates the previous routing and request-handling logic for these areas, indicating a structural shift in how the application manages admin settings and public-facing content rendering.
app/controllers · high confidence
Removal of legacy admin category and taxonomy views
The admin interface views for managing categories and taxonomies have been removed. This includes the deletion of the form partials, edit pages, and index listing pages for both the \admin/categories\ and \admin/taxonomy\ sections. Users will no longer be able to access these specific legacy UI components for creating, editing, or listing categories and taxonomy terms through the admin panel.
app/views/admin/categories · high confidence
Removal of legacy admin controllers
The admin area no longer includes the standalone controllers for managing appearances, categories, comments, installation, media, plugins, post tags, posts, sessions, settings, user roles, and users. These files have been deleted from the application, indicating that the corresponding administrative functionality has been moved, refactored, or removed in this update.
app/controllers/admin, app/views/admin/settings · high confidence
Removal of legacy admin controllers for nav menus, themes, and widgets
The admin interface for managing appearances has been refactored by removing the legacy controllers for navigation menus, themes, and widgets. Specifically, the \nav\_menus\_controller\, \themes\_controller\, and the widget-related controllers (\widgets/assign\_controller\, \widgets/main\_controller\, \widgets/sidebar\_controller\) have been deleted. This change removes the backend endpoints previously used to create, edit, and delete navigation menus, switch themes, and manage widget assignments and sidebars, indicating a shift away from this legacy management structure.
app/controllers/admin/appearances · high confidence
Removal of legacy admin post views
The legacy admin post interface files (\_filter\_posts.html.erb, form.html.erb, index.html.erb, and show.html.erb) have been deleted from the application. This removes the previous server-rendered views for listing, creating, editing, and displaying post details in the admin panel, indicating a migration to a different rendering approach or interface for these functions.
app/views/admin/posts · high confidence
Removal of legacy admin views for post tags and site settings
The legacy ERB templates for the admin post tags management (index, edit, and form) and the admin site settings management (index and form) have been removed from the application. This change eliminates the previous UI components used for creating, editing, and listing post tags and site configurations, indicating these features are no longer supported via these specific view paths.
_app/views/admin/post\tags, app/views/admin/settings/sites · high confidence
Removal of legacy admin, application, and login layout templates
The legacy layout templates for the admin panel, main application, and login pages have been removed from the codebase. This deletion eliminates the previous HTML structure, including the sidebar navigation, breadcrumb trails, and specific asset inclusions (such as Font Awesome 4.3.0 and locale-specific JavaScript) that were previously rendered by these files.
app/views/layouts · high confidence
Removal of legacy application helper modules
The application has removed ten helper modules from the \app/helpers\ directory, including \ApplicationHelper\, \CaptchaHelper\, \ContentHelper\, \HooksHelper\, \HtmlHelper\, \PluginsHelper\, \SessionHelper\, \ShortCodeHelper\, \SiteHelper\, \ThemeHelper\, \UploaderHelper\, and \UserRolesHelper\. This change eliminates the underlying code for features such as CAPTCHA generation and verification, plugin and theme asset path resolution, shortcode rendering, file uploading and image cropping, session management, and content injection hooks.
app/helpers · high confidence
Removal of legacy custom fields and post types administration views
The legacy admin interface for managing custom fields and post types has been removed. This change deletes the view templates for the custom fields settings (including the meta data editor, field rendering, and group configuration forms) and the post types administration pages (including the list, form, and edit views). Users will no longer be able to create, edit, or reorder custom field groups and post types through these specific UI components.
_app/views/admin/settings/custom\fields · high confidence
Removal of legacy frontend helper modules
The \Frontend::ApplicationHelper\, \Frontend::NavMenuHelper\, \Frontend::SeoHelper\, and \Frontend::SiteHelper\ modules have been removed from the application. This deletion eliminates the previous implementation of navigation menu rendering, SEO attribute generation (including Open Graph and Twitter card metadata), site URL/path detection, and visibility verification logic. Users relying on these specific helper methods for frontend rendering or SEO configuration will no longer have access to these capabilities in this location.
app/helpers/frontend · high confidence
Removal of legacy model concerns
The \app/models/concerns\ directory has been cleaned up by deleting several legacy concern modules: \categories\_tags\_for\_posts\, \custom\_fields\_read\, \metas\, \metas\_saved\, and \site\_public\, along with the placeholder \.keep\ file. This removes the associated logic for managing post categories/tags, custom field reading, meta/options storage, and site public helpers from the model layer.
app/models/concerns · high confidence
Removal of unused TinyMCE YouTube plugin and theme asset templates
The TinyMCE 'youtubeIframe' plugin (including its dialog, styles, and scripts) has been removed from the application assets, eliminating the ability to insert YouTube videos via this specific plugin. Additionally, the default theme generator templates for \main.css\ and \main.js\ have been deleted, meaning new themes will no longer include these specific asset manifest files by default.
_app/assets/stylesheets/tinymce/plugins/youtubeIframe, lib/generators/ctheme\_template/app/apps/themes/my\theme/assets · high confidence
Removed admin user roles form and index views
The admin interface for managing user roles has been removed. Specifically, the form view (used for creating and editing roles) and the index view (used for listing roles with pagination and actions) have been deleted from the application. Users will no longer be able to access these specific pages through the admin panel.
_app/views/admin/user\roles · high confidence
Removed bundled admin CSS assets
The admin panel no longer includes the local copies of the Animate.css library, the Bootstrap datetimepicker styles, and the \admin-manifest.css\ file that previously aggregated them. Users relying on these specific stylesheets for the admin interface will no longer have them served from this location, which may affect any custom styling or functionality dependent on these bundled assets.
app/assets/stylesheets/admin · high confidence
Removed empty model template from plugin generator
The placeholder model file for the 'my\_plugin' generator has been deleted. This file previously contained only commented-out examples and instructions for defining ActiveRecord models and associations, offering no functional code or behavior for users to inherit or modify.
_lib/generators/cplugin\_template/app/apps/plugins/my\plugin/models · high confidence
Removed installer form and welcome view templates
The installer form template (app/views/admin/installers/form.html.erb) and the post-installation welcome page (app/views/admin/installers/welcome.html.erb) have been deleted. This removes the UI components used for configuring the site domain, name, and theme during installation, as well as the success message providing links to the frontend and admin panel along with default credentials.
app/views/admin/installers · high confidence
Removed legacy admin appearance views for menus, themes, and widgets
The admin interface files for managing navigation menus, theme selection/preview, and widget/sidebar assignments have been deleted. This removes the UI components that allowed administrators to configure external menu links, select and preview themes, and assign widgets to sidebars, indicating these features are no longer supported or have been replaced by a different implementation.
app/views/admin/appearances · high confidence
Removed legacy contact form plugin assets
The contact form plugin's frontend and admin assets have been removed, including the form builder CSS, front-end styling, and JavaScript files (including bundled vendors like Rivets and Backbone). This cleanup eliminates the previous client-side form builder implementation and its associated dependencies from the plugin's asset directory.
_app/apps/plugins/contact\form/assets · high confidence
Removed legacy plugin and theme generators
The \CpluginGenerator\ and \CthemeGenerator\ classes have been removed from the codebase. These generators previously created plugin and theme structures by copying template files and performing text substitutions for names and titles. Their removal indicates that the legacy plugin/theme generation mechanism is no longer supported or has been replaced by a different approach.
lib/generators · high confidence
Removed obsolete frontend assets
The application no longer loads several legacy JavaScript files, including Bootstrap 3.3.4, jQuery 1.11.3, Gibberish-AES, and the custom elfinder file uploader integration. This cleanup removes unused or outdated client-side dependencies from the asset pipeline.
app/assets/javascripts · high confidence
Security
Admin controllers refactored with explicit authorization and security hardening
The admin controllers (Categories, Comments, Installers, Media, Plugins, PostTags, Posts, Sessions, Settings, UserRoles, Users) have been rewritten to enforce strict authorization checks, prevent mass assignment vulnerabilities, and mitigate security risks such as path traversal and IDOR. Key changes include: 1) Explicit authorization gates (e.g., \authorize! :manage, :users\ for user management, \authorize! :categories, @post\_type\ for categories) ensuring users can only access resources they are permitted to manage. 2) Mass assignment protection via explicit parameter whitelisting (e.g., \params.require(:category).permit(:name, :slug, :description, :parent\_id)\). 3) Security hardening in the MediaController, including CSRF protection for uploads, path traversal prevention in private file downloads, and object-level authorization for avatar cropping. 4) Session security improvements, including timing-equalized login checks to prevent username enumeration, throttled password reset emails, and secure logout handling. 5) Installer security, requiring a setup token for remote installations to prevent unauthorized site provisioning. 6) Post and taxonomy scoping to prevent cross-site reparenting and ensure listings are scoped to the authorized post type.
_app/controllers/camaleon\cms/admin · high confidence
Fix mass assignment vulnerabilities in nav menu and theme controllers
The new \NavMenusController\ and \ThemesController\ in the admin appearances area now enforce strict strong parameters and authorization checks. Specifically, the nav menu controller prevents mass-assignment vulnerabilities by only permitting specific fields for menu creation and update, and by validating that external menu options correspond to custom fields registered on the specific menu item rather than accepting arbitrary parameters. Additionally, the reorder functionality is scoped to the current site to prevent cross-site data tampering, and both controllers require explicit \:manage\ authorization for their respective resources.
_app/controllers/camaleon\cms/admin/appearances · high confidence
Hardened media upload security and improved asset precompilation
This release significantly strengthens the security of uploaded media files and fixes asset compilation issues. Uploaded SVG and other markup files are now scanned using a parse-based checker that rejects dangerous elements and event handlers by shape, preventing stored XSS attacks and blocking dangerous URI schemes like javascript: and non-raster data: URIs. The system also refuses executable script uploads (e.g., .js, .wasm) for untrusted users and gates content shortcodes behind specific permissions. Additionally, a new assets precompile helper ensures that plugin and theme assets are correctly declared for precompilation, preventing errors in modern Sprockets environments. The installer is now gated by a secure, randomly generated token to prevent unauthorized access on fresh deployments, and sensitive configuration parameters (such as SMTP passwords and S3 keys) are automatically filtered from Rails logs.
_lib/camaleon\cms · high confidence
Secure draft autosave with authorization and input validation
The new DraftsController introduces strict authorization checks for draft operations, ensuring users can only access their own autosave buffers and must have appropriate permissions to create or update posts. It also validates that custom field values are confined to registered slugs on the post type, preventing mass-assignment vulnerabilities, and enforces that the post\_parent relationship is set only during creation and cannot be manipulated by clients.
_app/controllers/camaleon\cms/admin/posts · high confidence
Security fix for HTML injection in attribute formatting
The \to\_attr\_format\ method in \lib/ext/hash.rb\ now uses \CGI.escapeHTML\ to properly escape attribute values and validates attribute names against a strict regex pattern, preventing HTML injection vulnerabilities in contact forms and other rendered attributes. Additionally, \lib/ext/string.rb\ now sanitizes uploaded filenames to prevent path traversal or hacking attempts, and \lib/ext/translator.rb\ fixes translation matching to correctly handle locale codes containing hyphens.
lib/ext · high confidence
Security fix for mass assignment vulnerabilities in widget controllers
The widget management controllers (assign, main, and sidebar) now use explicit parameter whitelists instead of mass-assignment permitting, preventing unauthorized modification of widget and sidebar attributes. The assign controller also scopes sidebar and widget lookups to the current site to prevent cross-tenant data manipulation.
_app/controllers/camaleon\cms/admin/appearances/widgets · high confidence
Security hardening and private-media visibility fixes in file uploaders
The local and AWS uploaders now enforce strict path validation to prevent arbitrary file deletion and path traversal attacks, and private uploads are stored with owner-only ACLs to ensure they remain inaccessible without authentication. Additionally, the system corrects an inverted visibility mapping for private media so that private files are properly listed in the admin media browser, and it repairs legacy private uploads that were previously stored with world-readable ACLs.
app/uploaders · high confidence
Behavioural changes
127 commits (7 fixes) modifying .claude
A change to existing behaviour in .claude — 127 commits (7 fixs), 53 files: “Run the checks again only after fixing a failed one”; “Send conventions findings that are also defects to step 7”; “Run the whole suite on an empty spec set when AGENTS.md calls for it”; and 124 more.
.claude · medium confidence · unverified
2 commits (0 fixes) modifying app/apps/plugins/front\_cache/assets
A change to existing behaviour in app/apps/plugins/front\_cache/assets — 2 commits, 3 files: “Version 1.0”; “added plugins and themes store links”.
_app/apps/plugins/front\cache/assets · medium confidence · unverified
2 commits (0 fixes) modifying app/apps/themes
A change to existing behaviour in app/apps/themes — 2 commits, 1 file: “Version 1.0”; “Removes DS\_Store files”.
app/apps/themes · medium confidence · unverified
2 commits (0 fixes) modifying app/assets/javascripts/camaleon\_cms
A change to existing behaviour in app/assets/javascripts/camaleon\_cms — 2 commits, 1 file: “Upgrade Bootstrap from 3.3.4 to 3.4.1”; “- Added modularization CamaleonCms:: - Added Theme Gem Generator - Added Prefix DataTables”.
_app/assets/javascripts/camaleon\cms · medium confidence · unverified
3 commits (0 fixes) modifying app/apps/plugins/attack/assets
A change to existing behaviour in app/apps/plugins/attack/assets — 3 commits, 7 files: “Version 1.0”; “published gem version”; “added plugins and themes store links”.
app/apps/plugins/attack/assets · medium confidence · unverified
Admin interface assets migrated to JavaScript
The admin interface assets in \app/assets/javascripts/camaleon\_cms/admin\ have been migrated from CoffeeScript to JavaScript. This includes the introduction of new modules for admin actions (\\_actions.js\), custom field handling (\\_custom\_fields.js\), and data configuration (\\_data.js\), alongside updated versions of third-party libraries such as \bootstrap-datetimepicker\ and \bootstrap-select\ to ensure compatibility with the current jQuery version.
_app/assets/javascripts/camaleon\cms/admin · high confidence
Admin interface helpers refactored into modular concerns
The monolithic admin helper has been split into distinct, modular concerns (ApplicationHelper, BreadcrumbHelper, CategoryHelper, CustomFieldsHelper, MenusHelper, and PostTypeHelper). This refactoring improves maintainability and code organization within the admin panel, introducing specific capabilities such as a new pagination helper, a dedicated breadcrumb title drawer, and a rebuilt menu generation system that respects user permissions and includes intro tour data.
_app/helpers/camaleon\cms/admin · high confidence
Admin interface layout and components restructured
The admin panel's visual structure has been rebuilt by introducing new layout partials (\_ajax, \_flash\_messages, \_footer, \_form\_error, \_header, \_sidebar) and a dedicated installer template. This change standardizes how flash messages are displayed (with specific styling for notice, info, error, alert, and warning types), updates the footer to reference camaleon.website, and ensures the header and sidebar use the correct helper methods (cama\_current\_user, cama\admin\\*) for navigation and user context. The installer template provides a standalone login/setup view with its own manifest and styling.
_app/views/layouts/camaleon\cms/admin · high confidence
Admin interface styles updated with new UI components and theme skins
The admin dashboard styles have been refreshed by adding comprehensive CSS for several UI libraries and components. This includes styles for the AdminLTE 2.3.11 framework (with black and blue skin variants), IntroJS 7.2.0 for guided tours, Bootstrap-select v1.10.0 for enhanced dropdowns, and jQuery UI v1.11.4 for interactive widgets. Additionally, new styles were added for the bootstrap-datetimepicker, colorpicker, and jquery.tagsinput, while manifest files were reorganized to correctly bundle these assets for the admin interface.
_app/assets/stylesheets/camaleon\cms/admin · high confidence
Admin panel layout refactored with modularized partials and standardized breadcrumbs
The admin interface layout has been restructured to improve modularity and consistency. The main admin template now renders the header, sidebar, and footer as separate partials, and integrates the \breadcrumbs\_on\_rails\ gem for standardized breadcrumb navigation. Additionally, the layout now supports content injection hooks (\:before\_content\, \:after\_content\, \:head\) to allow custom CSS or scripts to be injected into the admin panel, and includes specific JavaScript inclusions for localized jQuery validation messages and Moment.js locales.
_app/views/layouts/camaleon\cms · high confidence
Admin search authorization and draft visibility controls
The admin panel now enforces stricter access controls: the search function is scoped to only return content types (posts, categories, tags) that the logged-in user has permission to manage, preventing unauthorized enumeration of drafts or private items. Additionally, viewing draft posts on the frontend is now gated by role-based permissions, allowing site administrators to restrict draft visibility to specific user roles via hooks.
_app/controllers/camaleon\cms · high confidence
Admin security hardening and frontend route modularization
The admin interface routes have been hardened to prevent state-changing actions (such as logout, trash/restore posts, widget deletion, and menu item deletion) from being triggered via GET requests, requiring POST, PATCH, or DELETE verbs instead to mitigate CSRF risks. The frontend routing system has been refactored to support relative URL roots, dynamic locale prefixes, and eager-loaded post type slugs, replacing the previous static locale-based route definitions with a more flexible structure that handles hierarchical posts and custom post types more robustly.
config/routes · high confidence
Admin settings reorganized into dedicated tabs with new configuration options
The admin settings interface has been restructured into distinct tabs: Configuration, SEO, Email, Filesystem, and Media. The Configuration tab now allows administrators to set the home and 404 pages, manage site status (including maintenance and inactive modes), control pagination, and toggle features like anonymous comments, user registration, and captchas. A new Email tab provides SMTP configuration and a test-email button. The Filesystem tab introduces AWS S3 storage support with fields for access keys, bucket, region, endpoint, and Cloudfront URL. The Media tab adds controls for maximum upload file size, thumbnail dimensions, and file actions in modals. The SEO tab includes a new Canonical URL field. Additionally, the Shortcodes viewer settings have been moved from the plugins directory into the main admin settings area.
_app/views/camaleon\cms/admin/settings · high confidence
Admin site management UI moved to dedicated settings views
The admin interface for managing CMS sites has been restructured into dedicated view files under app/views/camaleon\_cms/admin/settings/sites. The previous form, which was repurposed from an ecommerce tax rate form, has been replaced with a new form specifically for site creation and editing, featuring fields for domain slug, name, and description. A new index view provides a table listing all sites with their ID, name, slug, description, default status, and status, along with actions to edit, delete, or visit the site and its admin dashboard.
_app/views/camaleon\cms/admin/settings/sites · high confidence
Admin theme settings view replaced with placeholder comment
The admin interface for configuring theme settings no longer renders the dynamic custom fields form. Instead, the view now contains only a static HTML comment, meaning users will not see the previous custom field configuration options in the admin panel for themes.
app/apps/themes/new/views/admin · high confidence
Admin user management UI and credential security restrictions
The admin interface for managing users has been updated with a new form and list view. The user creation and editing form now enforces security restrictions (H10) that prevent non-admins from changing an admin's password, email, or username, and restricts role changes to admins only. The user list view now displays the last login time and includes an impersonation link for authorized users, while preventing users from deleting their own accounts.
_app/views/camaleon\cms/admin/users · high confidence
Attack plugin configuration updates
The Attack plugin's configuration has been updated to include a descriptive link to its documentation in the plugin settings. Additionally, the plugin's initialization hook has been changed from 'app\_before\_load' to 'front\_before\_load', altering when the plugin loads relative to the application lifecycle. A new custom model configuration file was also added to define a relationship between the CamaleonCms Site and the Attack model.
app/apps/plugins/attack/config · high confidence
Centralized authorization and modularized plugin/theme controllers
The CMS now uses dedicated controllers for managing plugins and themes in both the admin and frontend areas. The new PluginsAdminController enforces explicit authorization checks via \authorize! :manage, :plugins\ before allowing any plugin management actions, addressing broken access control vulnerabilities. Additionally, these controllers standardize how plugin and theme view paths are resolved by dynamically adjusting the lookup context prefixes, ensuring that theme and plugin views are rendered correctly without duplication or path errors.
_app/controllers/camaleon\cms/apps · high confidence
Clean up bundled theme settings and installation logic
The bundled 'new' theme no longer ships with pre-loaded sample posts, categories, tags, or custom field groups, as the \data.json\ seed file has been removed. Additionally, the theme's settings save hook has been refactored to prevent redundant database writes and erroneous redirects by relying on the existing permitted field options path, and the installation process now safely checks for existing navigation menus before creating the default 'Main Menu'.
app/apps/themes/new · high confidence
Configure Camaleon CMS asset manifest for installation
The asset manifest for Camaleon CMS has been updated to explicitly include theme images, JavaScript, and stylesheets, as well as specific plugin assets like the contact form editor and admin navigation menu. This ensures that built-in theme assets and plugin scripts are correctly compiled and available when the installation generator runs, resolving previous issues where default theme assets were not properly linked.
app/assets/config · high confidence
Database schema modernization and media management
This update modernizes the database structure to improve performance, compatibility, and data organization. Key changes include migrating user first and last names from a meta table to dedicated columns for easier access, introducing a new media table to store file metadata separately, and adding email confirmation tokens to the user model. The schema also supports post features via a new boolean flag, optimizes post queries by replacing comment counts with explicit ordering and taxonomy IDs, and refines navigation menu structures. Additionally, field lengths for titles, slugs, and content are adjusted to support longer text, and the system now safely handles migrations across different database prefixes and character sets.
db/migrate · high confidence
Default text fallbacks and simplified post layout in default theme
The default theme views now provide English fallback strings for untranslated keys (e.g., 'No contents found', 'Text searched: ') to prevent empty labels when translations are missing. The post and page templates have been simplified by removing the empty entry-meta footer and the explicit render\_fields call, resulting in a cleaner post display. Additionally, pagination has been standardized across category, tag, type, and search views to use the new cama\_do\_pagination helper instead of the previous will\_paginate configuration.
app/apps/themes/default/views · high confidence
Default theme partials refactored and expanded with JSON API support
The default theme's view partials have been significantly restructured to support both enhanced frontend rendering and JSON API consumption. New JBuilder templates (\_cama\_category\_entry, \_cama\_post\_entry, \_cama\_posts\_entries, etc.) provide structured JSON responses for categories, posts, tags, and users, enabling integration with JavaScript frontends. The comment system now supports anonymous submissions with optional CAPTCHA and offers two distinct visual styles (standard and 'style2'). The sidebar partials have been updated to include related articles and tags, with a fix for the 'skip\_tags' option. Additionally, the post list item partial has been moved from the ecommerce plugin to the default theme and stripped of ecommerce-specific fields (SKU, price, stock) to serve as a generic content display component.
_app/views/camaleon\_cms/default\theme/partials · high confidence
Enhanced comment system with anonymous support and improved localization
The default theme's comment functionality now supports anonymous comments when the 'permit\_anonimos\comment' site option is enabled, requiring name, email, and optional CAPTCHA verification for unauthenticated users. Comment content is now sanitized by removing raw HTML rendering, and all user-facing text strings (titles, placeholders, buttons) have been updated to use proper translation helpers with English defaults. The search form and flash message partials have been standardized to use the new \cama\\ prefixed path helpers and consistent partial namespaces.
app/apps/themes/default/views/partials · high confidence
Escaped URLs in default theme taxonomy links
The default theme's taxonomy helper now escapes URLs and relationship attributes when generating link tags, preventing potential cross-site scripting (XSS) vulnerabilities in breadcrumb, sitemap, and taxonomy displays.
app/apps/themes/default · high confidence
Front Cache plugin gains restart preservation, TTL expiration, and admin purge controls
The front\_cache plugin now supports preserving cached pages across server restarts via a new 'preserve\_cache\_on\_restart' setting, preventing unnecessary cache misses after deployments. Stored pages are automatically expired after one week to prevent unbounded cache growth. The admin 'Clean Cache' action now explicitly purges stored pages in addition to clearing the cache index, and the plugin fails safely if settings metadata is missing rather than crashing the site.
_app/apps/plugins/front\cache · high confidence
Front Cache plugin initializes with cache refresh enabled and updates metadata
The Front Cache plugin now includes an initializer that automatically sets the 'refresh\_cache' option to true for all existing sites upon startup, ensuring the cache is refreshed after a server restart. Additionally, the plugin's configuration metadata has been updated to version 0.2, with a description linking to the official documentation and the removal of a comment from the JSON structure.
_app/apps/plugins/front\cache/config · high confidence
Front Cache settings UI: new preserve option, post-type grouping, and UI fixes
The Front Cache admin settings page now includes a 'Preserve cache on restart' checkbox, allowing users to keep cached content across application restarts. The 'Pages' and 'Skip cache pages' selectors have been refactored to group options by post type using \option\_groups\_from\_collection\_for\_select\, improving navigation for sites with multiple content types. Additionally, the custom URL paths help text now uses a localized tooltip, the back button link uses the correct \cama\_admin\_plugins\_path\, and the JavaScript initialization for the select picker has been corrected to use jQuery's ready handler.
_app/apps/plugins/front\cache/views · high confidence
Generator now includes placeholder for plugin locale directory
The Camaleon CMS gem plugin template generator now creates an empty \.keep\ file within the \config/locales\ directory. This ensures that the locales folder is included in the generated plugin structure, allowing developers to easily add translation files without needing to manually create the directory.
_lib/generators/camaleon\_cms/gem\_plugin\template/config/locales · high confidence
Genericons font paths updated to absolute URLs
The CSS for the default theme's Genericons has been updated to use absolute paths (starting with /assets/...) for the font files (EOT, TTF, SVG) instead of relative paths. This ensures the icon fonts load correctly regardless of the current page's URL structure. The trailing whitespace in the CSS file was also removed.
app/apps/themes/default/assets/genericons · high confidence
Improved navigation security and localization in the default theme layout
The default theme layout now uses the \cama\_\-prefixed URL helpers (e.g., \cama\_admin\_dashboard\_path\) instead of the previous generic helpers, ensuring consistent routing within the application. User-facing text in the navigation dropdowns (Dashboard, Profile, Logout, Login, Register) is now pulled from locale files via \I18n.t\, enabling proper translation support. Additionally, the Logout action has been changed from a GET link to a POST request using \button\_to\, preventing accidental execution via CSRF or link-following attacks. The layout also explicitly includes the main JavaScript file and ensures the main stylesheet path includes the \.css\ extension.
app/apps/themes/default/views/layouts · high confidence
Improved output safety and code structure in Camaleon First theme helper
The Camaleon First theme's main helper has been refactored to improve security and maintainability. The \camaleon\_first\_list\_select\ method now uses Rails' \safe\_join\ and \content\_tag\ helpers instead of manually constructing HTML strings, ensuring that output is properly escaped and safe by default. Additionally, the module structure has been updated to use nested modules, and error handling in the \included\ hook has been made more specific to \StandardError\.
_app/apps/themes/camaleon\first · high confidence
Improved post visibility controls and date picker in the post editor
The post editor's visibility settings now enforce required fields more strictly: selecting 'Private' visibility automatically marks the user group input as required, while selecting 'Password protection' marks the password field as required. Additionally, the date/time selection for post publication has been updated to use a custom format (YYYY-MM-DD HH:mm) via the bootstrap-datetimepicker library, replacing the previous generic datepicker implementation. The plugin's documentation page has been removed.
_app/apps/plugins/visibility\post/assets · high confidence
Installer now generates a unique admin password and requires a setup token
The CMS installation process has been updated to improve security and flexibility. The installer form now includes a 'Setup token' field, which is required for remote installations to verify the setup process. Upon successful installation, the system generates a unique, random password for the default 'admin' user instead of using a static default. This password is displayed once on the welcome screen with a copy-to-clipboard feature, and users are prompted to change it upon their first login.
_app/views/camaleon\cms/admin/installers · high confidence
Introduces site-aware HTML email sending with SMTP and attachment support
The application now uses a dedicated \HtmlMailer\ to send emails, allowing each site to configure its own SMTP settings (server, port, credentials) and sender address via admin options. This change supports sending HTML or plain text emails with file attachments, CC recipients, and inline content, while also providing a hook (\email\_late\) to modify delivery options before sending.
_app/mailers/camaleon\cms · high confidence
Layout templates updated for security, routing, and asset consistency
The layout templates in the new theme app have been updated to improve security and consistency. The logout action now requires a POST request via a form button to prevent CSRF attacks, replacing the previous GET link. User session references have been standardized to use the \cama\_current\user\ helper, and all navigation links now point to the \cama\\ prefixed routes (e.g., \cama\_admin\_dashboard\_path\). Additionally, the header logo link now uses the site's configured URL instead of the root path, and the main stylesheet asset path has been corrected to include the \.css\ extension.
app/apps/themes/new/views/layouts · high confidence
Major overhaul of PluginRoutes and core library structure
The \lib/plugin\_routes.rb\ file has been significantly refactored to improve thread safety and error handling during route loading. The previous implementation, which used a global variable and fragile string concatenation with bare \rescue\ clauses, has been replaced with a class-based structure using \Monitor\ for thread safety and explicit \begin/rescue\ blocks that catch \StandardError\ to prevent persistent 500 errors. Additionally, the core library entry point (\lib/camaleon\_cms.rb\) has been restructured to explicitly require new security modules (\content\_security\, \svg\_content\_checker\, \media\_security\_headers\, \uploader\_content\_security\, \uploader\_path\_security\) and initialize a shortcode registry at boot time to enforce permission gates. Legacy files like \aes\_crypt.rb\ and \ca-bundle.crt\ have been removed, indicating a shift away from bundled cryptography and certificate bundles.
lib · high confidence
Media uploader now enforces CSRF protection and adds image cropping
The admin media uploader now requires a CSRF token on the server-side media\#upload endpoint, with the client-side JavaScript reading the token directly from the meta tag to ensure secure form submissions. Additionally, the uploader now includes the Cropper v2.3.4 library, enabling users to crop images to specific dimensions directly within the media manager interface.
_app/assets/javascripts/camaleon\cms/admin/uploader · high confidence
Migrate JavaScript dependencies and remove CoffeeScript support
The theme's JavaScript asset pipeline has been updated to drop support for CoffeeScript files, requiring all scripts to be written in plain JavaScript. The main.js manifest now replaces the previous local jQuery and Bootstrap includes with a global 'jquery2' requirement and the 'camaleon\_cms/bootstrap.min' plugin, while the dedicated 'modal\_elfinder' plugin file has been removed entirely.
app/apps/themes/new/assets/js · high confidence
Migrate theme JavaScript to jQuery 2 and plain JavaScript
The default theme's client-side code has been migrated from CoffeeScript to standard JavaScript and updated to depend on jQuery 2. This change replaces the previous jQuery version and CoffeeScript compilation step, ensuring the theme's interactive components now run on the newer jQuery API and standard JS syntax.
app/apps/themes/default/assets/js · high confidence
New installation templates for plugin routes and system configuration
The installation generator now includes a new \plugin\_routes.rb\ template that dynamically reads and joins Gemfile configurations from plugins and themes to avoid route conflicts, and a \system.json\ template that sets default configuration values such as \auto\_include\_migrations\ (defaulting to false) and \db\_prefix\.
_lib/generators/camaleon\_cms/install\template · high confidence
New theme generator template with updated assets and security hardening
The theme generator now provides a complete starter template (lib/generators/camaleon\_cms/theme\_template) that includes a layout using jQuery 2 and Bootstrap, a manifest-based asset structure for CSS and JavaScript, and a helper module with hooks for theme installation and settings. The layout template has been updated to use POST-based logout via button\_to for improved security, and the admin settings view has been simplified to remove auto-rendered custom fields, requiring explicit hook-based saving.
_lib/generators/camaleon\_cms/theme\template · high confidence
Password-protected posts now use secure session-based unlocking and hide excerpts
The Visibility Post plugin now requires users to submit passwords via a secure POST request to unlock content, replacing the previous method that exposed passwords in URLs and logs. Upon successful authentication, the post remains unlocked for the current session using a server-side marker, and the password is compared in constant time to prevent timing attacks. Additionally, password-protected posts now display a placeholder excerpt ('This content is password protected.') in listings and feeds, preventing the post body from leaking through derived content representations.
_app/apps/plugins/visibility\post · high confidence
Plugins page now uses tabs and secure toggle actions
The admin plugins interface has been restructured to separate active and disabled plugins into distinct tabs, improving navigation clarity. The mechanism for enabling or disabling plugins has been updated to use a PATCH request with a confirmation dialog, preventing accidental activation or deactivation via simple GET links. Additionally, the view now supports custom plugin-specific action links through a new 'plugin\_options' hook.
_app/views/camaleon\cms/admin/plugins · high confidence
Post type settings now use a tabbed interface with expanded configuration options
The admin interface for managing post types has been restructured to use a tabbed layout (Admin, Visitor, and Custom) within the settings form. This change introduces several new configuration capabilities: administrators can now define post type icons using FontAwesome v4.7.0, manage page hierarchies via a parent structure setting, and configure image handling including specific dimensions, thumbnail versions, and required image flags. Additionally, the form supports managing layouts, templates, categories (single or multiple), tags, content, summaries, comments, featured status, and SEO settings, with hooks available for extending the sidebar and form areas.
_app/views/camaleon\_cms/admin/settings/post\types · high confidence
Rails 7 compatibility and theme-scoped partial rendering isolation
This update ensures compatibility with Rails 7 by introducing a new ActionView initializer that re-implements the private \args\_for\_lookup\ method, which was removed in Rails 7, and adds logic to isolate theme-scoped partial lookups so that templates from one theme do not leak into another. It also replaces the legacy ElFinder image processing initializer with new Sass functions (\asset\_theme\_path\, \asset\_theme\_url\, etc.) that correctly resolve theme and plugin asset paths, and updates the \sort\_by\_field\ API to whitelist the sort direction (ASC/DESC) to prevent SQL injection. Additionally, the initializer now supports loading custom plugin/theme initializers and model aliases, and patches the asset pipeline to correctly render TinyMCE icons in development environments.
config/initializers · high confidence
Rails application structure modernization and configuration expansion
The Rails application entry point has been refactored from the custom WPRails module to the standard Rails.application, and legacy database configuration files (MySQL, SQLite, and the main database.yml) along with boot, environment, New Relic, and sitemap configuration files have been removed. Route definitions are now scoped under a configurable relative URL root, and the system configuration (system.json) has been expanded to support new features including custom admin paths, custom user models, media slug folder settings, automatic migration inclusion, and a default layout, while also updating the default plugin set and adding support for additional languages such as Arabic, Dutch, Chinese, Russian, and Ukrainian.
config · high confidence
Rebuilt admin media library with private file support and upload-from-URL capability
The admin media management interface has been replaced with a new implementation that supports browsing private media files (with URLs resolved via a dedicated download endpoint) and uploading files directly from external URLs. The new gallery view includes a search bar, folder navigation, and a side panel for uploading files or viewing file info, while file actions like editing and deletion are now gated by configurable hooks to verify permissions before allowing changes.
_app/views/camaleon\cms/admin/media · high confidence
Rebuilt admin posts and comments interfaces with AJAX and draft support
The admin interface for managing posts and comments has been rebuilt to use AJAX-driven interactions and improved draft handling. The new post list view includes status filtering, search, and direct links to edit or preview posts. The post creation and editing forms now support private draft autosaving, allowing users to save and recover their own drafts without affecting other users' work. The sidebar has been enhanced with options to manage templates, layouts, page hierarchy, categories, tags, and featured images. Additionally, a new modular comments system allows administrators to view, create, and reply to comments directly from the admin panel, with forms integrated into the AJAX workflow.
_app/views/camaleon\cms/admin/posts · high confidence
Redesigned admin authentication and session management views
The admin login, registration, password recovery, and logout flows have been completely rewritten with a new UI structure. The login page now includes a 'Remember me' checkbox and a 'Forgot Password' link, while the registration form collects first and last names alongside email and username, with optional CAPTCHA support. A new 'Back to Parent' view allows users impersonating an admin to securely re-authenticate with their own password without exposing the target admin's username. Logout is now protected by a confirmation step that requires a POST request, preventing accidental session termination via GET links or forged requests. All views use standardized translation keys and consistent form styling.
_app/views/camaleon\cms/admin/sessions · high confidence
Redesigned admin interface for managing widgets and sidebars
The admin panel for widget and sidebar management has been rebuilt with new views. Administrators can now create and edit widgets (including simple and complex types with custom fields) and sidebars via dedicated forms. The main index page displays available simple widgets in a card layout, while the sidebar management view lists sidebars and allows assigning widgets to them via an AJAX-driven form. All navigation links and form actions have been updated to use the new \cama\_\ URL helpers.
_app/views/camaleon\cms/admin/appearances/widgets · high confidence
Redesigned category management interface with custom fields and AJAX support
The admin category views have been completely rewritten to provide a modern, AJAX-driven experience. The new interface includes a dedicated form for creating and editing categories, featuring support for translatable names and slugs, parent category selection, and custom field groups specific to post types. The category listing page now displays a hierarchical table with nested indentation, allowing administrators to view and manage categories within specific post types. All interactions, including form submissions and list actions, utilize the \cama\_ajax\_request\ class for seamless updates without full page reloads.
_app/views/camaleon\cms/admin/categories · high confidence
Redesigned user role management with administrator safeguards and select\_eval confirmation
The admin interface for managing user roles has been updated to provide clearer permission controls and safety checks. Administrators are now explicitly informed that their role holds all permissions, with the corresponding checkboxes locked and disabled to prevent accidental changes. Additionally, enabling the 'select\_eval' permission now triggers a confirmation modal to prevent unintended actions. The role editing form also supports editing titles and descriptions for private roles, and the index view now correctly displays whether roles are editable or locked.
_app/views/camaleon\_cms/admin/user\roles · high confidence
Refactor helper state management to use CurrentRequest
The application now uses a thread-safe \CurrentRequest\ model to manage per-request state (such as the current user, site, and various helper states) instead of relying on instance variables in helper classes. This change, which involved deleting the legacy \Ability\ model and numerous other model files in this location, ensures that helper state is properly isolated and reset between requests, preventing data leakage and improving reliability in concurrent environments.
app/models · high confidence
Refactor helpers to use CurrentRequest and harden security
The helper modules in app/helpers/camaleon\_cms have been refactored to store request-scoped state in CurrentRequest instead of instance variables, improving reliability and testability. This change introduces several security hardening measures: captchas are now single-use and throttled per client IP to prevent brute-force attacks, session cookies are rotated on sign-in and logout to prevent impersonation residue, and open redirects are blocked by validating return\_to destinations against a host allowlist. Additionally, the comment moderation view now escapes commenter names to prevent stored XSS, and the email helper uses read\_attribute to safely access password reset tokens across Rails versions.
_app/helpers/camaleon\cms · high confidence
Refactored CMS models to use native STI and hardened custom field security
The core models (Post, Category, NavMenu, etc.) now inherit from CamaleonCms::TermTaxonomy or CamaleonCms::PostDefault, enabling native Rails Single Table Inheritance (STI) and replacing the previous polymorphic meta system with a more robust structure. Additionally, custom field management has been secured: the CustomField and CustomFieldGroup models now enforce authorization checks to prevent unauthorized creation or modification of 'select\_eval' fields, and the CustomFieldsRelationship model implements a strict save-time gate to reject dangerous HTML, URI, or shortcode content in user-provided values.
_camaleon\cms · high confidence
Refactored admin settings controllers with stricter security and validation
The admin settings controllers for Custom Fields, Post Types, and Sites have been refactored to enforce stricter security and data integrity. Custom Fields management now requires explicit authorization against specific posts or post types, restricts field group placements to the current site to prevent cross-site contamination, and limits category updates to POST requests to prevent accidental data loss. Post Type settings now validate that template and layout options are within the offered list to prevent invalid configurations, and restrict site re-homing. Sites management now generates and securely displays a unique administrator password for new non-shared sites instead of using a default.
_app/controllers/camaleon\cms/admin/settings · high confidence
Refactored authorization logic with safe permission checks and decorator support
The authorization system in the CMS has been refactored to improve stability and extensibility. A new \safe\_can\ helper centralizes exception handling for permission blocks, preventing crashes when role metadata is malformed or missing. The \Ability\ class now supports custom abilities for post types and correctly handles Draper decorator class names in \can?\ and \cannot?\ methods. Additionally, the \Widget\ model now uses a specific table name prefix.
_app/models/camaleon\cms · high confidence
Refactored controller runtime concerns and hardened comment submission
The controller logic in app/controllers/concerns/camaleon\_cms has been reorganized into a set of focused runtime concerns (such as FrontendConcern, RequestContextConcern, and RuntimeStateConcern) to improve modularity and maintain a single source of truth for shared helpers. As part of this refactor, the frontend comment submission endpoint (save\_comment) has been hardened to prevent 500 errors from crafted requests, including validation of the post\_comment parameter shape, safe handling of missing parent comments, and secure redirect vetting. Additionally, anonymous comments are now supported when permitted by site settings, and the frontend visited state tracking has been migrated to use the CurrentRequest object with deprecation warnings for legacy instance variables.
_app/controllers/concerns/camaleon\cms · high confidence
Refactored frontend helpers to use CurrentRequest state and improved URL handling
The frontend helper module has been restructured into focused concerns (Application, ContentSelect, NavMenu, SEO, Site) that now rely on the \CurrentRequest\ object for state management instead of legacy instance variables. This change improves URL generation by automatically appending the current locale to links when multiple languages are configured, fixes the \the\_url\ method to return correct host information in console contexts, and enhances navigation menus with better current-item detection and support for custom link attributes. SEO attributes are now customizable via code without hooks, and post content rendering uses a scan-and-reject security policy to prevent stored XSS while preserving trusted HTML.
_app/helpers/camaleon\cms/frontend · high confidence
Refactored model concerns for improved stability, security, and custom field handling
This change reorganizes the core model logic into dedicated concerns to enhance maintainability and security. It introduces a \ContentShortcodeGate\ that prevents non-admin users from saving posts containing shortcodes, mitigating stored XSS risks. The \Metas\ concern is rewritten to provide robust, transaction-aware handling of options and metadata, ensuring data integrity during rollbacks. Custom field management is improved via \CustomFieldsRead\ and \NormalizeAttrs\, which add better grouping, validation, and sanitization. Additionally, \CategoriesTagsForPosts\ is refactored to prevent duplicate category assignments, and \UserMethods\ is updated to enforce case-insensitive username/email uniqueness and rotate authentication tokens on logout.
_app/models/concerns/camaleon\cms · high confidence
Removal of Admin Dashboard View
The admin dashboard view file (index.html.erb) has been deleted, meaning the previous welcome message and panel layout for the admin dashboard are no longer rendered.
app/views/admin/dashboard · high confidence
Removal of Bootstrap 3.3.4 CSS assets from the plugin editor
The \bootstrap.min.css\ file for the \bootstrap\_editor\ plugin has been deleted. This removes the embedded Bootstrap v3.3.4 stylesheets (including grid, form, and button components) from the plugin's asset bundle, meaning the editor will no longer load these specific styles locally.
(repo-wide) · high confidence
Removal of Draper-based view decorators
The application has removed the entire \app/decorators\ directory, deleting all Draper decorator classes (including \ApplicationDecorator\, \PostDecorator\, \SiteDecorator\, etc.) that previously handled view-level presentation logic such as URL generation, breadcrumb construction, and localized content formatting. This change eliminates the Draper dependency for these models, meaning the presentation methods previously provided by these decorators are no longer available in the view layer.
app/decorators · high confidence
Removal of TinyMCE Visual Blocks styles and flash message partial
The TinyMCE Visual Blocks plugin's CSS file has been removed, meaning the dashed borders and background icons that previously helped distinguish HTML elements in the editor will no longer appear. Additionally, the shared \\_flash\_messages.html.erb\ partial has been deleted, which removes the centralized rendering logic for notice, info, error, and alert flash messages across the application.
app/assets/javascripts/admin/tinymce/plugins/visualblocks, app/views · high confidence
Removal of custom field rendering from admin settings view
The admin settings view no longer renders the custom field groups for the current theme. The specific partial responsible for displaying these theme fields has been removed from the view template, meaning users will no longer see or be able to edit custom field groups directly within the theme settings interface.
app/apps/themes/default/views/admin · high confidence
Removal of custom public error pages and robots.txt
The custom static error pages (404, 422, 500) and the robots.txt file in the public directory have been deleted. Users will no longer see the branded error templates (such as the '500 bear' design) or the specific robots.txt directives; instead, the application will fall back to default error handling or framework-provided responses for these scenarios.
public · high confidence
Removal of dedicated plugins and themes admin/front controllers
The dedicated controllers for managing plugin and theme views (\PluginsAdminController\, \PluginsFrontController\, \ThemesAdminController\, and \ThemesFrontController\) have been removed from the application. These controllers previously handled the initialization logic for loading plugin and theme-specific view paths and enforcing active status checks; their removal indicates a shift in how these resources are routed or rendered, likely consolidating this logic into a more generic controller or a different architectural pattern.
app/controllers/apps · high confidence
Removal of default Rails scaffolding and configuration files
This change removes several default files included in a new Rails application, effectively cleaning up the project structure. Specifically, it deletes the database schema (\db/schema.rb\) and seed file (\db/seeds.rb\), the environment configuration files for development, production, and test (\config/environments/\*.rb\), and placeholder asset directories (\lib/assets/.keep\, \vendor/assets/javascripts/.keep\, \vendor/assets/stylesheets/.keep\). It also removes two HTML mailer view templates (\app/views/html\_mailer/other.html.erb\ and \app/views/html\_mailer/sender.html.erb\). For users, this means the application is stripped of its initial scaffolding, requiring manual setup of database schemas, environment-specific configurations, and mailer views if those features are needed.
(repo-wide) · high confidence
Removal of default theme admin settings view
The admin settings view for the default theme has been removed. This deletes the file that previously rendered custom field groups for the current theme, indicating a structural change to how theme settings are managed or displayed in the admin interface.
_app/views/default\theme/admin · high confidence
Removal of default theme helper and settings logic
The \main\_helper.rb\ file, which previously provided default methods for saving theme settings, handling theme installation (including adding default field groups like 'Main Settings' with background color and image fields), and handling theme uninstallation, has been removed from the theme template. Users generating this theme will no longer have these default helper methods and installation behaviors available out of the box.
_lib/generators/ctheme\_template/app/apps/themes/my\theme · high confidence
Removal of default theme partials
The default theme's view layer has been significantly reduced by deleting ten partial templates, including those for breadcrumbs, category carousels, comments, flash messages, forms, post listings, custom fields, search, and the sidebar. This change removes the standard UI components and layout structures previously provided by the default theme, likely indicating a shift to a new theme implementation or a restructuring of the view hierarchy.
_app/views/default\theme/partials · high confidence
Removal of default theme view templates
The default view templates for the 'my\_theme' theme generator have been removed. This includes the main layout (index.html.erb), the home page content view, the admin settings view, and the partials readme file. Users generating a new theme from this template will no longer receive these pre-built view files, resulting in a cleaner, empty theme structure that requires manual implementation of the frontend and admin UI components.
_lib/generators/ctheme\_template/app/apps/themes/my\theme/views · high confidence
Removal of embedded Bootstrap v3.3.4 styles
The application no longer includes the embedded Bootstrap v3.3.4 CSS file (\bootstrap.min.css.scss\). This change removes the built-in grid, form, button, and component styles from the asset pipeline, meaning the application will no longer render with Bootstrap's default appearance unless these styles are provided by an external source or gem.
app/assets/stylesheets · high confidence
Removal of legacy Contact Form admin views
The admin interface for the Contact Form plugin has been refactored by deleting the previous view templates (\_form.html.erb, edit.html.erb, manual.html.erb, and responses.html.erb). This change removes the old form creation, editing, help documentation, and response listing UIs, indicating a migration to a new view structure or component system elsewhere in the application.
_app/apps/plugins/contact\_form/views/admin\forms · high confidence
Removal of legacy Elfinder-based media management views
The previous media administration interface, which relied on the Elfinder file manager for both the main listing and modal selection, has been removed. Specifically, the \app/views/admin/media/iframe.html.erb\ (used for modal file selection) and \app/views/admin/media/index.html.erb\ (the main media manager page) are deleted. This indicates a shift away from the Elfinder integration for media handling in the admin panel.
app/views/admin/media · high confidence
Removal of legacy HtmlMailer class
The custom HtmlMailer class, which previously handled email sending with hardcoded default sender addresses and manual attachment logic, has been removed from the application. This change eliminates the legacy mailer implementation, likely as part of a broader refactoring to standardize email delivery or migrate to a different mailer configuration.
app/mailers · high confidence
Removal of legacy admin helper modules
The admin interface no longer includes the legacy helper modules that previously managed the left-hand navigation menu, breadcrumb trails, and custom field type definitions. Specifically, the \Admin::ApiHelper\, \Admin::ApplicationHelper\, \Admin::BreadcrumbHelper\, \Admin::CategoryHelper\, \Admin::CustomFieldsHelper\, \Admin::MenusHelper\, and \Admin::PostTypeHelper\ files have been deleted. This change removes the underlying logic responsible for rendering the admin sidebar structure, generating breadcrumb paths, and defining the UI options for custom field inputs (such as text boxes, select lists, and color pickers).
app/helpers/admin · high confidence
Removal of legacy admin plugins list view
The admin interface for managing plugins has been updated by removing the previous \\_plugins\_list.html.erb\ partial and \index.html.erb\ view files. This change eliminates the legacy tabbed interface that displayed active and all plugins in a table format with inline toggle actions and modal documentation links, indicating a shift in how the plugin management UI is structured or rendered.
app/views/admin/plugins · high confidence
Removal of legacy admin user management views
The admin interface for managing users has been refactored by removing the previous standalone view templates. Specifically, the old user creation/editing form (\form.html.erb\), the user listing page (\index.html.erb\), the user profile display (\profile.html.erb\), and the profile editing page (\profile\_edit.html.erb\) have been deleted from the application. This change eliminates the legacy UI components for user administration, including the associated modals for changing photos and passwords, and the static timeline placeholder previously found in the profile view.
app/views/admin/users · high confidence
Removal of legacy theme view partials
The theme view partials for categories, comments, flash messages, forms, post list items, search, and sidebar have been removed from the application. This deletion eliminates the previous UI components responsible for displaying category carousels, comment sections and forms, flash notifications, custom forms, post listings, search inputs, and sidebar widgets, indicating a structural change to how these interface elements are rendered or managed in the new theme version.
app/apps/themes/new/views/partials · high confidence
Removal of shortcode template views
The \form.html.erb\ and \widget.html.erb\ views within the \shortcode\_templates\ directory have been removed. This eliminates the previous behavior where shortcode forms were rendered via a partial and widgets were displayed by looking up site-specific widget records or rendering plugin-specific partials (such as the visits counter).
_app/views/shortcode\templates · high confidence
Removed legacy custom field templates
The individual view templates for all custom field types (audio, checkbox, colorpicker, date, editor, email, file, image, numeric, phone, posts, radio, select, text\_area, text\_box, url, users, and video) have been deleted from the admin settings interface. This removes the previous inline rendering logic for these specific field inputs, indicating a shift to a different rendering mechanism or template structure elsewhere in the application.
_app/views/admin/settings/custom\fields/fields · high confidence
Removed placeholder .keep file from images directory
The .keep placeholder file in the app/assets/images directory has been deleted. This file was previously used to ensure the directory was tracked by version control when empty; its removal indicates the directory now contains actual assets or is managed differently.
app/assets/images · high confidence
Removed placeholder views and layout documentation from my\_plugin template
The my\_plugin generator template no longer includes the default admin and frontend index views (which previously displayed 'Plugin ready to use' messages) or the layout documentation file. Users generating this plugin will no longer receive these static placeholder pages or the instructions for custom layout loading, resulting in a cleaner, empty view structure that requires manual implementation.
_lib/generators/cplugin\_template/app/apps/plugins/my\plugin/views · high confidence
Removed unused theme assets from Camaleon CMS
The Camaleon CMS theme has been cleaned up by deleting a collection of unused static assets, including CSS files (animate.css, blue.css, bootstrap.css, dark.css, form.css, google-fonts.css, green.css, header.css, jquery.fancybox.css, main.css), a web font definition file (web-fonts.css), and the associated SVG web font (BEBAS\\\_-webfont.svg). This reduces the theme's footprint by removing styles and fonts that are no longer referenced.
_app/apps/themes/camaleon\cms, app/assets/javascripts/admin/tinymce/plugins/media · high confidence
Removes default plugin controller and helper templates
The plugin generator no longer includes the default AdminController, FrontController, and MainHelper template files. Users generating a new plugin will no longer receive these pre-scaffolded files, meaning they must manually create their own controller and helper structures if needed rather than inheriting from the previous default implementations.
_lib/generators/cplugin\_template/app/apps/plugins/my\plugin · high confidence
Replaced inline decorator logic with a structured Draper-based decorator layer
The CMS now uses a dedicated decorator layer (via Draper) for rendering and URL generation, replacing previous inline model methods. This change introduces locale-aware helpers (e.g., \the\_title\, \the\_slug\, \the\_url\) that respect the frontend locale, and adds nil-safe handling for comment author details to prevent crashes on orphaned rows. It also enforces HTML escaping on taxonomy and post titles to prevent stored XSS, and restricts admin account editing and role changes to administrators only.
_app/decorators/camaleon\cms · high confidence
Restrict custom field submissions and template/layout choices to offered values
Admin controllers now enforce stricter validation on user-submitted data to prevent mass-assignment vulnerabilities and invalid state. Custom field values are permitted only if their slugs are registered for the specific object class and field groups being edited, and submitted IDs are validated against the actual field definitions to prevent spoofing. Additionally, template and layout selections for posts and post types are restricted to the values currently offered by the active theme, ensuring that non-admin users cannot save references to non-existent or unoffered view choices.
_app/controllers/concerns/camaleon\cms/admin · high confidence
Shortcodes are now processed within widget descriptions
Widgets can now include shortcodes in their description content, which are automatically evaluated and rendered when the widget is displayed. This allows for more dynamic and flexible widget content without requiring custom rendering logic for every case.
_app/views/camaleon\_cms/shortcode\templates · high confidence
Standardize bin scripts with Bundler binstubs
The project has replaced legacy, manually maintained bin scripts with standard Bundler-generated binstubs for rake, rspec, rubocop, brakeman, and bundle-audit. This change ensures these tools run against the correct gem versions defined in the Gemfile, improves cross-platform compatibility by removing Windows-specific shebangs, and adds safety checks to verify the integrity of the bundle binstub. Additionally, the rails and rake scripts were updated to properly initialize the Rails engine environment, and the old bin/bundle file was removed.
bin · high confidence
Theme CSS refactored to use shared libraries and fix logout menu styling
The theme's CSS asset pipeline has been updated to replace the local Bootstrap copy with the shared \camaleon\_cms/bootstrap.min\ library and added a dependency on \font-awesome\. Additionally, custom styles were added to the logout menu button to ensure it visually matches standard dropdown links, addressing a styling inconsistency identified during a security audit.
app/apps/themes/new/assets/css · high confidence
Theme view updates: pagination, security, and UI adjustments
The new theme's views now use a custom pagination helper (\cama\_do\_pagination\) instead of the previous \will\_paginate\ with Bootstrap renderer, affecting category, post\_tag, post\_type, and search pages. To improve security and fix potential XSS issues, raw HTML output has been removed from the post title in \post.html.erb\ and the post type excerpt in \index.html.erb\. Additionally, image sources in the \index.html.erb\ carousel were updated from HTTP to HTTPS, a default fallback was added to the 'no contents found' translation key, and an edit link was added to post type captions.
app/apps/themes/new/views · high confidence
Update JavaScript dependencies and remove CoffeeScript support
The theme's JavaScript manifest now requires jQuery 2 instead of the previous jQuery version and loads the Bootstrap library from the Camaleon CMS vendor directory rather than the local assets. Additionally, the manifest comment has been updated to reflect that only JavaScript files are supported, indicating the removal of CoffeeScript compilation support in this asset pipeline.
_app/apps/themes/camaleon\first/assets/js · high confidence
Update admin settings view to use Camaleon CMS helpers and translations
The admin settings view for the attack plugin now uses the \cama\_admin\_plugins\_path\ helper for the back button link and the \camaleon\_cms\ translation scope for UI strings, ensuring consistent routing and localization within the Camaleon CMS environment. Additionally, the generic \readme.txt\ file in the views directory has been removed.
app/apps/plugins/attack/views · high confidence
Updated AdminLTE JavaScript to version 2.3.11
The main AdminLTE JavaScript file (app.js) has been updated to version 2.3.11. This update includes the latest layout options and plugin implementations for the admin interface, such as sidebar push menu, control sidebar, and box widget behaviors, ensuring the admin UI aligns with the current AdminLTE release.
_app/assets/javascripts/camaleon\cms/admin/lte · high confidence
Updated Moment.js library and added new locale files
The admin interface now uses Moment.js version 2.11.2, replacing the previous version. This update includes new locale configuration files for Arabic, Catalan, German, Spanish, French, Italian, Japanese, Dutch, Polish, Brazilian Portuguese, Portuguese, Russian, Ukrainian, and Simplified Chinese, enabling proper date and time formatting in these languages within the CMS admin area.
_app/assets/javascripts/camaleon\cms/admin/momentjs · high confidence
Updated gem plugin model template to use CamaleonRecord
The model template for generated gem plugins now inherits from \CamaleonRecord\ instead of \ApplicationRecord\. This change ensures that plugin models correctly integrate with the Camaleon CMS base class, aligning with the platform's internal architecture for record handling.
_lib/generators/camaleon\_cms/gem\_plugin\_template/app/models/plugins/my\plugin · medium confidence
Upgrade Bootstrap to v3.4.1 and add source maps
The Camaleon CMS frontend stylesheets have been updated to use Bootstrap v3.4.1, replacing the previous v3.3.4. This update brings the latest bug fixes and improvements from the Bootstrap 3.4.x series to the CMS interface. Additionally, a source map file (bootstrap.min.css.map) has been added to support debugging and development workflows.
_app/assets/stylesheets/camaleon\cms · high confidence
Fixes
Fixes for brute-force bypass and output safety in the Attack plugin
The Attack plugin now correctly throttles requests by client IP address instead of session ID, preventing attackers from bypassing rate limits by rotating cookies or using cookieless sessions. Additionally, the plugin has been updated to use safe HTML rendering for ban messages and standardized time handling, improving both security posture and output safety for administrators.
app/apps/plugins/attack · high confidence
Fixes for email templates, sample pages, and homepage content rendering
The camaleon\_first theme now includes dedicated mailer and sample page templates to support email notifications and custom post displays. The homepage view has been refactored to use a dedicated helper for determining the home page, and translation strings for 'latest articles' now include a default fallback. Additionally, a broken external image link in the portfolio section has been updated to a working HTTPS URL.
_app/apps/themes/camaleon\first/views · high confidence
Fixes to email template and theme layout assets
This change introduces a new email layout template for mailers, ensuring consistent branding with the site logo and a visit link. It also corrects the main theme layout by specifying the .css extension in the stylesheet link tag, adding dynamic CSS classes to the body element to distinguish between home and inner pages, and fixing a typo in the language list class name.
_app/apps/themes/camaleon\first/views/layouts · high confidence
Updated theme asset dependencies and navigation styling
The Camaleon First theme now explicitly requires the Camaleon CMS-specific Bootstrap version and Font Awesome, ensuring consistent styling and icon rendering. The navigation menu has been enhanced with new CSS rules to support multi-level dropdowns, including specific positioning and color overrides for submenus. Additionally, image asset paths have been updated to use the application's asset pipeline helpers, and the language list items now display reduced opacity for non-active items to improve visual hierarchy.
_app/apps/themes/camaleon\first/assets/css · high confidence
Test coverage
Added dummy Rails application for testing; Added frontend feature tests for post visibility, comments, and custom field translation; Added test suite for the dummy Rails application and controller concerns; Added tests for attack plugin throttle and output safety; Added tests for front\_cache security and correctness fixes; Expanded admin feature test coverage; Removal of legacy test infrastructure and stubs.
Dependencies
Updated CI gemfiles for Rails 7.1, 7.2, 8.0, 8.1, and edge
The CI testing configuration has been updated to include dedicated gemfiles for Rails 7.1, 7.2, 8.0, and 8.1, alongside an edge branch file. These files pin specific versions of dependencies such as \cancancan\ (\~\> 3.0), \non-digest-assets\ (2.6.0), and \sqlite3\ (with version 2.0 for the edge branch), ensuring compatibility and stable testing across these Rails versions.
gemfiles · high confidence
Updated jQuery and Bootstrap libraries in the new theme
The new theme's JavaScript dependencies have been updated: jQuery has been upgraded from version 2.1.1 to 2.2.4, and Bootstrap has been upgraded from version 3.2.0 to 3.3.7. These updates bring the theme's frontend components to newer versions of these core libraries.
app/apps/themes/new/assets/js/plugins/bootstrap, app/apps/themes/new/assets/js/plugins/jquery · high confidence
Upgrade to Rails 8.1 and modernize dependency stack
The application has been upgraded from Rails 4.2 to Rails 8.1, requiring a minimum Ruby version of 3.0. This change replaces legacy asset pipelines (sass-rails, uglifier, coffee-rails) with dartsass-sprockets and non-digest-assets, and updates core dependencies such as draper (\>= 4.0.2), cancancan (\>= 2.0), and cama\_contact\_form (\~\> 0.1.15). The gemspec now explicitly pins json to versions below 3 to ensure compatibility, and development tooling has been updated to include RuboCop, Brakeman, and RSpec configurations suitable for the new environment.
(dependencies) · high confidence
Housekeeping
Placeholder for plugin migration files
A placeholder file has been added to the gem plugin template's migration directory to ensure the folder structure is preserved when the plugin is generated.
_lib/generators/camaleon\_cms/gem\_plugin\template/db · high confidence
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings — which rule fired, in which file, on which line, and how to fix it — are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.
Score
- CAI 39 → 38 (-0.4)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.
Lenses
- Code Health 36 → 36 (-0.1)
- Architecture 86 → 85 (-1.1)
- Maturity 38 → 62 (+24.2)
- Readiness 62 → 62 (-0.3)
- Security 50 → 47 (-2.8)
- Domain Modelling 100 → 100 (+0.0)
- Accessibility 33 → 27 (-5.7)
Resolved (22)
- Duplicate intent across plugin namespaces. While the methods are namespaced to specific plugins, the pattern settings() and save_settings() is repeated identically in Attack and FrontCache. This suggests a missing base interface or shared concern for plugin admin settings, leading to code duplication rather than polymorphic consistency.
- High CVE: [GHSA redacted] (yarn.lock)
- Hotspot: app/models/camaleon_cms/ability.rb (app/models/camaleon_cms/ability.rb)
- Hotspot: app/models/concerns/camaleon_cms/site_default_settings.rb (app/models/concerns/camaleon_cms/site_default_settings.rb)
- Hotspot: lib/camaleon_cms/uploader_pipeline.rb (lib/camaleon_cms/uploader_pipeline.rb)
- Inconsistent lifecycle method naming. destroy is standard Rails for permanent deletion. trash and restore are specific to soft-delete patterns. However, PostsController exposes trash and restore as top-level actions, while other controllers (e.g., CategoriesController, CommentsController) use destroy for deletion. This inconsistency makes it unclear if the system uses soft-delete universally or only for posts.
- Inconsistent naming convention for similar operations. AuthoringPostHelper uses plugin_authoring_new_post while VisibilityPostHelper uses plugin_visibility_new_post. While the prefix distinguishes the plugin, the verb 'new' is often used for form rendering (GET) in Rails, whereas 'create' is for persistence (POST). If these are both form renderers, 'new' is consistent. If one is creation and one is rendering, it's inconsistent. Given the presence of create_post in both, new_post likely implies 'render new form'. However, the naming plugin_<type>_new_post is verbose and inconsistent with standard Rails new vs create separation if the signatures differ in intent. More critically, AuthoringPostHelper has plugin_authoring_create_post AND plugin_authoring_new_post, while VisibilityPostHelper also has both. The inconsistency is subtle but the naming plugin_<plugin>_new_post is non-standard compared to standard new actions.
- Inconsistent signature for reorder operations. NavMenusController takes explicit arguments items, parent_id, is_root, while SidebarController.reorder() likely relies on params or a different internal structure (signature not fully shown but implied by lack of args in the list). This creates an inconsistent API for clients or internal callers trying to reorder different types of lists.
- Off-boarding risk: anonymized user #1
- Outdated: brakeman
- Outdated: cancancan
- Outdated: meta-tags
- Outdated: mini_magick
- Outdated: net-http
- Outdated: rails
- Outdated: rspec_junit_formatter
- Outdated: rubocop
- Outdated: rubocop-capybara
- Outdated: rubocop-rails
- Outdated: rubocop-rspec_rails
- …and 2 more
New (10)
- High: security finding (details withheld)
- High: security finding (details withheld)
- High: security finding (details withheld)
- Off-boarding risk: anonymized user #1
- Orphaned file (app/decorators/camaleon_cms/post_type_decorator.rb)
- Outdated: rspec-rails
- doc comments repeat the names (app/assets/javascripts/camaleon_cms/admin/_libraries.js)
- redundant comment (app/assets/javascripts/camaleon_cms/admin/_translator.js)
- redundant comment (app/assets/javascripts/camaleon_cms/admin/lte/app.js)
- redundant comment (app/assets/javascripts/camaleon_cms/admin/nav_menu.js)
Changes since last survey
- 98 commits — 90 feature/other, 8 fixes
By area
- (root) — 23 commits
- (repo) — 16 commits
- openspec/changes — 16 commits
- .claude/skills — 8 commits
- docs/upgrading-to-2.9.5.md — 6 commits
- .github/workflows — 4 commits
- spec/requests — 4 commits
- app/assets — 3 commits
- app/controllers — 3 commits
- app/helpers — 3 commits
- app/models — 3 commits
- docs/ai — 2 commits
- config/locales — 1 commit
- docs/security — 1 commit
- lib/camaleon_cms — 1 commit
- spec/lib — 1 commit
- spec/models — 1 commit
- spec/skills — 1 commit
- spec/support — 1 commit
Notable commits
- fix: Fix the group 1 sample in the comment of set_field_value
- fix: Merge pull request #1320 from owen2345/fix/review-loop-commit-rule
- fix: Merge pull request #1327 from owen2345/fix/review-loop-scripts
- fix: Merge pull request #1332 from owen2345/fix/captcha-text-quoting
- fix: Merge pull request #1333 from owen2345/fix/set-field-values-string-keys
- fix: Merge pull request #1335 from owen2345/fix/xhr-admin-save-refusal-answer
- fix: Merge pull request #1336 from owen2345/fix/custom-fields-render-malformed-field-options
- fix: Phase 3 and AGENTS.md: related fixes share a commit, and the checks run once before it
- change: Add the changelog entry for the Rails 8.1.4.1 bump
- change: Add the changelog entry for the Ruby and Bundler upgrade
- change: Add the changelog entry for the development lock update
- change: Add the changelog entry for the nokogiri, loofah and rails-html-sanitizer bumps
- change: Add the changelog entry for the rack and addressable bumps
- change: Add the changelog entry of PR #1336
- change: Add the changelog entry of the String keys read of set_field_values
- change: Add the changelog entry of the XHR refusal answer
- change: Add the changelog entry of the captcha text quoting
- change: Add the changelog entry of the ci-rerun script
- change: Add the changelog entry of the review-loop scripts
- change: Add the ci-rerun script of the review loop
- …and 78 more
Architecture
- Unchanged — 0 containers · 1 contexts · 0 edges
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
owen2345/camaleon-cms was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 6 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 200641c14ca1446e8a89a03b969ed76baf89907e — the exact code this score is about.
- Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.3+preprod-60d1b390edf0.