Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update preprod with filter unchecked fix and preprod branch protection #105

Merged
merged 32 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
85455d2
Merge pull request #1 from RealT-Community/develop
Sigri44 Jul 6, 2023
c360b1c
Merge pull request #6 from RealT-Community/develop
Kurtisone Jul 17, 2023
cddc66a
Merge pull request #22 from RealT-Community/develop
jycssu-com Nov 22, 2023
30e34dc
Merge pull request #23 from RealT-Community/develop
jycssu-com Nov 22, 2023
8331423
Merge pull request #24 from RealT-Community/develop
jycssu-com Nov 23, 2023
039d0e6
Merge pull request #30 from RealT-Community/develop
jycssu-com Dec 10, 2023
bbe571f
Merge pull request #37 from RealT-Community/develop
jycssu-com Feb 17, 2024
a9066ca
Merge pull request #39 from RealT-Community/develop
jycssu-com Mar 25, 2024
7540c64
Merge pull request #52 from RealToken-Community/develop
AlexRLT Jul 4, 2024
8378c86
Merge pull request #56 from RealToken-Community/master
AlexRLT Jul 13, 2024
13d097e
Revert "Master"
AlexRLT Jul 13, 2024
7704a72
Merge pull request #57 from RealToken-Community/revert-56-master
AlexRLT Jul 13, 2024
10767fe
Merge branch 'develop' into preprod
jycssu-com Jul 15, 2024
e304ef6
Merge branch 'develop' into preprod
jycssu-com Jul 17, 2024
92dd014
Merge pull request #59 from RealToken-Community/preprod
jycssu-com Jul 17, 2024
9e00655
Merge pull request #66 from RealToken-Community/develop
AlexRLT Aug 25, 2024
3f46b2d
merge preprod <> master (#67)
AlexRLT Aug 25, 2024
8ba6b9a
Merge pull request #71 from RealToken-Community/develop
AlexRLT Aug 26, 2024
072a3c7
Merge pull request #76 from RealToken-Community/develop
AlexRLT Aug 30, 2024
3fca9df
Merge branch 'master' into preprod
NandyBa Aug 31, 2024
68daad5
merge preprod <> master (#77)
AlexRLT Aug 31, 2024
158465f
Revert "merge preprod <> master (#77)"
NandyBa Aug 31, 2024
ed61a4c
Merge pull request #80 from RealToken-Community/revert-77-preprod
AlexRLT Aug 31, 2024
2d6bbf3
Merge pull request #81 from RealToken-Community/develop
AlexRLT Sep 1, 2024
80f8e5a
fix: APY fully rented for properties before start rent day (#85)
NandyBa Sep 1, 2024
2f930b5
Merge pull request #86 from RealToken-Community/preprod
AlexRLT Sep 1, 2024
d8628cb
Merge pull request #88 from RealToken-Community/develop
jycssu-com Oct 23, 2024
1d73c53
Change NS for RealToken (#89) (#90)
Sigri44 Oct 24, 2024
77880df
fix: unchecked asset filters (#95)
NandyBa Dec 18, 2024
7f35422
merge master in develop (#103)
NandyBa Dec 18, 2024
68dfdcf
Merge branch 'master' into develop
NandyBa Dec 18, 2024
0d7f8fe
feat: restrict merges to preprod (#104)
NandyBa Dec 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/branch-check-preprod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Restrict merges to preprod

on:
pull_request:
branches:
- preprod

jobs:
check-branch:
runs-on: ubuntu-latest
steps:
- name: Check if the source branch is develop
run: |
if [ "${{ github.event.pull_request.head.ref }}" != "develop" ]; then
echo "Pull requests to preprod must come from develop branch."
exit 1
fi
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useTranslation } from 'react-i18next'

import { Select } from '@mantine/core'

import { assetsViewDefaultFilter } from 'src/states'
import {
OtherRealtoken,
UserRealtoken,
Expand Down Expand Up @@ -50,7 +51,11 @@ export const AssetsViewRentStatusFilter: FC<
data={viewOptions}
value={filter.rentStatus}
onChange={(value) =>
onChange({ rentStatus: value as AssetRentStatusType })
onChange({
rentStatus:
(value as AssetRentStatusType) ??
assetsViewDefaultFilter.rentStatus,
})
}
classNames={inputClasses}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useTranslation } from 'react-i18next'

import { Select } from '@mantine/core'

import { assetsViewDefaultFilter } from 'src/states'
import {
OtherRealtoken,
UserRealtoken,
Expand Down Expand Up @@ -46,7 +47,12 @@ export const AssetsViewRmmStatusFilter: FC<AssetsViewRmmStatusFilterProps> = ({
label={t('label')}
data={viewOptions}
value={filter.rmmStatus}
onChange={(value) => onChange({ rmmStatus: value as AssetRmmStatusType })}
onChange={(value) =>
onChange({
rmmStatus:
(value as AssetRmmStatusType) ?? assetsViewDefaultFilter.rmmStatus,
})
}
classNames={inputClasses}
/>
)
Expand Down
7 changes: 6 additions & 1 deletion src/components/assetsView/filters/AssetsViewSort.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { useSelector } from 'react-redux'

import { Grid, Select, Switch } from '@mantine/core'

import { assetsViewDefaultFilter } from 'src/states'
import { selectTransfersIsLoaded } from 'src/store/features/transfers/transfersSelector'
import {
OtherRealtoken,
Expand Down Expand Up @@ -73,7 +74,11 @@ export const AssetsViewSort: FC<AssetsViewSortProps> = ({
data={sortOptions}
value={filter.sortBy}
onChange={(value) =>
onChange({ ...filter, sortBy: value as AssetSortType })
onChange({
...filter,
sortBy:
(value as AssetSortType) ?? assetsViewDefaultFilter.sortBy,
})
}
classNames={inputClasses}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useTranslation } from 'react-i18next'

import { Select } from '@mantine/core'

import { assetsViewDefaultFilter } from 'src/states'
import {
OtherRealtoken,
UserRealtoken,
Expand Down Expand Up @@ -66,7 +67,12 @@ export const AssetsViewSubsidyFilter: FC<AssetsViewSubsidyFilterProps> = ({
label={t('label')}
data={viewOptions}
value={filter.subsidy}
onChange={(value) => onChange({ subsidy: value as AssetSubsidyType })}
onChange={(value) =>
onChange({
subsidy:
(value as AssetSubsidyType) ?? assetsViewDefaultFilter.subsidy,
})
}
classNames={inputClasses}
/>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useTranslation } from 'react-i18next'

import { Select } from '@mantine/core'

import { assetsViewDefaultFilter } from 'src/states'
import {
OtherRealtoken,
UserRealtoken,
Expand Down Expand Up @@ -54,7 +55,11 @@ export const AssetsViewUserProtocolFilter: FC<
data={viewOptions}
value={filter.userProtocol}
onChange={(value) =>
onChange({ userProtocol: value as AssetUserProtocolType })
onChange({
userProtocol:
(value as AssetUserProtocolType) ??
assetsViewDefaultFilter.userProtocol,
})
}
classNames={inputClasses}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useTranslation } from 'react-i18next'

import { Select } from '@mantine/core'

import { assetsViewDefaultFilter } from 'src/states'
import {
OtherRealtoken,
UserRealtoken,
Expand Down Expand Up @@ -58,7 +59,11 @@ export const AssetsViewUserStatusFilter: FC<
data={viewOptions}
value={filter.userStatus}
onChange={(value) =>
onChange({ userStatus: value as AssetUserStatusType })
onChange({
userStatus:
(value as AssetUserStatusType) ??
assetsViewDefaultFilter.userStatus,
})
}
classNames={inputClasses}
/>
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useFullyRentedAPR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ const fullyRentedAPREstimation = (
return getVEFAFullRentedAPR(token, rentCalculation)
}

// Case of fully rented property
if (token.rentedUnits === token.totalUnits) {
// Case of fully rented property
return token.annualPercentageYield
}

Expand Down
Loading