Skip to content

Commit b0296df

Browse files
committed
1.4.9
1 parent 60f2ca2 commit b0296df

File tree

14 files changed

+439
-114
lines changed

14 files changed

+439
-114
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changes
22

3+
## 1.4.9
4+
5+
- When saving account information, there is now a notification to show whether the authentication information is valid or not. (Success/Failed to authenticate messages)
6+
- Grid view list media cards have changed visually (score select, update buttons, progress buttons) to a blue outlined theme.
7+
- Progress bar now scales in width along with episode/chapter/volume text.
8+
- Fixed bug for when user tries to sync without correct username/token.
9+
310
## 1.4.8
411

512
- Replaced the indicator tooltip with a progress bar for the grid media cards. These progress bars indicate progress towards completing the media and shows the available episodes available. Grid card's information section margin spacing has changed.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ You can download the app [here](https://github.com/ReStartQ/AniCour/releases). C
4949

5050
1. Download the setup file from the latest release and install it on your computer.
5151
2. The setup file is labeled as AniCour-Setup-x.x.x.exe, where x denotes a number for the version.
52-
<br/> **Ex: AniCour-Setup-1.4.8.exe**
52+
<br/> **Ex: AniCour-Setup-1.4.9.exe**
5353
3. When you run the exe file, Windows will give a message like below because there is no code signing certificate, click on "More info" <p align="center"><a href="#"><img src="https://github.com/ReStartQ/anicour/blob/main/images/help/AniCourNoCodeSigningInitial.png" alt="Hello" /></a></p>
5454
4. A new option will appear, "Run anyway". Click on it. <p align="center"><a href="#"><img src="https://github.com/ReStartQ/anicour/blob/main/images/help/AniCourNoCodeSigning.png" alt="Hello" /></a></p>
5555
5. The installer menu will open up to allow you to install it on your computer. <p align="center"><a href="#"><img src="https://github.com/ReStartQ/anicour/blob/main/images/help/AniCourInstallationMenu2.png" alt="Hello" /></a></p>

release/app/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

