Skip to content

Commit

Permalink
Merge pull request #258 from sos-lapsikyla/felix/facelift
Browse files Browse the repository at this point in the history
Mobile app slim facelift
  • Loading branch information
rottabonus authored Oct 24, 2023
2 parents d950abc + 67f16a2 commit 93281f9
Show file tree
Hide file tree
Showing 161 changed files with 1,805 additions and 1,349 deletions.
Binary file added android/app/src/main/ic_launcher-playstore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/ic_launcher-web.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<background android:drawable="@mipmap/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
</adaptive-icon>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<background android:drawable="@mipmap/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
</adaptive-icon>
Binary file modified android/app/src/main/res/mipmap-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
Binary file modified android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Binary file modified android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
4 changes: 0 additions & 4 deletions android/app/src/main/res/values/ic_launcher_background.xml

This file was deleted.

Empty file modified android/app/src/main/res/values/strings.xml
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion e2e/changePasswordTest.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe('changePassword', () => {
await element(by.id('tabs.settings')).tap();

await scrollDownAndTap(
'main.settings.account.password.button',
'main.settings.account.password.change',
'main.settings.index.view',
);

Expand Down
3 changes: 3 additions & 0 deletions e2e/hideInactiveMentorsTest.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ describe('Hide inactive mentors', () => {
});
beforeEach(async () => {
await APIDeleteAccounts();
await device.reloadReactNative();
});
afterEach(async () => {
await forceLogout();
});

Expand Down
2 changes: 1 addition & 1 deletion e2e/logoutTest.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
signIn,
} from './helpers';

describe('Delete', () => {
describe('Logout', () => {
beforeAll(async () => {
await device.launchApp();
});
Expand Down
130 changes: 65 additions & 65 deletions ios/ylitse/Images.xcassets/AppIcon.appiconset/Contents.json
Original file line number Diff line number Diff line change
@@ -1,116 +1,116 @@
{
"images" : [
{
"size" : "20x20",
"idiom": "iphone",
"filename" : "[email protected]",
"scale": "2x"
},
{
"size" : "20x20",
"idiom": "iphone",
"filename" : "[email protected]",
"scale": "3x"
},
{
"size" : "20x20",
"idiom": "ipad",
"filename" : "uusi-20.png",
"scale": "1x"
{
"filename" : "Icon-App-20x20@2x 1.png",
"idiom" : "iphone",
"scale" : "2x",
"size" : "20x20"
},
{
"size" : "20x20",
"idiom": "ipad",
"filename" : "[email protected]",
"scale": "2x"
"filename" : "Icon-App-20x20@3x.png",
"idiom" : "iphone",
"scale" : "3x",
"size" : "20x20"
},
{
"size" : "29x29",
"filename" : "Icon-App-29x29@2x.png",
"idiom" : "iphone",
"filename" : "[email protected]",
"scale" : "2x"
"scale" : "2x",
"size" : "29x29"
},
{
"size" : "29x29",
"filename" : "Icon-App-29x29@3x.png",
"idiom" : "iphone",
"filename" : "[email protected]",
"scale" : "3x"
"scale" : "3x",
"size" : "29x29"
},
{
"size" : "40x40",
"filename" : "Icon-App-40x40@2x.png",
"idiom" : "iphone",
"filename" : "[email protected]",
"scale" : "2x"
"scale" : "2x",
"size" : "40x40"
},
{
"size" : "40x40",
"filename" : "Icon-App-40x40@3x.png",
"idiom" : "iphone",
"filename" : "[email protected]",
"scale" : "3x"
"scale" : "3x",
"size" : "40x40"
},
{
"size" : "60x60",
"filename" : "Icon-App-60x60@2x.png",
"idiom" : "iphone",
"filename" : "[email protected]",
"scale" : "2x"
"scale" : "2x",
"size" : "60x60"
},
{
"size" : "60x60",
"filename" : "Icon-App-60x60@3x.png",
"idiom" : "iphone",
"filename" : "[email protected]",
"scale" : "3x"
"scale" : "3x",
"size" : "60x60"
},
{
"filename" : "[email protected]",
"idiom" : "ipad",
"scale" : "1x",
"size" : "20x20"
},
{
"filename" : "[email protected]",
"idiom" : "ipad",
"scale" : "2x",
"size" : "20x20"
},
{
"size" : "29x29",
"filename" : "Icon-App-29x29@1x.png",
"idiom" : "ipad",
"filename" : "uusi-29.png",
"scale" : "1x"
"scale" : "1x",
"size" : "29x29"
},
{
"size" : "29x29",
"filename" : "Icon-App-29x29@2x 1.png",
"idiom" : "ipad",
"filename" : "[email protected]",
"scale" : "2x"
"scale" : "2x",
"size" : "29x29"
},
{
"size" : "40x40",
"filename" : "Icon-App-40x40@1x.png",
"idiom" : "ipad",
"filename" : "uusi-40.png",
"scale" : "1x"
"scale" : "1x",
"size" : "40x40"
},
{
"size" : "40x40",
"filename" : "Icon-App-40x40@2x 1.png",
"idiom" : "ipad",
"filename" : "[email protected]",
"scale" : "2x"
"scale" : "2x",
"size" : "40x40"
},
{
"size" : "76x76",
"filename" : "Icon-App-76x76@1x.png",
"idiom" : "ipad",
"filename" : "uusi-76.png",
"scale" : "1x"
"scale" : "1x",
"size" : "76x76"
},
{
"size" : "76x76",
"filename" : "Icon-App-76x76@2x.png",
"idiom" : "ipad",
"filename" : "[email protected]",
"scale" : "2x"
"scale" : "2x",
"size" : "76x76"
},
{
"size" : "83.5x83.5",
"filename" : "Icon-App-83.5x83.5@2x.png",
"idiom" : "ipad",
"filename" : "[email protected]",
"scale" : "2x"
"scale" : "2x",
"size" : "83.5x83.5"
},
{
"size" : "1024x1024",
"filename" : "ylitse_vahemman_paddingia.png",
"idiom" : "ios-marketing",
"filename" : "uusi-1024.png",
"scale" : "1x"
"scale" : "1x",
"size" : "1024x1024"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
"author" : "xcode",
"version" : 1
}
}
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@react-native-community/eslint-config": "3.2.0",
"@tsconfig/react-native": "2.0.3",
"@types/jest": "29.5.0",
"@types/react": "18.0.33",
"@types/react": "18.2.0",
"@types/react-redux": "7.1.25",
"@types/react-test-renderer": "18.0.0",
"@typescript-eslint/eslint-plugin": "5.57.1",
Expand Down
10 changes: 3 additions & 7 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,18 @@
import 'react-native-gesture-handler';

import React from 'react';
import RN from 'react-native';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import * as ReactRedux from 'react-redux';

import Screens from './Screens';
import * as state from './state';

const App: React.FC = () => (
<RN.View style={styles.root}>
<SafeAreaProvider>
<ReactRedux.Provider store={state.store}>
<Screens />
</ReactRedux.Provider>
</RN.View>
</SafeAreaProvider>
);

const styles = RN.StyleSheet.create({
root: { flex: 1 },
});

export default App;
16 changes: 11 additions & 5 deletions src/Screens/Main/BuddyList/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { getMentorByUserId } from '../../../state/reducers/mentors';

import Card from '../../components/Card';
import fonts from '../../components/fonts';
import getBuddyColor from '../../components/getBuddyColor';
import colors from '../../components/colors';

type Props = {
buddyId: string;
Expand All @@ -21,7 +21,6 @@ type Props = {
const Button = ({ style, buddyId, name, onPress, ...viewProps }: Props) => {
const onPressBuddy = () => onPress(buddyId);
const hasNewMessages = useSelector(hasUnseen(buddyId));
const color = getBuddyColor(buddyId);
const mentor = useSelector(getMentorByUserId(buddyId));
const lastMessage = useSelector(getLastMessageByBuddyId(buddyId));

Expand All @@ -44,7 +43,7 @@ const Button = ({ style, buddyId, name, onPress, ...viewProps }: Props) => {
{lastMessage}
</RN.Text>
</RN.View>
<RN.View style={[styles.blob, { backgroundColor: color }]}>
<RN.View style={[styles.blob]}>
{hasNewMessages ? (
<RN.View
style={styles.newMessage}
Expand All @@ -54,10 +53,13 @@ const Button = ({ style, buddyId, name, onPress, ...viewProps }: Props) => {
{mentor?.is_vacationing ? (
<RN.Image
source={require('../../images/umbrella-beach.svg')}
style={styles.vacationIcon}
style={[styles.icon, styles.vacationIcon]}
/>
) : (
<RN.Image source={require('../../images/balloon.svg')} />
<RN.Image
source={require('../../images/balloon.svg')}
style={styles.icon}
/>
)}
</RN.View>
</RN.TouchableOpacity>
Expand Down Expand Up @@ -96,6 +98,7 @@ const styles = RN.StyleSheet.create({
justifyContent: 'center',
alignSelf: 'stretch',
minHeight: 80,
backgroundColor: colors.purplePale,
},
newMessage: {
zIndex: 2,
Expand All @@ -107,6 +110,9 @@ const styles = RN.StyleSheet.create({
right: 16,
backgroundColor: 'yellow',
},
icon: {
tintColor: colors.purple,
},
vacationIcon: {
width: 48,
height: 48,
Expand Down
2 changes: 1 addition & 1 deletion src/Screens/Main/BuddyList/FolderItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ export default FolderItem;
const styles = RN.StyleSheet.create({
button: {
padding: 16,
backgroundColor: colors.lightestGray,
paddingHorizontal: 32,
},
text: {
...fonts.largeBold,
color: colors.purple,
},
dot: {
zIndex: 2,
Expand Down
4 changes: 2 additions & 2 deletions src/Screens/Main/BuddyList/Title.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const styles = RN.StyleSheet.create({
...fonts.titleLarge,
...textShadow,
textAlign: 'center',
color: colors.deepBlue,
color: colors.darkestBlue,
},
kebabIconHighlight: {
height: 32,
Expand All @@ -74,7 +74,7 @@ const styles = RN.StyleSheet.create({
justifyContent: 'center',
alignItems: 'center',
},
kebabIcon: { tintColor: colors.deepBlue },
kebabIcon: { tintColor: colors.darkestBlue },
dot: {
zIndex: 2,
borderRadius: 8,
Expand Down
2 changes: 1 addition & 1 deletion src/Screens/Main/BuddyList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export default ({ navigation }: Props) => {
/>
{isDropdownOpen && (
<DropDown
style={[styles.dropdown, { top: height - 8 }]}
style={[styles.dropdown, { top: height - 16 }]}
items={dropdownItems}
testID={'main.chat.menu'}
tintColor={colors.black}
Expand Down
Loading

0 comments on commit 93281f9

Please sign in to comment.