-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## UI Usability Changes This PR performs a handful of improvements, fixes and changes across the board for our UI. ### Create Mirror Page - Moves `Snapshot Number of Tables In Parallel` , `CDC Staging Path` ,`Snapshot Staging Path` to **Advanced Settings** - Publication name is now a dropdown field and is mandatory. - Table picker now shows the size of every table <img width="1491" alt="Screenshot 2024-03-10 at 6 59 42 PM" src="https://github.com/PeerDB-io/peerdb/assets/65964360/bb67d946-1445-44e4-a076-6822ae2d6964"> <img width="1240" alt="Screenshot 2024-03-10 at 6 01 11 PM" src="https://github.com/PeerDB-io/peerdb/assets/65964360/2107f5e3-7973-4d21-be13-c7b0fe4eea81"> ### Edit Mirror Page - Added a banner regarding adding tables. This banner pops up only when atleast one table has been selected for addition. - Made Edit and Back button float to reduce scrolling hassle <img width="1491" alt="Screenshot 2024-03-10 at 6 59 20 PM" src="https://github.com/PeerDB-io/peerdb/assets/65964360/94fbffdb-3cf9-4964-9fd1-bc31d18de092"> ### Create Peer Pages - Dropdown now has options for RDS, Azure and GCP - Errors now show in toast bars - Added link to corresponding PeerDB doc. <img width="1016" alt="Screenshot 2024-03-10 at 7 46 11 PM" src="https://github.com/PeerDB-io/peerdb/assets/65964360/c0cb59ca-c34e-4a33-871c-7865df75989a"> <img width="557" alt="Screenshot 2024-03-10 at 7 46 30 PM" src="https://github.com/PeerDB-io/peerdb/assets/65964360/481e9a7c-17ce-4416-90c3-7929a6adc63f">
- Loading branch information
1 parent
5970cc0
commit 9757a31
Showing
24 changed files
with
342 additions
and
105 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
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,22 @@ | ||
import { UPublicationsResponse } from '@/app/dto/PeersDTO'; | ||
import { PeerPublicationsResponse } from '@/grpc_generated/route'; | ||
import { GetFlowHttpAddressFromEnv } from '@/rpc/http'; | ||
|
||
export async function POST(request: Request) { | ||
const body = await request.json(); | ||
const { peerName } = body; | ||
const flowServiceAddr = GetFlowHttpAddressFromEnv(); | ||
try { | ||
const publicationList: PeerPublicationsResponse = await fetch( | ||
`${flowServiceAddr}/v1/peers/publications?peer_name=${peerName}` | ||
).then((res) => { | ||
return res.json(); | ||
}); | ||
let response: UPublicationsResponse = { | ||
publicationNames: publicationList.publicationNames, | ||
}; | ||
return new Response(JSON.stringify(response)); | ||
} catch (e) { | ||
console.log(e); | ||
} | ||
} |
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
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
Oops, something went wrong.