add-space-after-colon #211
Merged
lash
merged 20 commits from 2024-12-19 11:35:14 +01:00
add-space-after-colon into master
Labels
Clear labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
cleanup
devops
documentation
easypeasy
exchange
i18n
legacy
meta
migration
optimization
privilege
refactor
smell
support
tooling
ux
Breaking change that won't be backward compatible
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Priority
Critical
The priority is critical
Priority
High
The priority is high
Priority
Low
The priority is low
Priority
Medium
The priority is medium
Reviewed
Confirmed
Issue has been confirmed
Reviewed
Duplicate
This issue or pull request already exists
Reviewed
Invalid
Invalid issue
Reviewed
Won't Fix
This issue won't be fixed
Status
Abandoned
Somebody has started to work on this but abandoned work
Status
Blocked
Something is blocking this issue or pull request
Status
Need More Info
Feedback is required to reproduce issue or to continue work
Activity
Doing
An item actively being worked on currently
Activity
Hold
Not being actively worked on
Activity
Proposal
A proposal for a new feature or enhancement
Activity
QA
Ready for QA testing
Activity
Validate
Dev team validating changes
Runner
AT
Runner
CLI
Runner
HTTP
Runner
SSH
A task that can be completed with little effort
relating to swapping of assets and offramps
Languages and translations
Legacy features from the old ussd system to be ported
container for other issues
features that have to do with special, privileged axx
Code smell
transparency and help with exception states
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: urdt/ussd#211
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
@@ -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
@@ -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
@@ -102,0 +100,4 @@accountService: accountService,prefixDb: prefixDb,profile: &models.Profile{Max: 6},ReplaceSeparator: replaceSeparator,Let's name it
ReplaceSeparatorFuncThis has been done