Skip to content

Commit

Permalink
Merge branch 'develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
AvineshTripathi authored Nov 30, 2024
2 parents 5e97818 + 76cab01 commit 310687c
Show file tree
Hide file tree
Showing 30 changed files with 3,722 additions and 7,316 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ jobs:
go-version-file: go.mod

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v6
with:
cache-invalidation-interval: 15
args: --timeout=10m
version: v1.54.2
skip-pkg-cache: true
version: v1.59
skip-cache: true
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
go install -a -v github.com/go-bindata/go-bindata/...@latest
go install -v github.com/elazarl/go-bindata-assetfs/...
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4.1.7
with:
name: dashboard-build
path: out
Expand Down
5 changes: 5 additions & 0 deletions controller/accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ func (ctrl *Controller) RescanAccount(c context.Context, account *models.Account
return
}

func (ctrl *Controller) GetAccountById(c context.Context, accountId string) (account models.Account, err error) {
_, err = ctrl.repo.HandleQuery(c, repository.ListKey, &account, [][3]string{{"id", "=", accountId}}, "")
return
}

func (ctrl *Controller) DeleteAccount(c context.Context, accountId string) (err error) {
_, err = ctrl.repo.HandleQuery(c, repository.DeleteKey, new(models.Account), [][3]string{{"id", "=", accountId}}, "")
return
Expand Down
4 changes: 1 addition & 3 deletions dashboard/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ const config: StorybookConfig = {
name: '@storybook/nextjs',
options: {}
},
docs: {
autodocs: 'tag'
}
docs: {}
};
export default config;
4 changes: 1 addition & 3 deletions dashboard/components/card/Card.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ const meta: Meta<typeof Card> = {
component: Card,
tags: ['autodocs'],
argTypes: {
icon: {
control: 'hidden'
}
icon: {}
}
};

Expand Down
4 changes: 1 addition & 3 deletions dashboard/components/card/CardSkeleton.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ const meta: Meta<typeof CardSkeleton> = {
component: CardSkeleton,
tags: ['autodocs'],
argTypes: {
icon: {
control: 'hidden'
}
icon: {}
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ const meta: Meta<typeof DashboardCloudMap> = {
component: DashboardCloudMap,
tags: ['autodocs'],
argTypes: {
data: {
control: 'hidden'
}
data: {}
}
};

Expand Down
4 changes: 1 addition & 3 deletions dashboard/components/empty-state/EmptyState.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ const meta: Meta<typeof EmptyState> = {
component: EmptyState,
tags: ['autodocs'],
argTypes: {
action: {
control: 'hide'
}
action: {}
}
};

Expand Down
4 changes: 1 addition & 3 deletions dashboard/components/error-state/ErrorState.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ const meta: Meta<typeof ErrorState> = {
component: ErrorState,
tags: ['autodocs'],
argTypes: {
action: {
control: 'hide'
}
action: {}
}
};

Expand Down
2 changes: 1 addition & 1 deletion dashboard/components/modal/Modal.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const meta: Meta<typeof Modal> = {
control: 'boolean'
},
children: {
control: 'string'
control: 'text'
}
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,8 @@ const meta: Meta<typeof SelectCheckbox> = {
component: SelectCheckbox,
tags: ['autodocs'],
argTypes: {
exclude: {
control: 'hidden'
},
setExclude: {
control: 'hidden'
}
exclude: {},
setExclude: {}
}
};

Expand Down
Loading

0 comments on commit 310687c

Please sign in to comment.