Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
d78c414
MEANINGFUL: diff .github
colinxfleming Oct 26, 2025
5831953
kamal dir
colinxfleming Oct 26, 2025
8e7d385
move assets/jobs/javascript folders around
colinxfleming Oct 26, 2025
de7375c
MEANINGFUL: apply controller changes
colinxfleming Oct 26, 2025
e2a67af
changes to app layout
colinxfleming Oct 26, 2025
63070d7
port over bin dir
colinxfleming Oct 26, 2025
d72b767
MEANINGFUL: port over development config
colinxfleming Oct 26, 2025
491ebd1
MEANINGFUL: port production config
colinxfleming Oct 26, 2025
d89b679
add views/pwa
colinxfleming Oct 26, 2025
bc4a1ac
apply mailer layout changes
colinxfleming Oct 26, 2025
e6a3a82
MEANINGFUL: port staging config
colinxfleming Oct 26, 2025
fb7be97
MEANINGFUL: port test config
colinxfleming Oct 26, 2025
4610b6f
MEANINGFUL: CSP port
colinxfleming Oct 26, 2025
5af2085
port other config initlaizers
colinxfleming Oct 26, 2025
92cacc0
port locales
colinxfleming Oct 26, 2025
391c2ff
general new config dir files
colinxfleming Oct 26, 2025
b529d44
SEMI_MEANINGFUL: gitignore changes
colinxfleming Oct 26, 2025
a4e8d2d
MEANINGFUL: application.rb
colinxfleming Oct 26, 2025
3de59ab
cable/cache/queue schemas
colinxfleming Oct 26, 2025
5d28852
a bunch of noop-ish root directory files
colinxfleming Oct 26, 2025
7bd56aa
move docs dir to _docs, and clear out a whole ton of stuff
colinxfleming Oct 26, 2025
a6652df
test dir
colinxfleming Oct 26, 2025
7f99808
MEANINGFUL: start rehashing test helpers
colinxfleming Oct 26, 2025
7ea91a9
MEANINGFUL: torch the gemfile
colinxfleming Oct 26, 2025
718a792
MEANINGFUL: flatten and reinstall pkg.json
colinxfleming Oct 26, 2025
465ca44
MEANINGFUL: initializers edits to get the app to boot up
colinxfleming Oct 26, 2025
cafe6d2
reimplement sentry
colinxfleming Oct 26, 2025
0399f52
add bootstrap_form + minor browserslist dedupe
colinxfleming Oct 26, 2025
861884c
MEANINGFUL: get login page to load by getting bootstrap forms working
colinxfleming Oct 26, 2025
ef64a1f
MEANINGFUL: test suite runs. it explodes, but it runs
colinxfleming Oct 26, 2025
7386b92
restore images
colinxfleming Oct 26, 2025
9be7f9a
restore dashboard load
colinxfleming Oct 26, 2025
e56fcfe
revert a bunch
colinxfleming Nov 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .browserslistrc

This file was deleted.

59 changes: 54 additions & 5 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,56 @@
.git
.gitignore
# See https://docs.docker.com/engine/reference/builder/#dockerignore-file for more about ignoring files.

# Ignore git directory.
/.git/
/.gitignore

# Ignore bundler config.
/.bundle

# Ignore all environment files.
/.env*

