Commit graph

99 commits

Author SHA1 Message Date
24c02
03537aeb8e fix address spec 2025-12-09 21:33:17 -05:00
24c02
3f9990d877 try to untangle this mess? 2025-12-09 21:32:27 -05:00
24c02
4b9e2368bf our users are not immune to stuttering 2025-12-09 21:15:41 -05:00
24c02
eb9dc771eb fix action IDs again AGAIN 2025-12-09 21:15:25 -05:00
24c02
81f4f9fab6 oh lol 2025-12-09 21:02:55 -05:00
24c02
aba8dfa69d fix dino? 2025-12-09 20:58:09 -05:00
24c02
8ce5102319 ralsei has a job 2025-12-09 20:47:07 -05:00
24c02
5f41bb5b60 actually wire up the thing 2025-12-09 20:45:51 -05:00
24c02
f2444e8e4c ugh 2025-12-09 20:36:55 -05:00
24c02
063e6c1286 absolutely zeited 2025-12-09 20:24:45 -05:00
nora
0bd3d609bb
Flavortown onboarding (#97)
* add flavortown scenario and channels

* add special app support for SSO grid

* add flavortown app card

* downcase

* add onboarding scenario to program

* cooked

* RALSEI ENGINE IS A REAL ENGINE NOW
2025-12-09 20:13:24 -05:00
24c02
d44b3106bd protocol do 2025-12-09 15:56:09 -05:00
24c02
b2da133bbf fix https in staging? 2025-12-09 15:49:35 -05:00
24c02
5f1bf6d7e4 add error on linking existing identity 2025-12-09 15:47:13 -05:00
nora
105e4b7a7c
Now you're thinking with portals! (#89)
* Extract verification flow logic into VerificationFlow concern

Move document submission handling and helper methods from
VerificationsController into a reusable concern:
- setup_document_step, handle_document_submission
- process_legal_name, process_aadhaar_number
- create_verification, document_params
- verification_should_redirect? helper

Extract document form into shared partial for reuse across
regular and portal verification flows.

* Extract address building into AddressManagement concern

Move build_address helper into a shared concern for reuse
between AddressesController and Portal::AddressesController.

* Add PortalFlow concern and base controller for external app flows

PortalFlow provides secure redirect handling for portal flows:
- Validates return URLs against registered Program redirect URIs
- Stores validated URLs in session to prevent tampering
- Allows localhost in non-production environments
- Provides redirect helpers with portal_status query param

Portal::BaseController uses logged_out layout with portal_wrapper
content block for minimal UI.

* Add portal controllers and routes for external app integration

Portal::VerificationsController handles document verification flow
triggered by external OAuth apps, with status-based redirects.

Portal::AddressesController handles address collection with manage
view for users who already have addresses.

Routes:
- GET/POST/DELETE /portal/verify
- GET/POST /portal/address
- GET /portal/address/done

Also adds make_primary member route to addresses resource.

* Add HTMX support to AddressesController for dynamic updates

Refactor AddressesController:
- Extract create/primary logic into helper methods
- Add HTMX-aware response methods for partial updates
- Support portal context detection for shared address list

Add partials:
- _address_list.html.erb: Shared address list with HTMX actions
- _edit_form.html.erb: Inline edit form for HTMX requests
- Update _form.html.erb with HTMX form attributes when target provided

Address list supports both regular and portal contexts with
appropriate HTMX targets and translations.

* Add portal views and translations

Portal views:
- verifications/document.html.erb: Document upload for portal flow
- verifications/pending.html.erb: Pending verification status
- addresses/portal.html.erb: Initial address collection form
- addresses/manage.html.erb: Address list for existing addresses

Update logged_out layout to support portal_wrapper content block
with minimal brand header for portal flows. Add HTMX CSRF header.

Add translations for portal verification and address flows.

* Add Program.official scope and update address styles

Add scope to filter HQ-official programs.

Update address styles for portal and HTMX address management:
- Improved address card layout with flex
- Add address card and button styles
- Pending verification card styles
- Portal done button styling

* fix address nit?
2025-12-09 12:46:05 -05:00
nora
fffc8e31aa
Onboarding changes (#90)
* make dm channel optional

* remove ndc test

* add waiting-room channel ID

* swap announcements & waiting room
2025-12-08 19:13:32 -05:00
24c02
39bfc6f21a Try non-default channel for Accountpheus DM 2025-12-08 16:13:27 -05:00
nora
3561cdd75c
[Tutorial] move RalseiEngine to a proper DM channel (#88)
* add identities.slack_dm_channel_id

* update ralseiengine to use it
2025-12-08 16:01:04 -05:00
nora
7056d70b21
Proper slack onboarding (#87)
* slack invite circuit breaker

* add slack onboardingscenario
2025-12-08 15:23:16 -05:00
24c02
720405b46d nuke helpers in phlex 2025-12-08 14:27:10 -05:00
Copilot
81e7c300a0
Fix SQL query table reference from users to backend_users (#84)
* Initial plan

* Fix SQL query to use correct table name backend_users instead of users

Co-authored-by: 24c02 <163450896+24c02@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: 24c02 <163450896+24c02@users.noreply.github.com>
2025-12-08 14:12:58 -05:00
nora
20c064c563
add login_hint support (#86) 2025-12-08 14:00:09 -05:00
24c02
aa879c419a lindt 2025-12-05 21:57:28 -05:00
24c02
b5d6e5bc56 fix for signup -> oauth 2025-12-05 21:52:17 -05:00
24c02
1a3c5869f0 fix #80? 2025-12-05 18:28:04 -05:00
24c02
89228f97f8 fix oauth authorization on domain redirect 2025-12-05 15:08:13 -05:00
24c02
1391e08d5d ack! 2025-12-05 14:37:32 -05:00
24c02
0ae91407c5 rework consent screen 2025-12-04 20:55:47 -05:00
nora
cf35a4a1f0
Contact info (#76)
* auth@ on login

* docs/contact

* nah

* identity@
2025-12-04 19:41:28 -05:00
24c02
e2195a910e waiw 2025-12-04 18:23:14 -05:00
24c02
fc8312d8b5 UGH 2025-12-04 17:44:17 -05:00
24c02
80f41b3ccd initializers.... 2025-12-04 17:32:23 -05:00
24c02
7fc785b98d 👉👈 2025-12-04 17:30:32 -05:00
24c02
dec964bb2d ffs 2025-12-04 17:23:24 -05:00
24c02
9e8c454821 fix staging build 2025-12-04 17:14:06 -05:00
24c02
a51de52528 fix coolify deploy 2025-12-04 16:35:28 -05:00
nora
87bb6d4a18
Switch mailers to SES (#72)
* add premailer

* first pass at converting existing mailers

* this EIN is not yours :-P

* remove some css that probably won't work

* that was gonna bug me

* more mailers!

* s/account/auth

* rework 2fa/security mailers

* env vars for SES creds

* add OpenSSL explicitly

* use external logo image

* nuke step_up_code
2025-12-04 16:32:32 -05:00
24c02
fef6dbcc52 [Cleanup] why lol 2025-12-03 17:34:19 -05:00
24c02
ee83710ecf [Backend] link on sidebar 2025-12-03 17:26:58 -05:00
24c02
9e62830a9c [Docs] fix api example? 2025-12-03 17:14:42 -05:00
24c02
9fd857b7fb htmx... 2025-12-03 03:40:03 -05:00
24c02
ff1d46e62b fix setup_copy on backend 2025-12-03 03:06:36 -05:00
24c02
d87ecdb2f7 less ugly checkboxes 2025-12-03 02:39:57 -05:00
24c02
19f65de9bc d'oh 2025-12-03 02:35:48 -05:00
24c02
c67523582c lol 2025-12-03 02:14:37 -05:00
dependabot[bot]
c472be5115
Bump actions/checkout from 4 to 6 (#45)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-03 01:56:42 -05:00
24c02
52f4a8cb61 namespacing is gonna be the death of me 2025-12-03 01:32:16 -05:00
nora
7d04469701
[Backend] UI2. (#67)
* first srcl pass!

* HOLY MFIN KBAR

* first last search

* put the borders back

* button!

* oops

* toolbar!

* lol

* bump dreamland, make kbar actually reactive?

* shorter timeout lol

* identity picker component

* nuke that lol

* seen_hints

* woah

* hint sys pt 1

* HINTS

* HINTS AND SHORTCUTS

* styles, BACKSPACE

* nav on home

* bananananana

* click, starring adam sandler

* scrool

* lint pass

* autoed complete

* shut

* brake the man

* dunno why those got unmerged

* path oopsie

* backspace on audit logs

* whitespace

* i thought i told you to shut up

* mr. brakeman
2025-12-03 01:17:37 -05:00
Copilot
1ade11b703
Add missing partial for promote_to_full_user activity (#64)
* Initial plan

* Add missing partial _promote_to_full_user.html.erb for public_activity identity

Co-authored-by: 24c02 <163450896+24c02@users.noreply.github.com>

* Simplify promote_to_full_user template - remove unnecessary is_current check

Co-authored-by: 24c02 <163450896+24c02@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: 24c02 <163450896+24c02@users.noreply.github.com>
2025-12-03 01:02:36 -05:00
nora
ca58cc3bec
[Backend] Backend::User delenda est. (#66)
kill me
2025-12-03 00:45:07 -05:00