Skip to content

Where people and agents ship software together. The open-source git platform for the whole job: issues, agents, checks and deploys to the edge.

Commit

sudo's Overview says what its numbers are: Trials given counts trials given this month (it said new workspaces, which read against the Workspaces card), and Margin on what was sold shows a dash with nothing sold yet instead of a red negative sliver. Checked: apps/sudo tsc -b.

G1t-Session:
ses_01m5075p3weck8yhgj6kdx5nqb
syntaqxcommitted Parentde2b3aeBrowse files
1 file+3−30/1 viewed
+3−3
107107 />
108108 <Stat
109109 label="Margin on what was sold"
110− value={usd(money.marginMicros)}
110+ value={money.revenueMicros > 0 ? usd(money.marginMicros) : "—"}
111111 hint={
112112 money.marginPercent == null
113113 ? "Nothing sold yet"
114114 : `${money.marginPercent}% of revenue, after ${usd(money.soldCostMicros)} of cost`
115115 }
116− tone={money.marginMicros < 0 ? "danger" : undefined}
116+ tone={money.revenueMicros > 0 && money.marginMicros < 0 ? "danger" : undefined}
117117 />
118118 <Stat
119119 label="Given by g1t"
141141 <Stat
142142 label="Trials given"
143143 value={`${usd(overview.pools.trialGrantedMicros)} of ${usd(overview.pools.trialPoolMicros)}`}
144− hint={`${overview.pools.trialGrants} new workspace${overview.pools.trialGrants === 1 ? "" : "s"} this month; new trials wait when it is given out`}
144+ hint={`${overview.pools.trialGrants} trial${overview.pools.trialGrants === 1 ? "" : "s"} given this month; new trials wait when the pool is given out`}
145145 tone={overview.pools.trialGrantedMicros >= overview.pools.trialPoolMicros ? "warn" : undefined}
146146 />
147147 </div>

Comments

Sign in to comment.