Skip to content

Commit

Permalink
Add due date to milestone table (#5170)
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinludu authored Feb 4, 2025
1 parent 8151543 commit 3daaf65
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/rewards/blocks/views.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ export function getProposalRewardsView({
view.fields.visiblePropertyIds = (board.fields.cardProperties as { id: string }[])
.map((p) => p.id)
.filter((id: string) => {
if (rewardTypes.includes('custom') && id === REWARD_CUSTOM_VALUE) {
if (rewardTypes.includes('custom') && (id === REWARD_CUSTOM_VALUE || id === DUE_DATE_ID)) {
return true;
} else if (rewardTypes.includes('token') && (id === REWARD_AMOUNT || id === REWARD_CHAIN)) {
} else if (rewardTypes.includes('token') && (id === REWARD_AMOUNT || id === REWARD_CHAIN || id === DUE_DATE_ID)) {
return true;
} else {
return !id.startsWith('__');
Expand All @@ -148,12 +148,12 @@ export function getProposalRewardsView({

view.fields.columnWidths = {
...view.fields.columnWidths,
[Constants.titleColumnId]: 300
[Constants.titleColumnId]: 250
};
// set larger than normal width for all custom properties
view.fields.visiblePropertyIds.forEach((id) => {
if (!view.fields.columnWidths[id]) {
view.fields.columnWidths[id] = 200;
view.fields.columnWidths[id] = 150;
}
});
return view;
Expand Down

0 comments on commit 3daaf65

Please sign in to comment.