add-space-after-colon #211
			No reviewers
			
		
		
		
	
	
	
		Labels
		
	
	
	
	
		No Label
		
			
	
	
	Compat/Breaking
		
			Kind/Bug
		
			Kind/Documentation
		
			Kind/Enhancement
		
			Kind/Feature
		
			Kind/Security
		
			Kind/Testing
		
			Priority
Critical
		
			Priority
High
		
			Priority
Low
		
			Priority
Medium
		
			Reviewed
Confirmed
		
			Reviewed
Duplicate
		
			Reviewed
Invalid
		
			Reviewed
Won't Fix
		
			Status
Abandoned
		
			Status
Blocked
		
			Status
Need More Info
		
		
			Activity
Doing
		
			Activity
Hold
		
			Activity
Proposal
		
			Activity
QA
		
			Activity
Validate
		
			Runner
AT
		
			Runner
CLI
		
			Runner
HTTP
		
			Runner
SSH
		
			cleanup
		
			devops
		
			documentation
		
			easypeasy
		
			exchange
		
			i18n
		
			legacy
		
			meta
		
			migration
		
			optimization
		
			privilege
		
			refactor
		
			smell
		
			support
		
			tooling
		
			ux
		
	
		No Milestone
		
			
		
	
	
		
		
		
			No project
			
				
			
		
	
	
	
	
	
		No Assignees
		
			
		
	
	
	
		2 Participants
		
	
	
		
		
			Notifications
			
				
			
		
	
	
		
		
	
	
	Due Date
	No due date set.
			
				Dependencies
				
				
		
	
	
	No dependencies set.
			Reference: urdt/ussd#211
			
		
	
		Loading…
	
		Reference in New Issue
	
	Block a user
	
	No description provided.
		
		Delete Branch "add-space-after-colon"
	
	Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
add-space-after-colonto WIP: add-space-after-colonWIP: add-space-after-colonto add-space-after-colon@ -122,6 +123,7 @@ func main() {flag.UintVar(&size, "s", 160, "max size of output")flag.StringVar(&host, "h", initializers.GetEnv("HOST", "127.0.0.1"), "http host")flag.UintVar(&port, "p", initializers.GetEnvUint("PORT", 7123), "http port")flag.StringVar(&separator, "sep", ": ", "custom separator for the menu")this is probably more a config thing than an arg thing?
This has been resolved
@ -25,3 +25,3 @@for i, h := range holdings {symbols = append(symbols, fmt.Sprintf("%d:%s", i+1, h.TokenSymbol))symbols = append(symbols, fmt.Sprintf("%d: %s", i+1, h.TokenSymbol))won't this break if separator is set to something else by config/arg?
@ -1901,3 +1901,3 @@}formattedTransactions = append(formattedTransactions, fmt.Sprintf("%d:%s %s %s %s", i+1, status, value, sym, date))formattedTransactions = append(formattedTransactions, fmt.Sprintf("%d: %s %s %s %s", i+1, status, value, sym, date))same here, will break
This has been resolved
add-space-after-colonto WIP: add-space-after-colonWIP: add-space-after-colonto add-space-after-colon@ -1676,6 +1676,11 @@ func (h *Handlers) CheckVouchers(ctx context.Context, sym string, input []byte)func (h *Handlers) GetVoucherList(ctx context.Context, sym string, input []byte) (resource.Result, error) {var res resource.ResultmenuSeparator, ok := ctx.Value("MenuSeparator").(string)why wouldnt this be set directly as a property in the handler?
It would be easier setting it in the context for use by downstream functions, similar to how the database is set.
Also. it won't be used by most of the handler functions. It's only usable by functions that generate custom menu items (such as the voucher list and transfers list)
ref phone conversation, let store a function pointer in the handlers that does the translation with the separator selected :)
This has been done. The function is passed from the LocalHandlerService to the Handlers
add-space-after-colonto WIP: add-space-after-colonWIP: add-space-after-colonto add-space-after-colon@ -102,0 +100,4 @@accountService: accountService,prefixDb: prefixDb,profile: &models.Profile{Max: 6},ReplaceSeparator: replaceSeparator,Let's name it
ReplaceSeparatorFuncThis has been done