Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
757057e
Create acesso_usuarios.feature
staann May 23, 2026
42cccfc
Create dados_academicos.feature
staann May 23, 2026
15106bc
Create templates_formularios.feature
staann May 23, 2026
23fed83
Create participante_resultados.feature
staann May 23, 2026
64a7882
Delete features/acesso_usuarios.feature
staann May 23, 2026
35ce921
Delete features/dados_academicos.feature
staann May 23, 2026
8994a12
Delete features/templates_formularios.feature
staann May 23, 2026
7c8299a
Add feature for viewing available forms for students
staann May 23, 2026
88a98db
Enhance feature file with form response scenarios
staann May 23, 2026
8823a28
Add feature for generating semester report as admin
staann May 23, 2026
4a0c17f
Create feature acesso_usuarios
Anarayssa-dev May 24, 2026
90199a6
Add feature for login system in acesso_usuario
Anarayssa-dev May 24, 2026
cb68e29
Add feature files for report generation, form response, result visual…
staann May 25, 2026
0b5ec78
Remove arquivo antigo e adiciona novo arquivo
Anarayssa-dev May 25, 2026
9e7301c
adiciona cenários BDD para definição de senha
Anarayssa-dev May 25, 2026
6eebd8b
adiciona cenários BDD para redefinição de senha
Anarayssa-dev May 25, 2026
fcf9563
adiciona cenários BDD para cadastro de usuarios
Anarayssa-dev May 25, 2026
c295a0a
atualizando o arquivo cadastrar_usuarios
Anarayssa-dev May 25, 2026
964dd6d
adiciona cenários BDD para criar template de formulário
rafaelcarvalhoj May 26, 2026
15db29a
adiciona cenários BDD para edição e deleção de templates
rafaelcarvalhoj May 26, 2026
70e7b94
adiciona cenários BDD para visualização de templates
rafaelcarvalhoj May 26, 2026
6f870df
adiciona cenários BDD para criar formulário de avaliação
rafaelcarvalhoj May 26, 2026
08eadae
adiciona cenários BDD para criar formulário para docentes ou discentes
rafaelcarvalhoj May 26, 2026
e7599b6
Update feature file for SIGAA data import scenarios
HeoSora May 26, 2026
b23ff65
Add feature file for SIGAA database update scenarios
HeoSora May 26, 2026
281e417
Rename atualizar_bdd_SIGAA.feature to atualizar_bd_SIGAA.feature
HeoSora May 26, 2026
cd8f85c
Add feature file for department management system
HeoSora May 26, 2026
d2ae505
Refactor feature scenarios for clarity and accuracy
staann May 26, 2026
5985f03
Revise feature scenarios for form result visualization
staann May 26, 2026
c10bff8
Update feature file for form visualization scenarios
staann May 26, 2026
fc0beda
Update report generation feature scenarios
staann May 26, 2026
9688655
fix: correct typos in the login scenario
AnalyceRay May 26, 2026
d623e40
refactor: adicionar numero na issue nos cenários BDD e atualizar de F…
rafaelcarvalhoj May 26, 2026
85cb693
correcao(#15): remover contexto BDD para se adequar ao cenário triste…
rafaelcarvalhoj May 26, 2026
2ec521c
corrige(#4): cenários BDD de formulário para docentes ou discentes
rafaelcarvalhoj May 26, 2026
9018615
corrige(#15): cenários BDD para criar template de formulário
rafaelcarvalhoj May 26, 2026
d655fb2
corrige(#5): cenários BDD para edição e deleção de templates
rafaelcarvalhoj May 26, 2026
d956686
corrige(#6): cenários BDD para visualização de templates
rafaelcarvalhoj May 26, 2026
b4f7615
fix(#{17}): Update user registration feature file with corrections
Anarayssa-dev May 26, 2026
94df76f
fix( #{12} )Refactor password definition feature scenarios
Anarayssa-dev May 26, 2026
b2a7f03
fix #10: Refactor password reset feature scenarios
Anarayssa-dev May 26, 2026
787efb7
corrige(#19) Update feature file for SIGAA data import scenarios
HeoSora May 26, 2026
2b61172
corrige(#9)
HeoSora May 26, 2026
85f8a8a
corrige(#11) Update feature file for department management scenarios
HeoSora May 26, 2026
fbf8c31
corrige: Atualizar arquivos de funcionalidades de visualização e resp…
staann May 26, 2026
6fc4e09
fix: corrige cenários BDD do cadastro de usuários (#3)
Anarayssa-dev May 26, 2026
ea2042b
fix: corrige cenários BDD do cadastro de usuários (#17)
Anarayssa-dev May 26, 2026
03d87cd
fix: corrige cenários BDD de definição de senha (#12)
Anarayssa-dev May 26, 2026
31f62ed
fix: corrige cenários BDD de redefinição de senha (#10)
Anarayssa-dev May 26, 2026
aca710b
fix: corrige cenários BDD do sistema de login (#13)
Anarayssa-dev May 26, 2026
a5cced6
Adiciona estrutura rails
Anarayssa-dev Jun 1, 2026
94c0bd9
configurar estrutura rails e cucumber
Anarayssa-dev Jun 2, 2026
dc83c48
fix: corrige configuração do Capybara e organização do projeto
rafaelcarvalhoj Jun 3, 2026
3126a44
docs: adiciona tutorial de setup do ambiente
rafaelcarvalhoj Jun 3, 2026
efce506
Merge pull request #20 from HeoSora/setup/rails-and-cucumber
rafaelcarvalhoj Jun 3, 2026
d4eafa8
Implementa sistema de login da issue 13
anamattos2 Jun 4, 2026
94228e2
feat: implementa controlador e views para envio de formulários, inclu…
staann Jun 9, 2026
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
51 changes: 51 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# 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*
9 changes: 9 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# See https://git-scm.com/docs/gitattributes for more about git attribute files.

# 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
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
updates:
- package-ecosystem: bundler
directory: "/"
schedule:
interval: weekly
open-pull-requests-limit: 10
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: weekly
open-pull-requests-limit: 10
88 changes: 88 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
name: CI

on:
pull_request:
push:
branches: [ main ]

jobs:
scan_ruby:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- 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

- name: Scan for known security vulnerabilities in gems used
run: bin/bundler-audit

scan_js:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- 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@v4

- 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

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true

- name: Install Chrome
uses: browser-actions/setup-chrome@v1

- name: Set up database
run: bin/rails db:test:prepare

- name: Run Cucumber tests
run: bundle exec cucumber
Comment on lines +86 to +87

38 changes: 38 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
#
# Temporary files generated by your text editor or operating system
# belong in git's global ignore instead:
# `$XDG_CONFIG_HOME/git/ignore` or `~/.config/git/ignore`

# Ignore bundler config.
/.bundle

# Ignore all environment files.
/.env*

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

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

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

/public/assets

# Ignore key files for decrypting credentials and more.
/config/*.key

# Ignore Kamal secrets (may contain real credentials)
/.kamal/secrets

3 changes: 3 additions & 0 deletions .kamal/hooks/docker-setup.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

echo "Docker set up on $KAMAL_HOSTS..."
3 changes: 3 additions & 0 deletions .kamal/hooks/post-app-boot.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

echo "Booted app version $KAMAL_VERSION on $KAMAL_HOSTS..."
14 changes: 14 additions & 0 deletions .kamal/hooks/post-deploy.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh

# A sample post-deploy hook
#
# These environment variables are available:
# KAMAL_RECORDED_AT
# KAMAL_PERFORMER
# KAMAL_VERSION
# KAMAL_HOSTS
# KAMAL_ROLES (if set)
# KAMAL_DESTINATION (if set)
# KAMAL_RUNTIME

echo "$KAMAL_PERFORMER deployed $KAMAL_VERSION to $KAMAL_DESTINATION in $KAMAL_RUNTIME seconds"
3 changes: 3 additions & 0 deletions .kamal/hooks/post-proxy-reboot.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

echo "Rebooted kamal-proxy on $KAMAL_HOSTS"
3 changes: 3 additions & 0 deletions .kamal/hooks/pre-app-boot.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

echo "Booting app version $KAMAL_VERSION on $KAMAL_HOSTS..."
51 changes: 51 additions & 0 deletions .kamal/hooks/pre-build.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
#!/bin/sh

# A sample pre-build hook
#
# Checks:
# 1. We have a clean checkout
# 2. A remote is configured
# 3. The branch has been pushed to the remote
# 4. The version we are deploying matches the remote
#
# These environment variables are available:
# KAMAL_RECORDED_AT
# KAMAL_PERFORMER
# KAMAL_VERSION
# KAMAL_HOSTS
# KAMAL_ROLES (if set)
# KAMAL_DESTINATION (if set)

if [ -n "$(git status --porcelain)" ]; then
echo "Git checkout is not clean, aborting..." >&2
git status --porcelain >&2
exit 1
fi

first_remote=$(git remote)

if [ -z "$first_remote" ]; then
echo "No git remote set, aborting..." >&2
exit 1
fi

current_branch=$(git branch --show-current)

if [ -z "$current_branch" ]; then
echo "Not on a git branch, aborting..." >&2
exit 1
fi

remote_head=$(git ls-remote $first_remote --tags $current_branch | cut -f1)

if [ -z "$remote_head" ]; then
echo "Branch not pushed to remote, aborting..." >&2
exit 1
fi

if [ "$KAMAL_VERSION" != "$remote_head" ]; then
echo "Version ($KAMAL_VERSION) does not match remote HEAD ($remote_head), aborting..." >&2
exit 1
fi

exit 0
47 changes: 47 additions & 0 deletions .kamal/hooks/pre-connect.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#!/usr/bin/env ruby

# A sample pre-connect check
#
# Warms DNS before connecting to hosts in parallel
#
# These environment variables are available:
# KAMAL_RECORDED_AT
# KAMAL_PERFORMER
# KAMAL_VERSION
# KAMAL_HOSTS
# KAMAL_ROLES (if set)
# KAMAL_DESTINATION (if set)
# KAMAL_RUNTIME

hosts = ENV["KAMAL_HOSTS"].split(",")
results = nil
max = 3

elapsed = Benchmark.realtime do
results = hosts.map do |host|
Thread.new do
tries = 1

begin
Socket.getaddrinfo(host, 0, Socket::AF_UNSPEC, Socket::SOCK_STREAM, nil, Socket::AI_CANONNAME)
rescue SocketError
if tries < max
puts "Retrying DNS warmup: #{host}"
tries += 1
sleep rand
retry
else
puts "DNS warmup failed: #{host}"
host
end
end

tries
end
end.map(&:value)
end

retries = results.sum - hosts.size
nopes = results.count { |r| r == max }

puts "Prewarmed %d DNS lookups in %.2f sec: %d retries, %d failures" % [ hosts.size, elapsed, retries, nopes ]
Loading