Skip to content

Relese/v0.6.8-10#109

Merged
pixelotes merged 11 commits into
mainfrom
relese/v0.6.8-10
May 13, 2026
Merged

Relese/v0.6.8-10#109
pixelotes merged 11 commits into
mainfrom
relese/v0.6.8-10

Conversation

@pixelotes
Copy link
Copy Markdown
Owner

@pixelotes pixelotes commented May 13, 2026

Description

Mixed batch of bug fixes, UX improvements, and cleanup. Fixes several broken flows in Evaluations, Onboarding/Offboarding, and Peripherals; adds three quality-of-life features to HR processes; and removes the legacy leads / opportunities modules that had been superseded by requirements / evaluations.

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Configuration / Infrastructure
  • Documentation

Impact Assessment

Does this change affect other components?

  • No, this change is isolated to a single module
  • Yes — list affected components below:
    • Evaluations (detail template syntax error, edit form action)
    • Onboarding / Offboarding (close at any %, ownership transfer, edit details modal, service revoke redirect)
    • Peripherals (brand/model dropdowns on edit)
    • Sidebar navigation (legacy module links updated)
    • Removed modules: leads, opportunities (routes, templates, tests)

Does this change require a new database migration?

  • No
  • Yes — migration file included in this PR
    • 009_add_notes_to_onboarding_process: adds nullable notes text column to onboarding_process

Does this change require new or updated tests?

  • No
  • Yes — tests included in this PR
  • Yes — tests will be submitted in a follow-up PR
  • Existing tests updated to reflect changes
    • Removed test_leads.py (module deleted)

Does this change require documentation updates?

  • Yes
  • No

Additional Notes

Bugs fixed:

  • GET /evaluations/<id> returned 500 due to Jinja2 syntax error in detail.html ({{ super() %} missing closing brace)
  • Evaluations edit button navigated to new-evaluation form instead of edit (sidebar still pointed to legacy opportunities blueprint)
  • Offboarding: revoking service access returned 403 after correct 302 — revoke_service_access was redirecting to onboarding_detail instead of offboarding_detail
  • Offboarding: "Transfer" button for service ownership items never rendered — template checked item_type == 'Service' but items are created with item_type == 'ServiceOwnership'
  • Peripherals: brand and model dropdowns empty on edit form — brands variable was missing from edit_peripheral() render call

Features added:

  • Onboarding/Offboarding can now be closed at any checklist completion percentage; a confirmation dialog warns when items are still pending
  • New offboarding form includes an optional "Transfer ownership to" field — risks, service ownerships, and credentials are automatically reassigned and marked complete on checklist creation
  • Onboarding and offboarding detail pages now have an Edit modal for updating dates, responsible person, and a free-text notes/observations field

@pixelotes pixelotes changed the title Relese/v0.6.8 10 Relese/v0.6.8-10 May 13, 2026
Comment thread src/routes/onboarding.py
if comm.status != 'pending':
flash(f'Communication is already {comm.status}.', 'warning')
return redirect(request.referrer or url_for('onboarding.index'))
return redirect(request.referrer or url_for(_EP_INDEX))
Comment thread src/routes/onboarding.py
if not comm.recipient_email:
flash('No recipient email configured for this communication.', 'danger')
return redirect(request.referrer or url_for('onboarding.index'))
return redirect(request.referrer or url_for(_EP_INDEX))
Comment thread src/routes/onboarding.py

db.session.commit()
return redirect(request.referrer or url_for('onboarding.index'))
return redirect(request.referrer or url_for(_EP_INDEX))
Comment thread src/routes/onboarding.py
if comm.status != 'pending':
flash(f'Cannot cancel - communication is already {comm.status}.', 'warning')
return redirect(request.referrer or url_for('onboarding.index'))
return redirect(request.referrer or url_for(_EP_INDEX))
Comment thread src/routes/onboarding.py Outdated
@sonarqubecloud
Copy link
Copy Markdown

@pixelotes pixelotes merged commit cd5ceb2 into main May 13, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants