18 Commits

Author SHA1 Message Date
Your Name
8112173ef4 refactor: rename mail_allowlisted to signup_allowed?
Follow Elixir naming conventions by using question mark suffix for boolean
functions. Renamed mail_allowlisted to signup_allowed? and mail_allowlisted_fun
to signup_allowed_fun throughout the codebase.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-16 09:44:11 +00:00
Your Name
a89ed0c80c refactor: centralize SIGNUP_ALLOWLIST_EMAILS constant definition
Define environment variable name as a module attribute in BasicSignupAllowlist
and expose it via signup_allowlist_emails/0 function to eliminate duplication
across lib and test files.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-16 09:40:11 +00:00
Your Name
c6e3a490d2 add forgotten files 2025-09-16 09:34:03 +00:00
Your Name
12ce7d1d5d more white to allow renaming 2025-09-16 09:32:40 +00:00
Your Name
490102c0a8 Rename to allowlist 2025-09-16 09:09:51 +00:00
Your Name
30548eae80 rename environment variable 2025-09-16 09:03:12 +00:00
c848ca17ad Gave up trying to reset env var - set to "*" after test
And after doctest. it stayed at "*" after the last test anyway, letting
the doctest fail.

doctests are not recommended for side effectful tests anyway https://hexdocs.pm/ex_unit/main/ExUnit.DocTest.html
2025-09-14 21:30:08 +01:00
5a7f651547 Integrate whitelist in imperative shell 2025-09-14 20:15:14 +01:00
1c23e93d43 WIP set the environment variable
next: implement
2025-09-14 17:10:50 +01:00
09aeb31cb3 Move implementation to own file
Prefactoring, from  TDDAYMI to imperative shell. In the next step we
need the implementation from the functional core in the imperative
shell, to pass in the environment variable.
2025-09-14 16:59:42 +01:00
464b96b656 match different casings 2025-09-14 16:46:57 +01:00
5aefc18098 Whitelist two addresses
Intermediate steps not committed - addresses_as_list, because long stack
trace in output. turned out 'nil' case needs to be explicit now. I
prefer the small functions though instead of whole implementation in
case statement.
2025-09-14 16:39:56 +01:00
50500060d5 Factor out describe block for allowed list empty etc. 2025-09-14 16:23:20 +01:00
e30a92193d empty covered by not equals - not allowed 2025-09-14 16:13:52 +01:00
b5e308aec6 whitelist on exact match 2025-09-14 16:12:33 +01:00
f333ea1ed0 when not defined, not allowed 2025-09-14 16:06:50 +01:00
135448398d mail not whitelisted when not set 2025-09-14 13:13:10 +01:00
595e23a4b5 empty rep with functioning mix test 2025-09-14 12:08:05 +01:00