menu-options #51

Closed
carlos wants to merge 33 commits from menu-options into master
Member

This PR implements remaining menu options

This PR implements remaining menu options
carlos added 24 commits 2024-09-13 17:17:48 +02:00
carlos added 4 commits 2024-09-13 20:52:31 +02:00
carlos added 1 commit 2024-09-13 20:55:58 +02:00
lash requested changes 2024-09-14 01:37:39 +02:00
lash left a comment
Owner

Help menu does not work as expected here:


$ go run -v cmd/main.go -session-id foobar -dbdir .test
Balance: 0.003 CELO

1:Send
2:My Vouchers
3:My Account
4:Help
9:quit
4
Thank you for using Sarafu. Goodbye!

Same with change pin:


$ go run -v cmd/main.go -session-id foobar -dbdir .test
Balance: 0.003 CELO

1:Send
2:My Vouchers
3:My Account
4:Help
9:quit
3
My Account
1:Profile

2:Change language
3:Check balances
4:Check statement

5:PIN options
6:My Address
0:Back
5
PIN Management

1:Change PIN

2:Reset other's PIN
3:Guard my PIN

0:Back
1
loop exited with error: unexpected termination: key not found: 5f6361746368

exit status 1
Help menu does not work as expected here: --- ``` $ go run -v cmd/main.go -session-id foobar -dbdir .test Balance: 0.003 CELO 1:Send 2:My Vouchers 3:My Account 4:Help 9:quit 4 Thank you for using Sarafu. Goodbye! ``` --- Same with change pin: --- ``` $ go run -v cmd/main.go -session-id foobar -dbdir .test Balance: 0.003 CELO 1:Send 2:My Vouchers 3:My Account 4:Help 9:quit 3 My Account 1:Profile 2:Change language 3:Check balances 4:Check statement 5:PIN options 6:My Address 0:Back 5 PIN Management 1:Change PIN 2:Reset other's PIN 3:Guard my PIN 0:Back 1 loop exited with error: unexpected termination: key not found: 5f6361746368 exit status 1 ```
@ -492,3 +534,1 @@
res.FlagSet = append(res.FlagSet, flag_allow_update)
res.FlagReset = append(res.FlagReset, flag_account_authorized)
}
if len(input) == 4 {
Owner

can you please put the pin length in a global variable and replace all similar occurrences and check with that?

can you please put the pin length in a global variable and replace all similar occurrences and check with that?
carlos marked this conversation as resolved
@ -572,0 +625,4 @@
l := gotext.NewLocale(translationDir, code)
l.AddDomain("default")
res.Content = l.Get("For more help,please call: 0757628885")
Owner

This should be a config variable. Let's put it as a global variable for now.

You are sure this cannot be solved with a template?

This should be a config variable. Let's put it as a global variable for now. You are sure this cannot be solved with a template?
@ -321,0 +1001,4 @@
}
}
func TestVerifyPin(t *testing.T) {
Owner
this test does not pass https://g33k.holbrook.no/e675e48bdd347c120aa37d85250b6c419b17ec38c5940e0907362eef3d4ffda9
carlos added 1 commit 2024-09-14 06:47:01 +02:00
carlos added 1 commit 2024-09-14 06:48:34 +02:00
carlos added 1 commit 2024-09-14 09:47:13 +02:00
carlos added 1 commit 2024-09-14 12:15:36 +02:00
carlos closed this pull request 2024-09-14 19:53:04 +02:00

Pull request closed

Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: urdt/ussd#51
No description provided.