release/app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "anicour",
3-
"version": "1.4.8",
3+
"version": "1.4.9",
44
"description": "Anime, Manga, and Light Novel Tracker Desktop Application for Windows. A fast and interactive way for AniList users to track and manage their anime/manga lists. ",
55
"license": "GPL-3.0",
66
"author": {

src/renderer/components/app/etc/MediaProgress.tsx

Lines changed: 69 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,70 @@
11
import { LinearProgress } from '@mui/material';
22
import React from 'react';
33

4-
const MediaProgress = ({ progress, buffer }: any) => {
4+
const MediaProgress = ({
5+
progress,
6+
buffer,
7+
progressRaw,
8+
episodes,
9+
chapters,
10+
volumes,
11+
mediaType,
12+
type,
13+
}: any) => {
514
// MIN = Minimum expected value
615
// MAX = Maximum expected value
716
// Function to normalise the values (MIN / MAX could be integrated)
817
// const normalise = (value) => ((value - MIN) * 100) / (MAX - MIN);
18+
function getLength(number: any) {
19+
if (number !== null) {
20+
return number.toString().length;
21+
}
22+
return 1;
23+
}
24+
25+
const getWidth = (
26+
rawValue: any,
27+
ep: any,
28+
ch: any,
29+
vol: any,
30+
typeMedia: any,
31+
progressType: any,
32+
) => {
33+
// eslint-disable-next-line prefer-const
34+
let counter = 0;
35+
if (progressType === 0) {
36+
if (typeMedia === 'ANIME') {
37+
counter += getLength(rawValue) + getLength(ep);
38+
} else {
39+
counter += getLength(rawValue) + getLength(ch);
40+
}
41+
}
42+
if (progressType === 1) {
43+
counter += getLength(rawValue) + getLength(vol);
44+
}
45+
switch (counter) {
46+
case 2:
47+
// g
48+
return '66%';
49+
case 3:
50+
// g
51+
return '71%';
52+
case 4:
53+
// g
54+
return '78%';
55+
case 5:
56+
// g
57+
return '85%';
58+
case 6:
59+
// g
60+
return '88%';
61+
case 7:
62+
// g
63+
return '92%';
64+
default: // 8 g
65+
return '95%';
66+
}
67+
};
968

1069
return (
1170
<LinearProgress
@@ -15,8 +74,15 @@ const MediaProgress = ({ progress, buffer }: any) => {
1574
color="info"
1675
sx={{
1776
border: '1px solid deepskyblue',
18-
width: '75%',
19-
height: '7px',
77+
width: getWidth(
78+
progressRaw,
79+
episodes,
80+
chapters,
81+
volumes,
82+
mediaType,
83+
type,
84+
),
85+
height: '6px',
2086
'& .MuiLinearProgress-dashed': {
2187
animation: 'none',
2288
backgroundImage: 'none',

src/renderer/components/app/etc/ProgressStepper.tsx

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,14 @@ export default function ProgressStepper({
177177
onClick={handleBack}
178178
disabled={advancedInput.progress === 0}
179179
sx={{
180+
'&:hover': {
181+
backgroundColor: '#12467b',
182+
},
180183
m: 0,
181184
p: 0,
182185
minWidth: 0,
183186
'--IconButton-size': '12px',
184-
mr: '4px',
187+
mr: advancedInput.progress >= 100 ? '2px' : '4px',
185188
}}
186189
>
187190
<RemoveIcon fontSize="inherit" />
@@ -206,11 +209,14 @@ export default function ProgressStepper({
206209
advancedInput.progress === 9999
207210
}
208211
sx={{
212+
'&:hover': {
213+
backgroundColor: '#12467b',
214+
},
209215
m: 0,
210216
p: 0,
211217
minWidth: 0,
212218
'--IconButton-size': '12px',
213-
ml: '4px',
219+
ml: advancedInput.progress >= 100 ? '2px' : '4px',
214220
}}
215221
>
216222
<AddIcon fontSize="inherit" />
@@ -241,6 +247,12 @@ export default function ProgressStepper({
241247
props.chapters,
242248
props.type,
243249
)}
250+
progressRaw={advancedInput.progress}
251+
episodes={props.episodes}
252+
chapters={props.chapters}
253+
volumes={props.volumes}
254+
mediaType={props.type}
255+
type={0}
244256
/>
245257
</Box>
246258
</Box>

src/renderer/components/app/etc/ProgressVolumesStepper.tsx

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,14 @@ export default function ProgressVolumesStepper({
7171
onClick={handleBack}
7272
disabled={advancedInput.progressVolumes === 0}
7373
sx={{
74+
'&:hover': {
75+
backgroundColor: '#12467b',
76+
},
7477
m: 0,
7578
p: 0,
7679
minWidth: 0,
7780
'--IconButton-size': '12px',
78-
mr: '4px',
81+
mr: advancedInput.progressVolumes >= 100 ? '2px' : '4px',
7982
}}
8083
>
8184
<RemoveIcon fontSize="inherit" />
@@ -96,11 +99,14 @@ export default function ProgressVolumesStepper({
9699
advancedInput.progressVolumes === 9999
97100
}
98101
sx={{
102+
'&:hover': {
103+
backgroundColor: '#12467b',
104+
},
99105
m: 0,
100106
p: 0,
101107
minWidth: 0,
102108
'--IconButton-size': '12px',
103-
ml: '4px',
109+
ml: advancedInput.progress >= 100 ? '2px' : '4px',
104110
}}
105111
>
106112
<AddIcon fontSize="inherit" />
@@ -115,6 +121,12 @@ export default function ProgressVolumesStepper({
115121
<MediaProgress
116122
progress={normalise(advancedInput.progressVolumes)}
117123
buffer={normalise(props.volumes !== null ? props.volumes : 0)}
124+
progressRaw={advancedInput.progressVolumes}
125+
episodes={props.episodes}
126+
chapters={props.chapters}
127+
volumes={props.volumes}
128+
mediaType={props.type}
129+
type={1}
118130
/>
119131
</Box>
120132
</Box>

src/renderer/components/app/etc/ScoreSelect.tsx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import RemoveIcon from '@mui/icons-material/Remove';
33
import { IconButton, NativeSelect, Typography } from '@mui/material';
44
import { Box } from '@mui/system';
55
import { useEffect, useState } from 'react';
6+
import ArrowDropDownIcon from '@mui/icons-material/ArrowDropDown';
67

78
export default function ScoreSelect({
89
props,
@@ -32,11 +33,20 @@ export default function ScoreSelect({
3233
value={advancedInput.score}
3334
size="small"
3435
sx={{
35-
width: '45px',
36+
pt: '4px',
37+
width: '55px',
38+
height: '22px',
3639
fontSize: '12px',
3740
textAlignLast: 'right',
38-
borderRadius: '0px',
41+
border: '1px solid #03a9f4',
42+
borderRadius: '5px',
43+
color: ' #81d4fa',
44+
'&:hover': {
45+
backgroundColor: '#1F242F',
46+
},
47+
backgroundColor: '#0b0d0e',
3948
}}
49+
disableUnderline
4050
onChange={onChange}
4151
>
4252
{props.mediaListEntry.score % 1 !== 0 ? (

src/renderer/components/app/main/MediaCard.tsx

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import {
22
Alert,
3-
Button,
43
CardActionArea,
54
IconButton,
65
Snackbar,
@@ -44,7 +43,7 @@ import {
4443
} from 'renderer/store';
4544
import { useAdvancedMedia } from 'renderer/context/advanced/AdvancedMediaContext';
4645
import { useCategory } from 'renderer/context/CategoryContext';
47-
import { Tooltip } from '@mui/joy';
46+
import { Button, Tooltip } from '@mui/joy';
4847
import ContextMenu from '../etc/ContextMenu';
4948
import ProgressStepper from '../etc/ProgressStepper';
5049
import ProgressVolumesStepper from '../etc/ProgressVolumesStepper';
@@ -312,11 +311,10 @@ export default function MediaCard({ props }: any) {
312311
gridRow: '1/3',
313312
gridColumn: '2/3',
314313
paddingTop: '4px',
315-
paddingX: '12px',
316314
'&:last-child': { pb: '4px' },
317315
display: 'grid',
318-
gridTemplateRows: 'repeat(auto-fill, 1fr)',
319-
gridTemplateColumns: '98px 98px',
316+
gridTemplateRows: '26px 48px 42px 36px 1fr',
317+
gridTemplateColumns: '96px 96px',
320318
}}
321319
>
322320
<Box sx={{ gridColumn: '1/3', display: 'flex', flexDirection: 'row' }}>
@@ -425,14 +423,30 @@ export default function MediaCard({ props }: any) {
425423
</Typography>
426424
</Box>
427425
)}
428-
<Button
429-
size="small"
430-
sx={{ gridColumn: '1/3', textTransform: 'none', my: '5px' }}
431-
variant="outlined"
432-
onClick={handleUpdate}
426+
<Box
427+
sx={{
428+
gridColumn: '1/3',
429+
mt: '3px',
430+
mb: '5px',
431+
}}
433432
>
434-
Update
435-
</Button>
433+
<Button
434+
size="sm"
435+
fullWidth
436+
sx={{
437+
textTransform: 'none',
438+
'&:hover': {
439+
backgroundColor: '#0a2744',
440+
},
441+
py: 0,
442+
height: '15px',
443+
}}
444+
variant="outlined"
445+
onClick={handleUpdate}
446+
>
447+
Update
448+
</Button>
449+
</Box>
436450
</CardContent>
437451
<ContextMenu
438452
props={props}

0 commit comments

Comments
 (0)