Skip to content

Commit

Permalink
feat: show client default behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
strahe committed Feb 6, 2025
1 parent 943b1a4 commit 2359eaa
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 17 deletions.
13 changes: 13 additions & 0 deletions graph/curiorpc/proxy_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions graph/curiorpc/webrpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ type WebRPC interface {
SetAllowDenyList(ctx context.Context, wallet string, status bool) error
AddAllowDenyList(ctx context.Context, wallet string, status bool) error
RemoveAllowFilter(ctx context.Context, wallet string) error
DefaultAllowBehaviour(ctx context.Context) (bool, error)
}

type sectorListEntry struct {
Expand Down
4 changes: 2 additions & 2 deletions graph/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func graphHandler(cfg *config.Config, resolver ResolverRoot) echo.HandlerFunc {
if !strings.HasPrefix(oc.OperationName, "Sub") {
log.Debugw("request", "operation", oc.OperationName,
"duration", time.Since(oc.Stats.OperationStart).String(),
"variables", oc.Variables)
"variables", oc.Variables, "error", ns.Errors.Error())
}
}
return ns
Expand All @@ -92,7 +92,7 @@ func graphHandler(cfg *config.Config, resolver ResolverRoot) echo.HandlerFunc {
srv.SetErrorPresenter(func(ctx context.Context, e error) *gqlerror.Error {
err := graphql.DefaultErrorPresenter(ctx, e)
if err != nil {
log.Errorw("request", "path", err.Path.String(), "error", err)
log.Errorw("request", "path", err.Path.String(), "error", err.Message)
}
return err
})
Expand Down
4 changes: 2 additions & 2 deletions graph/resolvers/market_setting.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 4 additions & 10 deletions ui/src/layouts/sidebar/sidebarItems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,20 +100,14 @@ const sidebarItems: menuItem[] = [
],
},
{ header: 'Market', icon: IconBuildingStore },
{
title: 'Market',
icon: IconBuildingStore,
children: [
{
title: 'Balances',
to: { name: "MarketBalances" }
}
]
},
{
title: 'Settings',
icon: IconFilterCog,
children: [
{
title: 'Market Balances',
to: { name: "MarketBalances" }
},
{
title: 'Storage Asks',
to: { name: "StorageAsks" }
Expand Down
3 changes: 2 additions & 1 deletion ui/src/utils/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"Settings": "Settings",
"Pricing Filters": "Pricing Filters",
"Client Filters": "Client Filters",
"Client Allow/Deny": "Client Allow/Deny"
"Client Allow/Deny": "Client Allow/Deny",
"Market Balances": "Market Balances"
},
"fields": {
"Total Power": "Total Power",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { useMutation,useQuery } from '@vue/apollo-composable'
import { useMutation, useQuery } from '@vue/apollo-composable'
import { ref, computed, PropType } from 'vue'
import { SetMarketClientAllow, GetMarketClientAllowList, GetMarketClientAllow } from '@/gql/market'
import { IconAlertCircle,IconPlus } from '@tabler/icons-vue'
Expand Down Expand Up @@ -62,7 +62,7 @@ const handleSubmit = async () => {
}
const { result: checkResult, loading: checkLoading } = useQuery(GetMarketClientAllow, {
name: walletDebounced
wallet: walletDebounced
})
const exists = computed(() => {
Expand Down

0 comments on commit 2359eaa

Please sign in to comment.