Fixed timeline icon
Deploy / deploy-dev (push) Successful in 2m9s
Deploy / deploy-prod (push) Has been skipped

This commit is contained in:
Corey Blais
2026-06-30 12:16:31 -04:00
parent 7ef20ab0fb
commit 0dfacc0d17
2 changed files with 5 additions and 42 deletions
+5 -23
View File
@@ -267,7 +267,6 @@ type BirdTimelineEvent = {
type BirdTimelineEventFormState = { type BirdTimelineEventFormState = {
eventType: 'location_updated' | 'owner_changed' | 'manual_note'; eventType: 'location_updated' | 'owner_changed' | 'manual_note';
ownerChanged: boolean;
eventDate: string; eventDate: string;
locationLabel: string; locationLabel: string;
locationDetails: VerifiedLocationDetails; locationDetails: VerifiedLocationDetails;
@@ -868,7 +867,6 @@ const emptyBirdForm: BirdFormState = {
const emptyBirdTimelineEventForm: BirdTimelineEventFormState = { const emptyBirdTimelineEventForm: BirdTimelineEventFormState = {
eventType: 'location_updated', eventType: 'location_updated',
ownerChanged: false,
eventDate: new Date().toISOString().slice(0, 10), eventDate: new Date().toISOString().slice(0, 10),
locationLabel: '', locationLabel: '',
locationDetails: emptyVerifiedLocationDetails, locationDetails: emptyVerifiedLocationDetails,
@@ -4002,7 +4000,7 @@ function App() {
setSavingBirdTimelineEvent(true); setSavingBirdTimelineEvent(true);
try { try {
const eventType = birdTimelineEventForm.ownerChanged ? 'owner_changed' : birdTimelineEventForm.eventType; const eventType = birdTimelineEventForm.eventType;
const verifiedLocationLabel = formatVerifiedLocationLabel(birdTimelineEventForm.locationDetails); const verifiedLocationLabel = formatVerifiedLocationLabel(birdTimelineEventForm.locationDetails);
const locationLabel = const locationLabel =
birdTimelineEventForm.eventType === 'location_updated' birdTimelineEventForm.eventType === 'location_updated'
@@ -7233,9 +7231,9 @@ function App() {
aria-label="Timeline" aria-label="Timeline"
title="Timeline" title="Timeline"
> >
<span className="material-symbols-outlined timeline-tab-icon" aria-hidden="true"> <svg className="timeline-tab-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
timeline <path d="M21 6a2 2 0 0 0-1.93 2.51l-3.55 3.56A2.15 2.15 0 0 0 15 12c-.18 0-.36.02-.52.07l-2.55-2.55c.05-.16.07-.34.07-.52a2 2 0 1 0-4 0c0 .18.02.36.07.52l-4.56 4.55A2.03 2.03 0 0 0 3 14a2 2 0 1 0 1.93 1.49l4.55-4.56c.16.05.34.07.52.07s.36-.02.52-.07l2.55 2.55c-.05.16-.07.34-.07.52a2 2 0 1 0 4 0c0-.18-.02-.36-.07-.52l3.56-3.55A2 2 0 1 0 21 6Z" />
</span> </svg>
</button> </button>
<button <button
className={`bird-detail-tab ${selectedBirdTab === 'audit' ? 'active' : ''}`} className={`bird-detail-tab ${selectedBirdTab === 'audit' ? 'active' : ''}`}
@@ -7971,7 +7969,6 @@ function App() {
setBirdTimelineEventForm({ setBirdTimelineEventForm({
...birdTimelineEventForm, ...birdTimelineEventForm,
eventType, eventType,
ownerChanged: eventType === 'location_updated' ? birdTimelineEventForm.ownerChanged : false,
locationLabel: eventType === 'owner_changed' ? '' : birdTimelineEventForm.locationLabel, locationLabel: eventType === 'owner_changed' ? '' : birdTimelineEventForm.locationLabel,
locationDetails: locationDetails:
eventType === 'owner_changed' ? emptyVerifiedLocationDetails : birdTimelineEventForm.locationDetails, eventType === 'owner_changed' ? emptyVerifiedLocationDetails : birdTimelineEventForm.locationDetails,
@@ -8019,21 +8016,6 @@ function App() {
}} }}
/> />
) : null} ) : null}
{birdTimelineEventForm.eventType === 'location_updated' ? (
<label className="checkbox-row">
<input
type="checkbox"
checked={birdTimelineEventForm.ownerChanged}
onChange={(event) =>
setBirdTimelineEventForm({ ...birdTimelineEventForm, ownerChanged: event.target.checked })
}
/>
<span>
<strong>Owner changed</strong>
<small>Records a change without owner names.</small>
</span>
</label>
) : null}
<label className="wide-field"> <label className="wide-field">
Note Note
<textarea <textarea
@@ -8041,7 +8023,7 @@ function App() {
value={birdTimelineEventForm.note} value={birdTimelineEventForm.note}
onChange={(event) => setBirdTimelineEventForm({ ...birdTimelineEventForm, note: event.target.value })} onChange={(event) => setBirdTimelineEventForm({ ...birdTimelineEventForm, note: event.target.value })}
placeholder={ placeholder={
birdTimelineEventForm.ownerChanged || birdTimelineEventForm.eventType === 'owner_changed' birdTimelineEventForm.eventType === 'owner_changed'
? 'Optional context without owner names' ? 'Optional context without owner names'
: 'Optional timeline context' : 'Optional timeline context'
} }
-19
View File
@@ -1541,25 +1541,6 @@ textarea {
stroke: none; stroke: none;
} }
.bird-detail-tab .timeline-tab-icon {
display: inline-flex;
align-items: center;
justify-content: center;
color: currentColor;
font-family: "Material Symbols Outlined";
font-size: 24px;
font-style: normal;
font-weight: 400;
line-height: 1;
letter-spacing: 0;
text-transform: none;
white-space: nowrap;
direction: ltr;
font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
-webkit-font-feature-settings: "liga";
-webkit-font-smoothing: antialiased;
}
.bird-detail-tab:hover { .bird-detail-tab:hover {
border-color: rgba(35, 138, 90, 0.28); border-color: rgba(35, 138, 90, 0.28);
color: var(--ink); color: var(--ink);