-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #96 from ar-io/develop
Release v1.2.0 to Production
- Loading branch information
Showing
21 changed files
with
1,150 additions
and
892 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [Unreleased] | ||
|
||
## [1.2.0] - 2024-10-17 | ||
|
||
### Added | ||
|
||
* “Reported On” and “Reported On By” cards on Gateway Details page for viewing observation status by epoch for a gateway | ||
* “Software” card on gateway details page that shows gateway software version and available bundlers (if gateway has listed them) | ||
|
||
### Changed | ||
|
||
* Updated Gateway Details page for leaving gateways to hide non-relevant cards and show leave date | ||
|
||
|
||
## [1.1.0] - 2024-10-08 | ||
|
||
### Added | ||
|
||
* Gateways > Reports: Add “AR.IOEpoch #” Column | ||
* Gateways>Reports>Individual Reports | ||
* Add Epoch # | ||
* Remove Epoch start height | ||
* Implemented Leave Network Flow: | ||
* Adds button to Gateway Detail page to leave network when gateway shown is the user’s own gateway | ||
* Hitting Leave shows a modal with information. User has to type “LEAVE NETWORK” before Leave Network button is enabled. | ||
* Hitting Leave Network button initiates signature request and then a success message. | ||
* Site is refreshed after leaving. | ||
* Release version shown on sidebar | ||
|
||
|
||
### Changed | ||
|
||
* Gateway Details: rename “Reward Ratios” to “Performance Ratios” | ||
* Gateway Details: Fixes text bubble cut off when copying wallet address | ||
|
||
### Fixed | ||
|
||
* Gateway Details: Remove Edit and Stake Buttons from gateways that are leaving | ||
|
||
## [1.0.0] | ||
|
||
* Initial versions of application; version was bumped to 1.1.0 for first public versioned release. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { ChevronDownIcon } from './icons'; | ||
|
||
const Dropdown = ({ | ||
options, | ||
onChange, | ||
value, | ||
}: { | ||
options: { label: string; value: string }[]; | ||
onChange: (e: React.ChangeEvent<HTMLSelectElement>) => void; | ||
value: string; | ||
}) => { | ||
return ( | ||
<div className="relative w-fit min-w-fit"> | ||
<select | ||
className="cursor-pointer appearance-none rounded-xl bg-transparent py-4 pl-4 pr-10 text-mid outline-none" | ||
onChange={onChange} | ||
value={value} | ||
> | ||
{options.map((option, index) => { | ||
return ( | ||
<option key={index} value={option.value}> | ||
{option.label} | ||
</option> | ||
); | ||
})} | ||
</select> | ||
<div | ||
className="pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 rounded-lg border border-grey-1100 bg-containerL3 bg-gradient-to-b | ||
from-[rgba(102,102,102,0.06)] to-[rgba(0,0,0,0.06)] p-1 shadow-inner shadow-grey-600" | ||
> | ||
<ChevronDownIcon className="pointer-events-none size-4 text-mid" /> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Dropdown; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { useGlobalState } from '@src/store'; | ||
import { getEpoch } from '@src/store/db'; | ||
import { useQuery } from '@tanstack/react-query'; | ||
|
||
/** Returns last 14 epochs */ | ||
const useEpochs = () => { | ||
const arIOReadSDK = useGlobalState((state) => state.arIOReadSDK); | ||
const startEpoch = useGlobalState((state) => state.currentEpoch); | ||
|
||
const queryResults = useQuery({ | ||
queryKey: ['epochs'], | ||
queryFn: async () => { | ||
if (!arIOReadSDK || startEpoch === undefined) { | ||
throw new Error('arIOReadSDK or startEpoch not available'); | ||
} | ||
|
||
const additionalEpochs = await Promise.all( | ||
Array.from({ length: 13 }, (_, index) => startEpoch.epochIndex - index - 1) | ||
.map(epochIndex => getEpoch(arIOReadSDK, epochIndex)) | ||
); | ||
|
||
return [startEpoch, ...additionalEpochs.filter(e => e !== undefined)]; | ||
}, | ||
}); | ||
|
||
return queryResults; | ||
}; | ||
|
||
export default useEpochs; |
Oops, something went wrong.