Skip to content

Commit

Permalink
v2.0.7-beta (#72)
Browse files Browse the repository at this point in the history
* feat: fast-mode and skip lobby (#61)

* feat: added fast-mode and skip lobby implementation

* fix: Debug

* fix: fastmode shouldn't show on other commands besides shop

* feat: popconfirm on checkboxes

* fix: debug

* feat: devmode

* feat: improve dev mode display

* fix: currentscreen and fastmode still enabled not on devmode

---------

Co-authored-by: Bruno Cordioli <brunocordioli072@gmial.com>

* v2.0.6-beta

* feat: reworked features (#71)

* Develop (#68)

* feat: fast-mode and skip lobby (#61)

* feat: added fast-mode and skip lobby implementation

* fix: Debug

* fix: fastmode shouldn't show on other commands besides shop

* feat: popconfirm on checkboxes

* fix: debug

* feat: devmode

* feat: improve dev mode display

* fix: currentscreen and fastmode still enabled not on devmode

---------

Co-authored-by: Bruno Cordioli <brunocordioli072@gmial.com>

* fix: prettier

* v2.0.6-beta

---------

Co-authored-by: Bruno Cordioli <brunocordioli072@gmial.com>

* v2.0.6-beta (#69)

* feat: fast-mode and skip lobby (#61)

* feat: added fast-mode and skip lobby implementation

* fix: Debug

* fix: fastmode shouldn't show on other commands besides shop

* feat: popconfirm on checkboxes

* fix: debug

* feat: devmode

* feat: improve dev mode display

* fix: currentscreen and fastmode still enabled not on devmode

---------

Co-authored-by: Bruno Cordioli <brunocordioli072@gmial.com>

* v2.0.6-beta

---------

Co-authored-by: Bruno Cordioli <brunocordioli072@gmial.com>

* fix: hunt

* feat: Made daily button disabled

---------

Co-authored-by: Bruno Cordioli <brunocordioli072@gmial.com>

* feat: Update changelog and version

---------

Co-authored-by: Bruno Cordioli <brunocordioli072@gmial.com>
  • Loading branch information
brunocordioli072 and Bruno Cordioli authored Feb 22, 2024
1 parent 0b87a1a commit a09e4ab
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 15 deletions.
12 changes: 10 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,21 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### [v2.0.7-beta](https://github.com/brunocordioli072/epic7_bot/compare/v2.0.6-beta...v2.0.7-beta)

> 21 February 2024
- feat: fast-mode and skip lobby [`#61`](https://github.com/brunocordioli072/epic7_bot/pull/61)
- feat: Made daily button disabled [`7889803`](https://github.com/brunocordioli072/epic7_bot/commit/7889803b3a6d28d3a2cbf0a8edc6a3fb6fcd79e8)
- fix: hunt [`8260caf`](https://github.com/brunocordioli072/epic7_bot/commit/8260caf3126b757d8f4f4c2745b93dcf43e112e3)

#### [v2.0.6-beta](https://github.com/brunocordioli072/epic7_bot/compare/v2.0.5-beta...v2.0.6-beta)

> 16 February 2024
- feat: fast-mode and skip lobby [`#61`](https://github.com/brunocordioli072/epic7_bot/pull/61)
- v2.0.6-beta [`#69`](https://github.com/brunocordioli072/epic7_bot/pull/69)
- Develop [`#68`](https://github.com/brunocordioli072/epic7_bot/pull/68)
- Update README.md [`04f8363`](https://github.com/brunocordioli072/epic7_bot/commit/04f83637ee36c01950295b1a44b066c2450a99e0)
- fix: prettier [`efd016f`](https://github.com/brunocordioli072/epic7_bot/commit/efd016f93ba752cf2408ffa51ec26098952d0ddf)
- Update README.md [`bae0210`](https://github.com/brunocordioli072/epic7_bot/commit/bae0210693e62a30e48e403b7ba5688bc8aaa74b)

#### [v2.0.5-beta](https://github.com/brunocordioli072/epic7_bot/compare/v2.0.4-beta...v2.0.5-beta)
Expand Down
20 changes: 10 additions & 10 deletions packages/app/src/components/AppSider/AppSider.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
import { useState } from 'react';
import { Layout, Menu } from 'antd';
import {
DesktopOutlined,
ShoppingOutlined,
RocketOutlined,
BorderlessTableOutlined,
RetweetOutlined,
} from '@ant-design/icons';
import type { MenuProps } from 'antd';
import './AppSider.css'
import { useAppContext } from '../../context/AppContext';
Expand All @@ -15,17 +8,19 @@ const { Sider } = Layout;

type MenuItem = Required<MenuProps>['items'][number];

function getItem(
function getItem({ label, key, icon, children, disabled }: {
label: React.ReactNode,
key: React.Key,
icon?: React.ReactNode,
children?: MenuItem[],
): MenuItem {
disabled?: boolean
}): MenuItem {
return {
key,
icon,
children,
label,
disabled,
} as MenuItem;
}

Expand All @@ -50,7 +45,12 @@ const AppSider: React.FC = () => {
return (
<Sider collapsed={collapsed} onCollapse={(value) => setCollapsed(value)} >
<Menu theme="dark" onSelect={(e) => handleSelect(e.key)} defaultSelectedKeys={['shop']} mode="inline" items={commands.map(el => {
return getItem(el.label, el.label, el.icon)
return getItem({
label: el.label,
key: el.label,
icon: el.icon,
disabled: el.disabled
})
})} />
<div className='version'>Version: {appVersion}</div>
</Sider>
Expand Down
2 changes: 2 additions & 0 deletions packages/app/src/context/AppContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ interface Command {
python_command: string;
table: string
icon: JSX.Element;
disabled?: boolean
}

interface AppContextInterface {
Expand Down Expand Up @@ -86,6 +87,7 @@ export const AppProvider = ({ children }: { children: any }) => {
"python_command": "start_daily",
"table": 'daily',
"icon": <RetweetOutlined />,
"disabled": true
},
])
const [command, setCommand] = useState<Command>(commands.find((el: any) => el.label === "Shop") as any)
Expand Down
2 changes: 1 addition & 1 deletion packages/core/epic7_bot/modules/Battle.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def do_hunt_rotation(self):
logging.info(f"Wait for repeat battling has ended to appear")
while (
self.ScreenManager.match_template_on_screen(
template=self.HuntTemplates.repeat_battling_has_ended, percentage=0.6
template=self.HuntTemplates.repeat_battling_has_ended, percentage=0.7
)
is None
): # change this to match other screen
Expand Down
3 changes: 1 addition & 2 deletions packages/core/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
from epic7_bot.processes.CommandRunner import CommandRunner

ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
CURRENT_APP_VERSION = "v2.0.6-beta"

CURRENT_APP_VERSION = "v2.0.7-beta"


class Api:
Expand Down

0 comments on commit a09e4ab

Please sign in to comment.