Unverified transcriptions, PM templates, ICA inspections, W&B, AD watch

- Entries transcribed by Claude are unverified (with Claude's confidence)
  until an owner checks them against the scan: badge, filter, "mark
  verified" stepping through the rest
- Preventive maintenance templates on new logbook entries, keyed to Part 43
  Appendix A(c), setting the entry type and pilot certificate (43.3(g))
- An STC's ICA can become a tracked recurring inspection, linked from its
  major record
- Weight & balance: history of empty weight/CG (linked to the 337 that
  changed them), loading stations and CG envelope from the POH, and a live
  calculator for takeoff and landing weight/CG; shown on the status report
- New ADs: weekly Federal Register search per aircraft (aircraft, engine
  and propeller models, or custom terms); track or dismiss each; included
  in the weekly reminder
- Archives carry the new records; brakeman: explicit params, reviewed
  About-page links

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rickyandClaude Opus 5.5 committed 2026-11-07 10:49:29 -05:00
1 parent bed07386ef
commit 6cab81332e
49 files changed
+1197 -35

No files matched your search

+68 -5
View File
@@ -1,10 +1,73 @@
{
"ignored_warnings": [
{
"warning_type": "File Access",
"fingerprint": "c1d23cfd1f641b61be5cc6d747c8658806ed9e5adccb66eaca8f2aac5ef449ee",
"file": "app/controllers/flight_imports_controller.rb",
"note": "Token is validated against TOKEN_FORMAT (server-generated uuid.ext) before use, and File.basename is applied; path is confined to tmp/imports."
"warning_type": "Cross-Site Scripting",
"warning_code": 4,
"fingerprint": "43d7e4cfb5fdffe8ce34bb9676dc02e2a9e5dba55fdc47fbb480cace17bafe59",
"check_name": "LinkToHref",
"message": "Potentially unsafe model attribute in `link_to` href",
"file": "app/views/admin/about/show.html.erb",
"line": 14,
"link": "https://brakemanscanner.org/docs/warning_types/link_to_href",
"code": "link_to(\"Source code\", SystemInfo.new.repository_url, :class => \"link\", :target => \"_blank\", :rel => \"noopener\")",
"render_path": [
{
"type": "controller",
"class": "Admin::AboutController",
"method": "show",
"line": 7,
"file": "app/controllers/admin/about_controller.rb",
"rendered": {
"name": "admin/about/show",
"file": "app/views/admin/about/show.html.erb"
}
}
],
"location": {
"type": "template",
"template": "admin/about/show"
},
"user_input": "SystemInfo.new.repository_url",
"confidence": "Weak",
"cwe_id": [
79
],
"note": "The repository URL comes from the server environment (APP_REPOSITORY_URL) or a constant, and SystemInfo only returns http(s) URLs; admins only."
},
{
"warning_type": "Cross-Site Scripting",
"warning_code": 4,
"fingerprint": "85f8003e1ad00eeb2308faea3dd89e55db1b7a794b9c1a8b05c16466849038ac",
"check_name": "LinkToHref",
"message": "Potentially unsafe model attribute in `link_to` href",
"file": "app/views/admin/about/show.html.erb",
"line": 12,
"link": "https://brakemanscanner.org/docs/warning_types/link_to_href",
"code": "link_to(SystemInfo.new.revision, SystemInfo.new.revision_url, :class => \"link\", :target => \"_blank\", :rel => \"noopener\", :title => \"This commit on GitHub\")",
"render_path": [
{
"type": "controller",
"class": "Admin::AboutController",
"method": "show",
"line": 7,
"file": "app/controllers/admin/about_controller.rb",
"rendered": {
"name": "admin/about/show",
"file": "app/views/admin/about/show.html.erb"
}
}
],
"location": {
"type": "template",
"template": "admin/about/show"
},
"user_input": "SystemInfo.new.revision_url",
"confidence": "Weak",
"cwe_id": [
79
],
"note": "The repository URL comes from the server environment (APP_REPOSITORY_URL) or a constant, and SystemInfo only returns http(s) URLs; admins only."
}
]
],
"brakeman_version": "8.1.0"
}
+3
View File
@@ -22,3 +22,6 @@ production:
weekly_reminders:
class: WeeklyReminderJob
schedule: every monday at 12pm
ad_watch:
class: AdWatchJob
schedule: every sunday at 10am
+15 -1
View File
@@ -60,7 +60,9 @@ Rails.application.routes.draw do
collection { post :import }
end
resources :logbook_imports, path: "logbook/import", only: %i[new create show]
resources :logbook_entries
resources :logbook_entries do
member { patch :verify }
end
resources :documents do
collection do
get :bulk, action: :bulk_new, as: :new_bulk
@@ -72,6 +74,16 @@ Rails.application.routes.draw do
resources :inspection_types, except: %i[index show]
resource :standard_inspections, only: %i[new create]
resources :inspection_records, except: %i[index show]
resources :ad_alerts, path: "ads/new_ads", only: [] do
member do
post :track
post :dismiss
end
collection do
post :check
patch :terms
end
end
resources :airworthiness_directives, path: "ads", except: :show do
collection { post :attach }
end
@@ -80,6 +92,8 @@ Rails.application.routes.draw do
post :confirm
end
resources :major_records
resource :loading_setup, path: "weight_balance/loading", only: %i[edit update] # before the records' :id routes
resources :weight_balance_records, path: "weight_balance", except: :show
resources :aircraft_roles, path: "access", only: %i[index create update destroy]
resources :share_tokens, only: %i[create destroy]
resource :export, controller: "aircraft_exports", only: :show