Pull request
import { PullRequestCard, PullRequestChip, pullRequestStateWord, pullRequestChipWord, shortHash } from "@arcadia/ui";Refresh the session on start #128Open
feat/session-refresh to main 3 commits 128 lines added, 36 removed
- Rename the refresh token helper
- Read the session before it expires
- Rotate the key on start
- Move the refresh after the rotation
Merge into main 3 conflicts
Grace Hopper changed the same lines in main
src/server/session.ts src/server/auth.ts
#128 3 conflicts
PullRequestCard
numberrequired- number
- The pull request's number, drawn after a hash.
titlerequired- string
- Its title, one line; a longer one ends with an ellipsis, the whole title on hover.
staterequired- "creating" | "draft" | "open" | "resolving" | "merged" | "closed"
- Its state: the pill at the header's end says it and the graph draws it.
headrequired- string
- The branch it comes from.
baserequired- string
- The branch it merges into.
commitsrequired- readonly PullRequestCommit[]
- Its commits, oldest first as the graph reads; a commit on the base carries
branch={base}. diff- { additions: number; deletions: number }
- The change's lines, from git's diff stat.
conflicts- { count?: number; by?: string; files: readonly string[] }
- Its conflicts with the base, when there are any.
action- { label: string; onClick: () => void }
- The card's one action, offered while the pull request is open or a draft ("Ready for review").
ended- { at?: string; branchDeleted?: boolean }
- How it merged or closed: when, and whether the head branch was deleted.
checks- ReactNode
- Its checks on the head commit, at the end of the merge row: the kit's ChecksChip, or a ChecksPopover that opens them.
stateLabel- string
- The pill's word for the state, when the product's own differs from the kit's.
leading- IconName | ReactNode
- A status glyph name or node before the title: it starts on the card's text edge, and the title after it stands on the commits' text.
rootStyle- RootStyle
- Where the card sits; its width is the product's.
Rest props go to HTMLAttributes<HTMLDivElement>.
numberrequired- number
- The pull request's number, drawn after a hash.
staterequired- "creating" | "draft" | "open" | "resolving" | "merged" | "closed"
- Its state.
conflicts- number
- Default:
0 - Its conflicts while it is open or a draft: the chip says them instead of its state.
stateLabel- string
- The state's word, when the product's own differs from the kit's.
onClick- () => void
- Opens the card, as a composer's chip does. Renders a button; without it, a chip of words.
rootStyle- RootStyle
- Where the chip sits.
Rest props go to HTMLAttributes<HTMLSpanElement>.
State machine
Check the release build #128Open
feat/release to main 1 commit 24 lines added, 6 removed
- Check the build
Merge into main