Skip to content

Commit

Permalink
feat: 04-18-2024 update changelog (#295)
Browse files Browse the repository at this point in the history
* feat: 04-18-2024 update changelog

* fix: revert official only
  • Loading branch information
fribbels committed Apr 18, 2024
1 parent 5da064b commit 5b11aa0
Show file tree
Hide file tree
Showing 17 changed files with 97 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/starrailoptimizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
uses: jacobtomlinson/gha-find-replace@v3
with:
find: "base: '/hsr-optimizer'"
replace: "base: '/'"
replace: "base: ''"
include: "vite.config.ts"
- name: Find and Replace router path
uses: jacobtomlinson/gha-find-replace@v3
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@
<meta property="og:title" content="Fribbels Star Rail Optimizer" />
<meta property="og:description"
content="A Honkai Star Rail optimizer, relic scorer, damage calculator, and various other tools for building and gearing characters." />
<meta property="og:image" content="https://d28ecrnsw8u0fj.cloudfront.net/assets/misc/metaTagImage.png" />
<meta property="og:image" content="https://d28ecrnsw8u0fj.cloudfront.net/assets/misc/metaTagImage.webp" />

<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content="https://fribbels.github.io/hsr-optimizer/" />
<meta property="twitter:title" content="Fribbels Star Rail Optimizer" />
<meta property="twitter:description"
content="A Honkai Star Rail optimizer, relic scorer, damage calculator, and various other tools for building and gearing characters." />
<meta property="twitter:image" content="https://d28ecrnsw8u0fj.cloudfront.net/assets/misc/metaTagImage.png" />
<meta property="twitter:image" content="https://d28ecrnsw8u0fj.cloudfront.net/assets/misc/metaTagImage.webp" />

</head>
<body>
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
92 changes: 77 additions & 15 deletions src/components/ChangelogTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React, { ReactElement } from 'react'
import { Flex, List, Typography } from 'antd'
import { AppPages } from 'lib/db.js'
import { Assets } from 'lib/assets'
import { ColorizedLink } from './common/ColorizedLink'

const { Text } = Typography

Expand All @@ -27,7 +28,7 @@ export default function ChangelogTab(): React.JSX.Element {
position: 'bottom',
align: 'start',
}}
dataSource={data}
dataSource={changelog}
renderItem={(item) => (
<List.Item
key={item.title}
Expand Down Expand Up @@ -55,6 +56,16 @@ function listToDisplay(content: string[], contentUpdate: ChangelogContent) {
}}
/>,
)
} else if (entry.startsWith('https')) {
display.push(
<li key={i++}>
<ColorizedLink
text={entry}
url={entry}
key={i++}
/>
</li>,
)
} else {
display.push(
<li key={i++}>
Expand All @@ -78,31 +89,80 @@ function listToDisplay(content: string[], contentUpdate: ChangelogContent) {
)
}

function leaks(str: string) {
return window.officialOnly ? '' : str
}

/*
Notes for next patch
boothill break stuff
boothill basic atk sort
NOTES:
*/
const data: ChangelogContent[] = [
const changelog: ChangelogContent[] = [
{
title: '',
date: '04-18-2024',
content: [
'Launched a new leak-free version of the optimizer which has no leaks and only contains officially released content',
'https://starrailoptimizer.github.io',
'noLeaks.webp',
'Added a one-click-optimize button to the Relic Scorer page, accessed by clicking the graph icon or the Optimize Character Stats button',
'This automatically imports the scored profile relics, adds the character and light cone, applies recommended filters and conditionals, and starts an optimizer search',
'This is meant to be an easy way for new users to get started using the optimizer',
'oneClick.webp',
'Updated the Get Started tab with up to date instructions and a step-by-step guide to using the optimizer for the first time',
'getStarted.webp',
'Added new Average potential view as an option alongside Max potential on Relics tab',
'potentialUpdates.webp',
'Relic potential ratings menu now has a Custom characters view enabled by default, where only a subset of characters are considered for the potential calculations',
'relicRatings.webp',
'All characters are included initially, then specific characters can be selected to excluded from the relic potential view',
'customCharacters.webp',
'Clicking empty relic slots now brings up the Add New Relic menu',
'clickEmpty.webp',
'Added icons to sidebar menu tabs',
'Added a button to hide the menu sidebar for easier viewing on smaller screens',
'hideSidebar.webp',
'Updated the Recommended Presets speed breakpoints to 1000ths precision',
'breakpoints.webp',
'Ambiguous speed values near specific breakpoints (such as 133.333..) are now displayed to 1000ths precision for checking if the breakpoint is met',
'spdValues.webp',
'Added a Reset All Characters button to the scoring algorithm menu',
'resetAll.webp',
'Rephrased pioneer conditional to specify between basic and combat stat buffs',
'The last optimized character will now be open by default on the next session',
'The Simulate Relics On Another Character menu is now open by default on the Relic Scorer tab',
leaks('Updated Boothill damage calcs'),
leaks('Updated Robin damage calcs'),
'Added crit vulnerability to damage calcs',
'Fix: Aventurine ult now applies correctly a crit vulnerability',
'Fix: Baptism of Pure Thought now correctly applies a crit vulnerability',
'Fix: Worrisome, Blissful now correctly applies a crit vulnerability',
'Fix: Herta now correctly defaults to FUA sort',
'Fix: Removed leftover unused character level selectors, all characters now default to level 80',
'Fix: Black Swan E1 now correctly only applies res shred on DOT elements',
'Fix: Scores for saved builds will now update with scoring changes',
'Fix: Creating new relics with an owner now equips the relic',
],
},
{
title: '',
date: '04-04-2024',
content: [
'Added Break DMG calculations for all characters and a sortable BREAK column in the optimizer grid',
'breakDmg.webp',
'Updated Boothill\'s Enhanced basic attack calculation to include his Talent\'s additional break damage',
'Updated Boothill\'s conditional toggle to be "Talent break DMG (forces weakness break)" which overrides the weakness break option when enabled',
'Updated Boothill\'s default sort option to Basic DMG',
'boothill.webp',
'Updated Boothill\'s scoring algorithm to prioritize SPD and Break Effect',
'boothillScore.webp',
leaks('Updated Boothill\'s Enhanced basic attack calculation to include his Talent\'s additional break damage'),
leaks('Updated Boothill\'s conditional toggle to be "Talent break DMG (forces weakness break)" which overrides the weakness break option when enabled'),
leaks('Updated Boothill\'s default sort option to Basic DMG'),
leaks('boothill.webp'),
leaks('Updated Boothill\'s scoring algorithm to prioritize SPD and Break Effect'),
leaks('boothillScore.webp'),
'Added a display for the artist\'s name on custom character portraits',
'artist.webp',
leaks('artist.webp'),
'The artist name can be updated along with the image on the crop menu',
'Enabled gif uploads for custom character portraits',
'artistInput.webp',
'Updated Reliquary Archiver import for 2.1 patch, which imports accurate speed decimals for the entire inventory',
'archiver.webp',
leaks('artistInput.webp'),
leaks('Updated Reliquary Archiver import for 2.1 patch, which imports accurate speed decimals for the entire inventory'),
leaks('archiver.webp'),
'Added new character action menu entry to "Sort by score" which rearranges the character priority by their character scores',
'sortByScore.webp',
'Updated conditional set effects for Pioneer Diver of Dead Waters set with a 0x debuffs option which disables the 2p effect',
Expand Down Expand Up @@ -317,3 +377,5 @@ const data: ChangelogContent[] = [
],
},
]
// Filter out leaks from changelog
changelog.map(x => x.content = x.content.filter(x => x.length > 0))
5 changes: 3 additions & 2 deletions src/components/LayoutHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Button, Flex, Layout, Typography } from 'antd'
import { CloseOutlined, MenuOutlined } from '@ant-design/icons'
import { Assets } from 'lib/assets.js'
import { BASE_PATH } from '../lib/db'

const { Header } = Layout

Expand Down Expand Up @@ -31,14 +32,14 @@ export function LayoutHeader() {
left: '-20px',
}}
/>
<a href="/hsr-optimizer">
<a href={BASE_PATH}>
<Flex align="center">
<img src={Assets.getLogo()} style={{ width: 30, height: 30, marginRight: 25 }}></img>
<Typography
style={{ fontWeight: 600, fontSize: 22 }}
color="inherit"
>
Fribbels Honkai Star Rail Optimizer
{'Fribbels Honkai Star Rail Optimizer'}
</Typography>
</Flex>
</a>
Expand Down
19 changes: 14 additions & 5 deletions src/components/MenuDrawer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
BarsOutlined,
BookOutlined,
LineChartOutlined,
LinkOutlined,
RadarChartOutlined,
StarFilled,
ToolOutlined,
Expand Down Expand Up @@ -103,6 +104,14 @@ const items = [
</Typography.Link>,
'link discord',
),
getItem(
<Typography.Link href="https://github.com/fribbels/hsr-optimizer" target="_blank" rel="noopener noreferrer">
<GithubIcon style={{ marginRight: 5 }} />
{' '}
Github
</Typography.Link>,
'link github',
),
getItem(
<Typography.Link href="https://www.patreon.com/fribbels" target="_blank" rel="noopener noreferrer">
<CoffeeIcon style={{ marginRight: 5 }} />
Expand All @@ -111,13 +120,13 @@ const items = [
</Typography.Link>,
'link donate',
),
getItem(
<Typography.Link href="https://github.com/fribbels/hsr-optimizer" target="_blank" rel="noopener noreferrer">
<GithubIcon style={{ marginRight: 5 }} />
!window.officialOnly && getItem(
<Typography.Link href="https://starrailoptimizer.github.io/" target="_blank" rel="noopener noreferrer">
<LinkOutlined style={{ marginRight: 5 }} />
{' '}
Github
No leaks
</Typography.Link>,
'link github',
'link leaks free',
),
]),
]
Expand Down
2 changes: 0 additions & 2 deletions src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ window.Message = Message
window.Hint = Hint
window.CharacterConverter = CharacterConverter
window.RelicScorer = RelicScorer
// window.CharacterConditionals = CharacterConditionals
// window.LightConeConditionals = LightConeConditionals
window.BufferPacker = BufferPacker
window.RelicRollFixer = RelicRollFixer

Expand Down

0 comments on commit 5b11aa0

Please sign in to comment.