mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 15:39:13 +00:00
| # | Branch | Base | | - | ------ | ---- | | 1 | `feat/storage-versioning-private-alpha` — merged | `master` | | 2 | `feat/storage-versioning/002-bucket-form-fields` | `master` | | 3 | `feat/storage-versioning/003-bucket-modals` | 2 | | 4 | `feat/storage-versioning/004-object-versions-data` ◀ | 3 | | 5 | `feat/storage-versioning/005-file-preview-versions` | 4 | | 6 | `feat/storage-versioning/006-billing-storage-retention` | 5 | | 7 | `feat/storage-versioning/007-archived-objects-data` | 6 | | 8 | `feat/storage-versioning/008-archived-rows` | 7 | | 9 | `feat/storage-versioning/009-archived-preview-pane` | 8 | | 10 | `feat/storage-versioning/010-replace-file` | 9 | ## [4/10] Storage object versioning: object versions data layer **Base:** `feat/storage-versioning/003-bucket-modals` (PR 3) ### This PR The query and mutation hooks for the version history UI, written to `queryOptions` using the real Storage endpoints. - `object-versions-query.ts` — the version list, plus `ObjectVersion` and `LifecyclePolicy` - `object-version-restore-mutation.ts` — promote a noncurrent version to current - `object-version-delete-mutation.ts` — remove one specific version - `object-purge-mutation.ts` — delete an object and every version, bypassing versioning - `VersionHistory.utils.ts` — `computeVersionFate`, the pure rule deciding what removal outlook each version row shows - `BroomSparklesIcon.tsx` — inline SVG for a glyph absent from lucide-react 0.436 Easier to test directly from next PR in the stack #49208 which wires the queries to the real file preview panel ui. --------- Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
41 lines
1.3 KiB
TypeScript
41 lines
1.3 KiB
TypeScript
import { forwardRef, type SVGAttributes } from 'react'
|
|
|
|
interface BroomSparklesIconProps extends Omit<SVGAttributes<SVGSVGElement>, 'children'> {
|
|
size?: number | string
|
|
}
|
|
|
|
/**
|
|
* Inline copy of Lucide's `broom-sparkles`, which the pinned `lucide-react` predates.
|
|
* Takes a `size` prop and strokes in `currentColor`, so it drops in like any Lucide icon.
|
|
*/
|
|
export const BroomSparklesIcon = forwardRef<SVGSVGElement, BroomSparklesIconProps>(
|
|
({ size = 16, className, ...props }, ref) => (
|
|
<svg
|
|
ref={ref}
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
width={size}
|
|
height={size}
|
|
viewBox="0 0 24 24"
|
|
fill="none"
|
|
stroke="currentColor"
|
|
strokeWidth={2}
|
|
strokeLinecap="round"
|
|
strokeLinejoin="round"
|
|
className={className}
|
|
{...props}
|
|
>
|
|
<path d="M11 2v2" />
|
|
<path d="M12 3h-2" />
|
|
<path d="M13.5 10.5 22 2" />
|
|
<path d="M14.734 13.841a2 2 0 00-.314-2.42L12.58 9.58a2 2 0 00-2.421-.314l-7.657 4.461A1 1 0 002.3 15.3l6.403 6.403a1 1 0 001.571-.204z" />
|
|
<path d="M20 15v4" />
|
|
<path d="M22 17h-4" />
|
|
<path d="M4 4v4" />
|
|
<path d="m5 18 2-2" />
|
|
<path d="M6 6H2" />
|
|
<path d="m7.699 10.7 5.602 5.601" />
|
|
</svg>
|
|
)
|
|
)
|
|
BroomSparklesIcon.displayName = 'BroomSparklesIcon'
|