Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/app/src/pages/Licenses.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function ClusterHalf({license, cs}: {license: License; cs: ClusterState}) {
body = (
<div className="cluster-grid">
<div className="cluster-name">
Cluster <span className="mono cluster-id">{c.id_short}</span>
<span className="mono cluster-id">{c.id_short}</span>
</div>
<div className="mono cluster-sub cluster-last">
<LastSeen unix={c.last_seen} skewMs={cs.skewMs} />
Expand Down Expand Up @@ -170,7 +170,7 @@ function LicenseCard({
Pro <span className={`badge badge-${st.tone}`}>{st.label}</span>
</p>
<p className="small muted">
Free during early access · {license.status === 'expired' ? 'ended' : 'ends'} {fmtDate(license.expires_at)}
{license.status === 'expired' ? 'Ended' : 'Ends'} {fmtDate(license.expires_at)}
</p>
</div>
<div className="key-row" role="group" aria-label="Key actions">
Expand Down
2 changes: 1 addition & 1 deletion apps/app/src/test/licenses.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ describe('/licenses', () => {
const first = await screen.findByRole('region', {name: 'License lic_1'});
expect(within(first).getByText(/KW1-••••••f3a9Qk/)).toBeInTheDocument();
expect(within(first).getByText('active')).toBeInTheDocument();
expect(within(first).getByText(/Free during early access · ends/)).toBeInTheDocument();
expect(within(first).getByText(/^Ends /)).toBeInTheDocument();
expect(within(await screen.findByRole('group', {name: 'Cluster for license lic_1'})).getByText('7c1e04ab')).toBeInTheDocument();
const second = screen.getByRole('region', {name: 'License lic_2'});
expect(within(second).getByText(/Not attached yet/)).toBeInTheDocument();
Expand Down
Loading