Skip to content

Commit

Permalink
v1.1.15 (#1127)
Browse files Browse the repository at this point in the history
* Added extended information (commit/pr/comment) to the changelog

* Changelog

* Remove unused divs

* Regards, your Developers

* Re-Added v1.1.15 changelog

* Revert "Regards, your Developers"

This reverts commit dc46da7.
  • Loading branch information
Eskaan authored Nov 5, 2021
1 parent fb4567a commit 88d3803
Show file tree
Hide file tree
Showing 2 changed files with 222 additions and 59 deletions.
137 changes: 129 additions & 8 deletions src/common/modals/ChangeLogs/changeLog.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,144 @@
module.exports = {
new: [
{
header: 'Tinkering whit the changelog modal',
content: 'Hope it will work :)',
advanced: { cm: 'commitHash' }
header: 'Started rollout of custom APIs',
content:
'because CurseForge is planning to close their APIs in the future. ' +
'These custom APIs are disabled at the moment.',
advanced: { cm: '2b37e27a', ms: 'Noo CurseForge, why?' }
},
{
header: 'Moved from Patreon to Ko-fi',
content: 'as you can see above',
advanced: { cm: 'a95c6e1c' }
},
{
header: 'Added setting to use Symlinks',
content: 'instead of absolute paths to fix issues whit to long paths',
advanced: { cm: 'abe61b07' }
},
{
header: 'Option to sort Instances',
content: 'by selecting the preferred order in the settings. :D',
advanced: { cm: 'dda24322', pr: '887' }
},
{
header: 'Added option to open the export folder',
content: 'after exporting an instance',
advanced: { cm: 'e15d6548', pr: '1082' }
}
],
improvements: [
{
header: 'We improved',
content: 'some stuff',
advanced: { cm: 'commitHash', pr: 'pullNr' }
header: 'Added a "Check for updates" button',
content: 'to release CurseForge from a lot of automated API requests',
advanced: { cm: 'f12465f2' }
},
{
header: 'Changed the buttons in the Mod Browser',
content: 'to good looking icons',
advanced: { cm: '399939a5', pr: '1035' }
},
{
header: 'Updated Electron',
content: 'and murmur2 dependencies to their latest versions.',
advanced: { cm: 'f03d81b5', ms: 'Upgraded Electron to v15.1.0' }
},
{
header: 'Batching multiple CurseForge requests together',
content: 'to increase request performance',
advanced: { cm: '422f9caf' }
}
],
bugfixes: [
{
header: 'Fixed 7zip not unzipping',
content: 'the downloaded files.',
advanced: {
cm: '2240004d',
ms:
'You want to know the true story? He did this, then I told him ' +
"that it doesn't work so he did it again and it partially worked. " +
'Then, third time, he stole my working code and committed it! :o'
}
},
{
header: 'Fixed MacOS .DS_Store files',
content: 'being detected as instances.',
advanced: { cm: '7528e587', pr: '1045/511af67' }
},
{
header: 'Fixed ModBrowser icons',
content: 'not being sized correctly.',
advanced: { cm: '7528e587', pr: '1045/9a35c56' }
},
{
header: 'Corrected wrong spelled CSS code',
content: 'which was inherited anyways.',
advanced: { cm: '7528e587', pr: '1045' }
},
{
header: 'Fixed console error on Beta channel',
content: 'where release channel was undefined.',
advanced: { cm: '7528e587', pr: '1045/d185730' }
},
{
header: 'Fixed MacOS navbar logo',
content: 'being a bit to far on the right',
advanced: { cm: '5a245c99', pr: '1074' }
},
{
header: 'Fixed beta releases on Portable',
content: 'not downloading.',
advanced: { cm: 'e32ee91f' }
},
{
header: 'Hopefully fixed FTB downloads',
content: 'failing because of invalid file hashes',
advanced: {
cm: '77988a42',
ms:
"In reality I don't really know what davide did there, I just " +
'pretend to do so ;)'
}
},
{
header: 'Fixed mod file hash check',
advanced: { cm: '5fd0deb4' }
},
{
header: 'Fixed icons in .deb release',
content: 'not showing up.',
advanced: { cm: 'a7f1cb35', pr: '1039' }
},
{
header: 'Fixed startup crash',
content: 'only occurring in beta',
advanced: { cm: '1cff7e08' }
},
{
header: 'Fixed squashed Image',
content: 'in the screenshots',
advanced: { cm: '17e3f8b8', pr: '1074' }
},
{
header: 'Fixed crash',
content: 'when doing stuff',
advanced: { cm: 'commitHash', pr: 'pullNr/commitHash' }
content: 'when switching tabs too fast',
advanced: {
cm: '17e3f8b8',
pr: '1074',
ms: 'You will need a good mouse to experience that :)'
}
},
{
header: 'Fixed some wording and punctuation',
content: 'in the settings',
advanced: { cm: '248d8ae8', pr: '1080', ms: 'Good eye Huantian!' }
},
{
header: 'Disabled symlink option for non-Windows',
content: 'because it is not needed and not working there.',
advanced: { cm: '7d8289b2', pr: '1097' }
}
]
};
144 changes: 93 additions & 51 deletions src/common/modals/ChangeLogs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ import { openModal } from '../../reducers/modals/actions';
import ga from '../../utils/analytics';
import changelog from './changeLog';

const UpdateRow = ({ header, content }) => {
const UpdateRow = ({ header, content, advanced }) => {
const prSplit = advanced?.pr?.split('/');
return (
<li>
&bull; {header}{' '}
Expand All @@ -25,13 +26,50 @@ const UpdateRow = ({ header, content }) => {
>
{content}
</span>
{advanced && (
<>
<div
css={`
color: ${props => props.theme.palette.text.third};
font-size: 12px;
a {
color: ${props => props.theme.palette.primary.light};
}
a:hover {
color: ${props => props.theme.palette.primary.main};
}
`}
>
<a
href={`https://github.com/gorilla-devs/GDLauncher/commit/${advanced.cm}`}
>
{advanced.cm}
</a>
{prSplit && (
<>
{' | '}
{/* Yes, this was the best (and shortest) version to do this I could come up with */}
<a
href={`https://github.com/gorilla-devs/GDLauncher/pull/${
prSplit[0]
}${prSplit.length > 1 ? `/commits/${prSplit[1]}` : ''}`}
>
#{advanced.pr}
</a>
</>
)}
{advanced.ms && <> | {advanced.ms}</>}
</div>
</>
)}
</li>
);
};

const ChangeLogs = () => {
const [version, setVersion] = useState(null);
const [skipIObserver, setSkipIObserver] = useState(true);
const [showAdvanced, setShowAdvanced] = useState(false);
const dispatch = useDispatch();
const { ref: intersectionObserverRef, inView: insectionObserverInView } =
useInView({
Expand Down Expand Up @@ -72,7 +110,7 @@ const ChangeLogs = () => {
<Modal
css={`
height: 550px;
width: 450px;
width: 475px;
`}
title={`What's new in ${version}`}
removePadding
Expand Down Expand Up @@ -126,6 +164,17 @@ const ChangeLogs = () => {
<img src={KoFiButton} alt="Ko-Fi" />
</a>
</div>
<a
css={`
margin-top: 20px;
color: ${props => props.theme.palette.primary.light};
`}
onClick={() => setShowAdvanced(!showAdvanced)}
>
{showAdvanced
? 'Hide extended information'
: 'Show extended information'}
</a>
</Header>
<Section>
<SectionTitle
Expand All @@ -149,18 +198,17 @@ const ChangeLogs = () => {
New
</span>
</SectionTitle>
<div>
<ul>
{changelog.new.map((item, index) => (
<UpdateRow
/* eslint-disable-next-line react/no-array-index-key */
key={index}
header={item.header}
content={item.content}
/>
))}
</ul>
</div>
<ul>
{changelog.new.map((item, index) => (
<UpdateRow
/* eslint-disable-next-line react/no-array-index-key */
key={index}
header={item.header}
content={item.content}
advanced={showAdvanced && item.advanced}
/>
))}
</ul>
</Section>
<Section>
<SectionTitle
Expand All @@ -184,18 +232,17 @@ const ChangeLogs = () => {
Improved
</span>
</SectionTitle>
<div>
<ul>
{changelog.improvements.map((item, index) => (
<UpdateRow
/* eslint-disable-next-line react/no-array-index-key */
key={index}
header={item.header}
content={item.content}
/>
))}
</ul>
</div>
<ul>
{changelog.improvements.map((item, index) => (
<UpdateRow
/* eslint-disable-next-line react/no-array-index-key */
key={index}
header={item.header}
content={item.content}
advanced={showAdvanced && item.advanced}
/>
))}
</ul>
</Section>
<Section>
<SectionTitle
Expand All @@ -219,18 +266,17 @@ const ChangeLogs = () => {
Bug Fixes
</span>
</SectionTitle>
<div>
<ul ref={intersectionObserverRef}>
{changelog.bugfixes.map((item, index) => (
<UpdateRow
/* eslint-disable-next-line react/no-array-index-key */
key={index}
header={item.header}
content={item.content}
/>
))}
</ul>
</div>
<ul ref={intersectionObserverRef}>
{changelog.bugfixes.map((item, index) => (
<UpdateRow
/* eslint-disable-next-line react/no-array-index-key */
key={index}
header={item.header}
content={item.content}
advanced={showAdvanced && item.advanced}
/>
))}
</ul>
</Section>
</Container>
<div
Expand Down Expand Up @@ -284,25 +330,21 @@ const Section = styled.div`
p {
margin: 20px 0 !important;
}
div {
ul {
padding: 0px;
list-style-position: inside;
width: 100%;
margin: 20px 0;
border-radius: 5px;
}
ul {
padding: 0px;
list-style-position: inside;
}
li {
text-align: start;
list-style-type: none;
margin: 10px 0;
}
li {
text-align: start;
list-style-type: none;
margin: 10px 0;
}
`;

const Header = styled.div`
height: 150px;
margin-bottom: 200px;
margin-bottom: 20px;
`;

0 comments on commit 88d3803

Please sign in to comment.