|
5 | 5 | */ |
6 | 6 |
|
7 | 7 | import { useCallback, useEffect, useMemo, useState } from "react"; |
8 | | -import { useHistory } from "react-router-dom"; |
| 8 | +import { Link, useHistory } from "react-router-dom"; |
9 | 9 | import { useQueryParams } from "../../hooks/use-query-params"; |
10 | 10 | import { PrebuildListEmptyState } from "./PrebuildListEmptyState"; |
11 | 11 | import { PrebuildListErrorState } from "./PrebuildListErrorState"; |
@@ -175,21 +175,33 @@ export const PrebuildsList = ({ initialFilter, organizationId, hideOrgSpecificCo |
175 | 175 | {isLoading && <LoadingState />} |
176 | 176 |
|
177 | 177 | {showTable && ( |
178 | | - <PrebuildsTable |
179 | | - prebuilds={prebuilds} |
180 | | - // we check isPreviousData too so we don't show spinner if it's a background refresh |
181 | | - isSearching={isFetching && isPreviousData} |
182 | | - isFetchingNextPage={isFetchingNextPage} |
183 | | - hasNextPage={!!hasNextPage} |
184 | | - filter={filter} |
185 | | - sort={sort} |
186 | | - hasMoreThanOnePage={hasMoreThanOnePage} |
187 | | - hideOrgSpecificControls={!!hideOrgSpecificControls} |
188 | | - onLoadNextPage={() => fetchNextPage()} |
189 | | - onFilterChange={handleFilterChange} |
190 | | - onSort={handleSort} |
191 | | - onTriggerPrebuild={() => setShowRunPrebuildModal(true)} |
192 | | - /> |
| 178 | + <> |
| 179 | + <PrebuildsTable |
| 180 | + prebuilds={prebuilds} |
| 181 | + // we check isPreviousData too so we don't show spinner if it's a background refresh |
| 182 | + isSearching={isFetching && isPreviousData} |
| 183 | + isFetchingNextPage={isFetchingNextPage} |
| 184 | + hasNextPage={!!hasNextPage} |
| 185 | + filter={filter} |
| 186 | + sort={sort} |
| 187 | + hasMoreThanOnePage={hasMoreThanOnePage} |
| 188 | + hideOrgSpecificControls={!!hideOrgSpecificControls} |
| 189 | + onLoadNextPage={() => fetchNextPage()} |
| 190 | + onFilterChange={handleFilterChange} |
| 191 | + onSort={handleSort} |
| 192 | + onTriggerPrebuild={() => setShowRunPrebuildModal(true)} |
| 193 | + /> |
| 194 | + <div className="flex justify-center mt-4"> |
| 195 | + <span className="text-pk-content-secondary text-xs max-w-md text-center"> |
| 196 | + Looking for older prebuilds? Prebuilds are garbage-collected if no workspace is started from |
| 197 | + them within seven days. To view records of older prebuilds, please refer to the{" "} |
| 198 | + <Link to={"/usage"} className="gp-link"> |
| 199 | + usage report |
| 200 | + </Link> |
| 201 | + . |
| 202 | + </span> |
| 203 | + </div> |
| 204 | + </> |
193 | 205 | )} |
194 | 206 |
|
195 | 207 | {showRunPrebuildModal && ( |
|
0 commit comments