Skip to content

Commit

Permalink
Move bucket settings to a separate page (#4122)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexei Mochalov <[email protected]>
  • Loading branch information
fiskus and nl0 authored Sep 13, 2024
1 parent e05f3d9 commit 22455cd
Show file tree
Hide file tree
Showing 8 changed files with 1,564 additions and 788 deletions.
1 change: 1 addition & 0 deletions catalog/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ where verb is one of

## Changes

- [Changed] Admin: Move bucket settings to a separate page ([#4122](https://github.com/quiltdata/quilt/pull/4122))
- [Changed] Athena: always show catalog name, simplify setting execution context ([#4123](https://github.com/quiltdata/quilt/pull/4123))
- [Added] Support `ui.actions.downloadObject` and `ui.actions.downloadPackage` options for configuring visibility of download buttons under "Bucket" and "Packages" respectively ([#4111](https://github.com/quiltdata/quilt/pull/4111))
- [Added] Bootstrap the change log ([#4112](https://github.com/quiltdata/quilt/pull/4112))
16 changes: 14 additions & 2 deletions catalog/app/constants/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,11 +262,23 @@ export const admin: Route = {

export const adminUsers = admin

export type AdminBucketsArgs = [bucket: string]
export type AdminBucketsArgs = [
options?: {
add?: boolean
bucket?: string /* @deprecated legacy param */
},
]

export const adminBuckets: Route<AdminBucketsArgs> = {
path: '/admin/buckets',
url: (bucket) => `/admin/buckets${mkSearch({ bucket })}`,
url: ({ add, bucket } = {}) => `/admin/buckets${mkSearch({ add, bucket })}`,
}

export type AdminBucketEditArgs = [bucket: string]

export const adminBucketEdit: Route<AdminBucketEditArgs> = {
path: '/admin/buckets/:bucketName',
url: (bucketName) => `/admin/buckets/${bucketName}`,
}

export const adminSettings: Route = {
Expand Down
8 changes: 4 additions & 4 deletions catalog/app/containers/Admin/Admin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default function Admin() {

const sections = {
users: { path: paths.adminUsers, exact: true },
buckets: { path: paths.adminBuckets, exact: true },
buckets: { path: paths.adminBuckets },
sync: { path: paths.adminSync, exact: true },
settings: { path: paths.adminSettings, exact: true },
status: { path: paths.adminStatus, exact: true },
Expand All @@ -105,9 +105,6 @@ export default function Admin() {
<RR.Route path={paths.adminUsers} exact strict>
<UsersAndRoles />
</RR.Route>
<RR.Route path={paths.adminBuckets} exact>
<Buckets />
</RR.Route>
{cfg.desktop && (
<RR.Route path={paths.adminSync} exact>
<Sync />
Expand All @@ -119,6 +116,9 @@ export default function Admin() {
<RR.Route path={paths.adminStatus} exact>
<Status />
</RR.Route>
<RR.Route path={paths.adminBuckets}>
<Buckets />
</RR.Route>
<RR.Route>
<ThrowNotFound />
</RR.Route>
Expand Down
Loading

0 comments on commit 22455cd

Please sign in to comment.