History

Remove sidebar pill timestamp effect

Cursor Agent committed 4 months ago

Commit f9f8ecf1 parent 3abec1a1 file · +2 −9Browse files

Unified · Split

apps/web/src/components/sidebar/SidebarProviderUpdatePill.tsx+2−9
@@ -42,15 +42,8 @@ function useInitialProviderVisibleAfterIso( · 41 unmodified lines
42 providers: ReadonlyArray<Pick<ServerProvider, "checkedAt">>,42 providers: ReadonlyArray<Pick<ServerProvider, "checkedAt">>,
43): string | undefined {43): string | undefined {
44 const latestCheckedAt = latestProviderCheckedAt(providers);44 const latestCheckedAt = latestProviderCheckedAt(providers);
45 const [visibleAfterIso, setVisibleAfterIso] = useState<string | undefined>(() => latestCheckedAt);45 const [initialVisibleAfterIso] = useState<string | undefined>(() => latestCheckedAt);
46 46 return initialVisibleAfterIso ?? latestCheckedAt;
47 useEffect(() => {
48 if (visibleAfterIso === undefined && latestCheckedAt !== undefined) {
49 setVisibleAfterIso(latestCheckedAt);
50 }
51 }, [latestCheckedAt, visibleAfterIso]);
52
53 return visibleAfterIso ?? latestCheckedAt;
54}47}
55 48
56function useProviderUpdatePillTransition(view: ProviderUpdateSidebarPillView | null) {49function useProviderUpdatePillTransition(view: ProviderUpdateSidebarPillView | null) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t