Skip to content

Commit

Permalink
show deleted properties for milestones (#5179)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcasey authored Feb 12, 2025
1 parent e604abb commit c0ea1af
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ function TableHeader(props: Props): JSX.Element {
component='span'
variant='subtitle1'
sx={{
textDecoration: template.deletedAt ? 'line-through' : undefined,
textOverflow: 'ellipsis',
overflow: 'hidden',
whiteSpace: 'nowrap'
Expand Down
4 changes: 3 additions & 1 deletion lib/rewards/blocks/views.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,11 @@ export function getProposalRewardsView({
}) {
const view = getDefaultView({ spaceId });

const blockCreated = new Date(board.createdAt).toISOString();

// all custom properties are visible by default
view.fields.visiblePropertyIds = (board.fields.cardProperties as { id: string; deletedAt?: string }[])
.filter((p) => !p.deletedAt)
.filter((p) => !p.deletedAt || p.deletedAt > blockCreated)
.map((p) => p.id)
.filter((id: string) => {
if (rewardTypes.includes('custom') && (id === REWARD_CUSTOM_VALUE || id === DUE_DATE_ID)) {
Expand Down
15 changes: 15 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c0ea1af

Please sign in to comment.