# Ignore all default key files.
/config/master.key
/config/credentials/*.key

# Ignore all logfiles and tempfiles.
/log/*
/tmp/*
!/log/.keep
!/tmp/.keep

# Ignore pidfiles, but keep the directory.
/tmp/pids/*
!/tmp/pids/.keep

# Ignore storage (uploaded files in development and any SQLite databases).
/storage/*
!/storage/.keep
/tmp/storage/*
!/tmp/storage/.keep

# Ignore assets.
/node_modules/
/app/assets/builds/*
!/app/assets/builds/.keep
/public/assets

# Ignore CI service files.
/.github

# Ignore Kamal files.
/config/deploy*.yml
/.kamal

# Ignore development files
/.devcontainer

# Ignore Docker-related files
/.dockerignore
/Dockerfile*

# Custom
README.md
tmp/pids/server.pid
node_modules/
docs/
_docs/
_design/
18 changes: 8 additions & 10 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
#Set default behavior to use Unix line endings so Docker on Windows doesn't fail
* text eol=lf
# See https://git-scm.com/docs/gitattributes for more about git attribute files.

# Denote all files that are truly binary and should not be modified.
# https://www.git-scm.com/docs/gitattributes
*.png binary
*.jpg binary
*.ai binary
*.pdf binary
*.ttf binary
*.ico binary
# Mark the database schema as having been generated.
db/schema.rb linguist-generated

# Mark any vendored files as having been vendored.
vendor/* linguist-vendored
config/credentials/*.yml.enc diff=rails_credentials
config/credentials.yml.enc diff=rails_credentials
42 changes: 21 additions & 21 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,34 @@

version: 2
updates:
- package-ecosystem: "bundler"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: bundler
directory: "/"
schedule:
interval: weekly
groups:
ruby-minor-patch:
exclude-patterns:
- "acts_as_tenant" # DARIAEngineering/dcaf_case_management#3078
update-types:
- "minor"
- "patch"
reviewers:
- "xmunoz"
labels:
- "dependencies"

- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
groups:
js-minor-patch:
update-types:
- "minor"
- "patch"
reviewers:
- "xmunoz"
labels:
- "dependencies"
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: weekly
open-pull-requests-limit: 10

- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
groups:
js-minor-patch:
update-types:
- "minor"
- "patch"
labels:
- "dependencies"


141 changes: 141 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
name: CI

on:
pull_request:
branches: [ main ]
push:
branches: [ main ]

jobs:
scan_ruby:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Scan for common Rails security vulnerabilities using static analysis
run: bin/brakeman --no-pager --exit-on-warn
- name: Scan for known security vulnerabilities in gems used
run: bin/bundler-audit
- name: Scan for known security vulnerabilities in ruby used
run: bin/ruby-audit

scan_js:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Scan for security vulnerabilities in JavaScript dependencies
run: bin/importmap audit

lint:
runs-on: ubuntu-latest
env:
RUBOCOP_CACHE_ROOT: tmp/rubocop
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Prepare RuboCop cache
uses: actions/cache@v4
env:
DEPENDENCIES_HASH: ${{ hashFiles('.ruby-version', '**/.rubocop.yml', '**/.rubocop_todo.yml', 'Gemfile.lock') }}
with:
path: ${{ env.RUBOCOP_CACHE_ROOT }}
key: rubocop-${{ runner.os }}-${{ env.DEPENDENCIES_HASH }}-${{ github.ref_name == github.event.repository.default_branch && github.run_id || 'default' }}
restore-keys: |
rubocop-${{ runner.os }}-${{ env.DEPENDENCIES_HASH }}-
- name: Lint code for consistent style
run: bin/rubocop -f github

test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
options: --health-cmd="pg_isready" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- name: Install packages
run: sudo apt-get update && sudo apt-get install --no-install-recommends -y libpq-dev node-gyp
- name: Checkout code
uses: actions/checkout@v5
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Run rb tests
env:
RAILS_ENV: test
DATABASE_URL: postgres://postgres:postgres@localhost:5432
# RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
run: bin/rails db:test:prepare test
- name: Run js tests
env:
RAILS_ENV: test
DATABASE_URL: postgres://postgres:postgres@localhost:5432
# RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
run: yarn test

system-test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
options: --health-cmd="pg_isready" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- name: Install packages
run: sudo apt-get update && sudo apt-get install --no-install-recommends -y libpq-dev node-gyp
- name: Checkout code
uses: actions/checkout@v5
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Run System Tests
env:
RAILS_ENV: test
DATABASE_URL: postgres://postgres:postgres@localhost:5432
# RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
run: bin/rails db:test:prepare test:system
- name: Keep screenshots from failed system tests
uses: actions/upload-artifact@v4
if: failure()
with:
name: screenshots
path: ${{ github.workspace }}/tmp/screenshots
if-no-files-found: ignore`

docker:
name: Verify docker build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout
- name: Bring up containers
run: |
docker compose build
docker compose run --rm web rails db:create db:migrate db:seed
docker compose up -d
sleep 30
docker compose logs -t
docker ps -a | (! grep Exited ) # Return a non-zero exit code if any of the containers are stopped
22 changes: 0 additions & 22 deletions .github/workflows/deploy_staging.yml

This file was deleted.

Loading