Skip to content

Commit

Permalink
Merge pull request #51 from mrodz/master
Browse files Browse the repository at this point in the history
Update to v0.1.3
  • Loading branch information
mrodz authored Apr 15, 2024
2 parents d824148 + d6d9463 commit 58b476c
Show file tree
Hide file tree
Showing 10 changed files with 45 additions and 24 deletions.
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Fieldz · [![GitHub license](https://img.shields.io/badge/license-MPL_2.0-blue.svg)](https://github.com/mrodz/fieldz-desktop/blob/master/LICENSE) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://legacy.reactjs.org/docs/how-to-contribute.html#your-first-pull-request)

![image](https://github.com/mrodz/fieldz-desktop/assets/79176075/00949c07-e90c-4c45-b238-4f3cac6ef13e)

## Welcome to the new wave of field administration
Fieldz is an app designed for youth sports region administrators by a former youth soccer player. Its primary purpose is to schedule matches given a set of input parameters.

## This app is new!
For now, the distributions under the `Releases` tab are UI concepts, as the glue to call the working scheduling algorithm has yet to be written.
If you are a region administrator, please leave your feedback as to how the user experience affects your ease of use, and whether the app is missing any critical features or scheduling parameters.

## Wiki
Learn about installation as well as some of the app's features and navigation under its [wiki](https://github.com/mrodz/fieldz-desktop/wiki). There, you will find helpful guides accompanied by screenshots and descriptions of what each window is used for.

Thanks for checking out the app!
2 changes: 1 addition & 1 deletion cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cli"
version = "0.1.2"
version = "0.1.3"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion db/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "db"
version = "0.1.2"
version = "0.1.3"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion db/entity/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "entity"
version = "0.1.2"
version = "0.1.3"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion db/migration/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "migration"
version = "0.1.2"
version = "0.1.3"
edition = "2021"
publish = false

Expand Down
2 changes: 1 addition & 1 deletion desktop/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "app"
version = "0.1.2"
version = "0.1.3"
description = "A Tauri App"
authors = ["you"]
license = ""
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fieldz-desktop",
"version": "0.1.2",
"version": "0.1.3",
"scripts": {
"preinstall": "cd webview && npm install"
},
Expand Down
2 changes: 2 additions & 0 deletions webview/src/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,3 +298,5 @@ export interface UpdateTargetReservationTypeInput {
target_id: number;
new_reservation_type_id: number | undefined;
}

export const HAS_DB_RESET_BUTTON: boolean = false;
30 changes: 17 additions & 13 deletions webview/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import TeamCreate from './fields/TeamCreate.svelte';
import RegionEdit from './region/RegionEdit.svelte';
import TeamEdit from './fields/TeamEdit.svelte';
import { HAS_DB_RESET_BUTTON } from '$lib';
initializeStores();
Expand Down Expand Up @@ -64,19 +65,22 @@
<AppBar>
<div class="flex flex-row items-center justify-center">
<LightSwitch />
<button
class="variant-outline btn ml-4"
on:click|preventDefault={async () => {
await resetDatabase();
window.location.replace('/');
dialog.message("The app's data was wiped, and the database's schema was refreshed.", {
title: 'Database reset complete',
type: 'info'
});
}}
>
Reset Database &mdash; Destructive
</button>

{#if HAS_DB_RESET_BUTTON}
<button
class="variant-outline btn ml-4"
on:click|preventDefault={async () => {
await resetDatabase();
window.location.replace('/');
dialog.message("The app's data was wiped, and the database's schema was refreshed.", {
title: 'Database reset complete',
type: 'info'
});
}}
>
Reset Database &mdash; Destructive
</button>
{/if}
</div>
</AppBar>
</svelte:fragment>
Expand Down

0 comments on commit 58b476c

Please sign in to comment.