27 Commits

Author SHA1 Message Date
bd287ccec2 Set up ElixirGtBridge to observe a session with Glamorous Toolkit 2025-10-13 13:50:47 +01:00
73d41c0c9a Merge branch 'main' of ssh://gitea.apps.sustainabledelivery.com:3022/QTIL/basic_signup_allowlist 2025-09-16 15:40:04 +01:00
1172676f02 set MIT license 2025-09-16 15:34:06 +01:00
Your Name
38ba27cd0e Create convenience methods to allow or deny all 2025-09-16 13:47:22 +00:00
Your Name
8b527f618a add typesecs and docstrings 2025-09-16 13:13:27 +00:00
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
6eab34c61a Update README.md 2025-09-16 09:14:37 +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
Your Name
926ff822ec add mise for elixir 2025-09-16 08:51:34 +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
ca4eaf6f54 Add workaround for failing doctest
on_exit in test does not work properly as teardown - the variable is
unset, but doctest apparently runs after tests and it is not cleaned up
2025-09-14 20:19:18 +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
a913f2ca22 notes from chat
http://sequential:4242/c/622ae09e-9470-43fb-8a3f-e85a90322f9a
2025-09-14 12:25:59 +01:00
595e23a4b5 empty rep with functioning mix test 2025-09-14 12:08:05 +01:00