Skip to content

Commit

Permalink
Merge pull request #228 from stellar/release/3.4.0
Browse files Browse the repository at this point in the history
Release `3.4.0` to `main`
  • Loading branch information
marcelosalloum authored Feb 3, 2025
2 parents 769b698 + 3bbd0bf commit 4a9191a
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker_image_public_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push to DockerHub (release prd)
uses: docker/build-push-action@v6.11.0
uses: docker/build-push-action@v6.13.0
with:
push: true
build-args: |
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
$GITHUB_OUTPUT

- name: Build and push to DockerHub (develop branch)
uses: docker/build-push-action@v6.11.0
uses: docker/build-push-action@v6.13.0
with:
push: true
build-args: |
Expand Down
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,23 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

> Place unreleased changes here.
## [3.4.0](https://github.com/stellar/stellar-disbursement-platform-frontend/releases/tag/3.4.0) ([diff](https://github.com/stellar/stellar-disbursement-platform-frontend/compare/3.3.0...3.4.0))

> [!WARNING] This version is only compatible with the
> [stellar/stellar-disbursement-platform-backend] version `3.4.0`.
### Added

- Support for the `q` query param in the Payments page.
[#225](https://github.com/stellar/stellar-disbursement-platform-frontend/pull/225)

### Security and Dependencies

- Bump webpack-dev.
[#226](https://github.com/stellar/stellar-disbursement-platform-frontend/pull/226)
- Bump docker/build-push-action.
[#215](https://github.com/stellar/stellar-disbursement-platform-frontend/pull/215)

## [3.3.0](https://github.com/stellar/stellar-disbursement-platform-frontend/releases/tag/3.3.0) ([diff](https://github.com/stellar/stellar-disbursement-platform-frontend/compare/3.2.0...3.3.0))

> [!WARNING] This version is only compatible with the
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stellar-disbursement-platform-frontend",
"version": "3.3.0",
"version": "3.4.0",
"license": "Apache-2.0",
"engines": {
"node": ">=20.x"
Expand Down
18 changes: 8 additions & 10 deletions src/pages/Payments.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export const Payments = () => {
// Using extra param to trigger API call when we want, not on every filter
// state change
const [queryFilters, setQueryFilters] = useState<CommonFilters>({});
const [searchQuery, setSearchQuery] = useState<{ q: string } | undefined>();

const {
data: payments,
Expand All @@ -41,19 +42,17 @@ export const Payments = () => {
page: currentPage.toString(),
page_limit: pageLimit.toString(),
...queryFilters,
...searchQuery,
});

const isFiltersSelected =
Object.values(filters).filter((v) => Boolean(v)).length > 0;

const maxPages = payments?.pagination?.pages || 1;

const handleSearchSubmit = () => {
alert("TODO: search submit");
};

const handleSearchClear = () => {
alert("TODO: search clear");
const handleSearchChange = (searchText?: string) => {
setCurrentPage(1);
setSearchQuery(searchText ? { q: searchText } : undefined);
};

const handleFilterChange = (
Expand Down Expand Up @@ -121,11 +120,10 @@ export const Payments = () => {
<div className="FiltersWithSearch__search">
<SearchInput
id="payments-search"
placeholder="Search by payment ID"
onSubmit={handleSearchSubmit}
onClear={handleSearchClear}
placeholder="Search payment info"
onSubmit={handleSearchChange}
onClear={handleSearchChange}
isLoading={isSearchInProgress}
disabled
/>
</div>

Expand Down

0 comments on commit 4a9191a

Please sign in to comment.