Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug/websocket disconnect #126

Merged
merged 8 commits into from
Nov 25, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
style: player match item
LinusBolls committed Nov 23, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 5d3888911a0c82aadeb45e8956f338f466a659e8
2 changes: 1 addition & 1 deletion mobile-app/components/MatchPlayers/Player.tsx
Original file line number Diff line number Diff line change
@@ -70,7 +70,7 @@ export default function Player({
// Interpolate the animated value to control height
const contentHeight = animation.interpolate({
inputRange: [0, 1],
outputRange: [0, 44 * 8], // customize the height range based on your content
outputRange: [0, 44 * moves.length], // customize the height range based on your content
});

const nav = useNavigation();

Unchanged files with check annotations Beta

/** the spaced format of group invite codes. `[3, 4, 3]` => `"xxx xxxx xxx"` */
const groupCodeFormat = [3, 3, 3];
const assertEnvString = (name: string): string => {

Check warning on line 8 in mobile-app/api/env.ts

GitHub Actions / Lint Code

'assertEnvString' is assigned a value but never used
const value = process.env?.[name];
if (typeof value !== 'string')
import { TextEncoder } from 'text-encoding';
import { Logger, ScopedLogger } from '@/utils/logging';

Check warning on line 3 in mobile-app/api/realtime/index.ts

GitHub Actions / Lint Code

'Logger' is defined but never used
/**
* stompjs is an abstraction layer on top of websocket that uses the global TextEncoder class.
client.current.on.event(hoher);
return () =>
client.current.logger.removeEventListener('*', writeLogs);

Check warning on line 117 in mobile-app/api/realtime/useRealtimeConnection.ts

GitHub Actions / Lint Code

The ref value 'client.current' will likely have changed by the time this effect cleanup function runs. If this ref points to a node rendered by React, copy 'client.current' to a variable inside the effect, and use that variable in the cleanup function
}
}, [client.current]);

Check warning on line 119 in mobile-app/api/realtime/useRealtimeConnection.ts

GitHub Actions / Lint Code

React Hook useEffect has missing dependencies: 'hoher' and 'writeLogs'. Either include them or remove the dependency array. Mutable values like 'client.current' aren't valid dependencies because mutating them doesn't re-render the component
useEffect(() => {
client.current.subscribeToGroups(groupIds);
const [showChangeWallpaperModal, setShowChangeWallpaperModal] =
useState(false);
const [sortingAlgorithm, setSortingAlgorithm] = useState<'ELO' | 'AVERAGE'>(

Check warning on line 26 in mobile-app/app/(tabs)/index.tsx

GitHub Actions / Lint Code

'sortingAlgorithm' is assigned a value but never used
'ELO'
);
nav.navigate('index');
}
}, [data, addGroup, nav]);

Check warning on line 26 in mobile-app/app/joinGroup.tsx

GitHub Actions / Lint Code

React Hook useEffect has a missing dependency: 'selectGroup'. Either include it or remove the dependency array
const isNotFound = (error as AxiosError | undefined)?.status === 404;
);
// }
return (

Check warning on line 101 in mobile-app/app/pastSeasons.tsx

GitHub Actions / Lint Code

Unreachable code
// <ParallaxScrollView
// headerBackgroundColor={{ light: "#D0D0D0", dark: "#353636" }}
// headerImage={
hasScore = true,
...rest
}: MatchVsHeaderProps) {
const redWon = match.redCups > match.blueCups;

Check warning on line 23 in mobile-app/components/MatchVsHeader.tsx

GitHub Actions / Lint Code

'redWon' is assigned a value but never used
const winner: TeamId =
match.redCups > match.blueCups
};
}, [props.curPage]);
const style = useMemo(() => {

Check warning on line 191 in mobile-app/components/PaginationDots/component/Dot.tsx

GitHub Actions / Lint Code

'style' is assigned a value but never used
const size = props.curPage.interpolate({
inputRange: [0, 1],
outputRange: [
/>
);
return (

Check warning on line 316 in mobile-app/components/PaginationDots/component/Dot.tsx

GitHub Actions / Lint Code

Unreachable code
<Animated.View
style={[
{