Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade administration frontend dependencies #493

Merged
merged 6 commits into from
Feb 19, 2022
Merged

Upgrade administration frontend dependencies #493

merged 6 commits into from
Feb 19, 2022

Conversation

maxammann
Copy link
Member

Sadly I failed upgrading react-scripts. It still has rough edges and fixes are not released yet

@maxammann
Copy link
Member Author

I also had to keep graphql on version 15.8 because the "apollo" tooling package is not yet compatible with the new version

Comment on lines +55 to 68
<Route path={"/"} element={<div
style={{display: 'flex', alignItems: 'center', flexDirection: 'column'}}>
<H3>Wählen Sie eine Aktion aus:</H3>
<NavLink to={"/applications"}><Button style={{ marginBottom: '10px'}} icon="form" text="Eingehende Anträge"/></NavLink>
<NavLink to={"/eak-generation"}><Button icon="people" text="Karten erstellen"/></NavLink>
</div>
</Route>
<Route exact path={"/applications"}>
<ApplicationsController token={authData.token}/>
</Route>
<Route path={"/eak-generation"}>
<GenerationController/>
</Route>
<NavLink to={"/applications"}><Button style={{marginBottom: '10px'}}
icon="form"
text="Eingehende Anträge"/></NavLink>
<NavLink to={"/eak-generation"}><Button icon="people"
text="Karten erstellen"/></NavLink>
</div>}/>
<Route path={"/applications"}
element={<ApplicationsController token={authData.token}/>}/>
<Route path={"/eak-generation"} element={<GenerationController/>}/>
</Routes>
</Main>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you remove the exact flags for Route /applications and /?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its no longer supported, should still work, at least from my tests

Comment on lines +75 to 79
usePrompt("Falls Sie fortfahren, werden alle Eingaben verworfen.", cardCreationModels.length !== 0);

return (
<>
<Prompt message={"Falls Sie fortfahren, werden alle Eingaben verworfen."}
when={cardCreationModels.length !== 0}/>
<ButtonBar stickyTop={0}>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are react routing libraries so shitty and unstable...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My words...

Loving Flutter/Angular for that.

@maxammann maxammann merged commit 0cc3dff into main Feb 19, 2022
@maxammann maxammann deleted the npm-upgrade branch February 19, 2022 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants