Giter Club home page Giter Club logo

glom's Introduction

GlOM Travis Build Status

Or, Gaslands Offline Manager, a fully offline Gaslands (https://gaslands.com/) vehicle squad manager.

Dependecies

This this needs Elm installed. Installing create-elm-app also helps.

Development

  1. git clone https://github.com/milogert/glom
  2. cd glom
  3. yarn install
  4. yarn start
  5. Navigate to http://localhost:3000.

Building for production

  1. yarn build

Deploying

  1. yarn deploy

Testing

  1. yarn test

Coverage

  1. yarn coverage
  2. Navigate to file:///home/you/code/glom/.coverage/coverage.html

Hosting

A build of this application is located at https://milogert.github.io/glom/. Since the application is written in Elm it has PWA support so you can install a totally offline version on your phone.

glom's People

Contributors

milogert avatar dependabot[bot] avatar

Watchers

James Cloos avatar  avatar  avatar

glom's Issues

Hydrate the model with the latest team modified

Is your feature request related to a problem? Please describe.
When you refresh the page you have to manually reload a team.

Describe the solution you'd like

  1. Automatically reload the latest team that was modified.
  2. Save teams in the local storage by date and update the date each time.
  3. List of teams should be like Name of Team (<date>)

Add option to remotely store photos

Describe the bug
Right now we store photos in the form of a base64 url. This can be slow and is pretty ugly.

To Reproduce
Steps to reproduce the behavior:

  1. Take a photo of a car.
  2. Save your data to the application.
  3. See that it really slows down during save.

Expected behavior
Saving and loading should be as fast as the rest of the parts of the application.

Device (please complete the following information):

  • All, probably mobile more though since phones can be slower.

Additional context
This will for sure affect #9 since loading and saving is much slower now.

Finishing adding entries doesn't reset the temporary entry

Describe the bug
When adding entries the temporary entry isn't cleared out, which causes weird behavior.

To Reproduce
Steps to reproduce the behavior:

  1. Add a vehicle.
  2. Go to add another vehicle.
  3. See that the the new vehicle type is the previous type.
  4. Have to switch to another vehicle type and then back before the name box shows up again.

Expected behavior
Vehicle type should be reset on adding the vehicle.

Additional context
This probably affects weapons and uprgades too.

Move team name into settings, rearrange top bar

Describe the bug
Right now the team name is in the top bar and I think it should be in settings. This means that we could move vehicle name off the top bar and then put the photo next to the vehicle name.

Expected behavior
The top bar/team name/vehicle name/page name locations should be reconsidered. Having a single-line top bar is definitely worth looking at.

Device (please complete the following information):

  • Most noticeable on small devices.

Changing sponsors does not clear out vehicle perks

Describe the bug
If you change sponsors it does not clear out your vehicle perks which can cause weirdness.

To Reproduce
Steps to reproduce the behavior:

  1. Set a sponsor.
  2. Check some perks in the vehicle.
  3. Go to print that vehicle.
  4. See the perks (good).
  5. Change sponsors to someone else.
  6. Go to print the same vehicle.
  7. See some perk categories but no perks (bad).

Expected behavior
The perks should be cleared out on sponsor switch.

Device (please complete the following information):

  • All

Use rear camera if supported to take photos

Describe the bug
Right now we only use the front facing camera to take photos. That's silly.

To Reproduce
Steps to reproduce the behavior:

  1. Go to take a photo.
  2. See it only uses the front camera of your phone.

Expected behavior
The front camera is not useful in this case so the rear camera is the only one that should be used.

Device (please complete the following information):

  • OS: Mobile

Vehicles and weapons do not account for sponsors

Describe the bug
The idea is that sponsor sometimes grant vehicles and weapons. The vehicles and weapons do not account for your sponsor status so you could have a tank without a Rutherford sponsorship.

To Reproduce
Steps to reproduce the behavior:

  1. Add a tank.
  2. See you are not sponsored by Rutherford.
  3. Bad.

Expected behavior

  • Tanks and Helicoptors: Granted by Rutherford.
  • Electrical weapons: Granted by Mishkin

Device (please complete the following information):

  • All versions.

Upgrade to Elm 0.19.0

Describe the bug
Still on 0.18.0.

To Reproduce
Steps to reproduce the behavior:

  1. See that the app is using 0.18.0.

Issues with Activation button

Describe the bug
Several issues:

  1. Incorrect wording: "cannot activated".
  2. Button doesn't update status when in details view.

To Reproduce
Steps to reproduce the behavior:

  1. Use the activation button.

Expected behavior
Button has correct text and updates always.

Device (please complete the following information):

  • All

Additional context
Thanks to @jltimm for finding this.

Support for pictures of cars

Since this is a PWA there should be camera hook-ups.

This should allow for taking photos of the physical vehicles and displaying those on the front end somewhere.

A barrier to this could be that saving the json could end up proving tricky.

Unit tests

This application is fully untested as well.

Sponsor and perks should not fully be serialized to json

Describe the bug
Right now the entire sponsor and perks set is serialized to the json. It takes up a lot of space and is busy.

To Reproduce
Steps to reproduce the behavior:

  1. Set a sponsor.
  2. Check the serialized json in the settings.
  3. See it's large.

Expected behavior
We should only serialize the sponsor name and perhaps the perk names to save space and keep the json clean.

Device (please complete the following information):

  • All

Migrate makefile to yarn

Describe the bug
npx is being used.

To Reproduce
Steps to reproduce the behavior:

  1. See npx is being used.

Expected behavior
Yarn should be used.

Data should be saved automatically to prevent accidental data loss

Describe the bug
If you accidentally refresh the page without specifically saving data you will lose it all.

To Reproduce
Steps to reproduce the behavior:

  1. Make edits.
  2. Refresh the page.
  3. See your data is gone.
  4. Bad.

Expected behavior
Data saves should happen automatically and even perhaps before page refresh.

Reformat the addons

Describe the solution you'd like
Reformat the addon display since it looks a little like garbage.

Describe alternatives you've considered
Leaving it the way it is. It's functional but it's not great.

Add randomizer for generating teams

Is your feature request related to a problem? Please describe.
No. Just usability.

Describe the solution you'd like
Add a randomizer with parameters. So you could say 50 point team, with 50% of the points used on vehicles, 40% on weapons, 10% on perks.

Additional context
Could be nice to have a "simple" and "complex" preset, to generate teams for beginners or experts.

Add walkthrough for when a car wipes out

Is your feature request related to a problem? Please describe.
Right now when a car hits it's hazard limit nothing happens in the app.

Describe the solution you'd like
A walkthrough should occur where it pops open a modal and runs through several check boxes describing steps to handle when a car wipes out.

Describe alternatives you've considered
Possibly not a modal. Doesn't scroll on iPhones so well. Unless I can guarantee the entire modal is above the fold.

An alternative could be something like an "injection" of checkboxes beneath the hazard counter.

Additional context
The final check should maybe dismiss the modal, but a button near the bottom might help too.

Fix reference tables

Describe the bug
The tables are not done.

To Reproduce
Look at them.

Expected behavior

  • Scrolling is not available.
  • Data is not complete.

Add List.Extra usage for mucking with lists of vehicles

Describe the bug
Right now we do a lot of looping through lists to find vehicles to replace, or using an index.

If a car is in the first and second spots of the list with no modifications and the same name, it doesn't really matter which car we modify on the backend. Plus then we can stop tracking the index in the vehichles.

To Reproduce
Steps to reproduce the behavior:

  1. Look at the update functions.
  2. See lots of index checking.
  3. Really silly.

Expected behavior
List.Extra should simplify that behavior a lot.

Get rid of modals

Modals in elm are not there yet in terms of mobile browsers. They just aren't that great and they are less clear when they should be displayed.

Sad to say but they must go.

Try to remove the silly tmp____ model entries

Describe the bug
There are three silly tmp____ entries in the Model. Those should be removed.

To Reproduce
Steps to reproduce the behavior:

  1. Look at the model.

Expected behavior
The model is more cleaned up than before.

Device (please complete the following information):

  • All

Convert the "add" pages to modals rather than separate pages

Is your feature request related to a problem? Please describe.
Having multiple pages is kind of annoying.

Describe the solution you'd like
Convert the "add" pages to modals.

Describe alternatives you've considered
Having multiple pages, which feels clunkier.

Add printer friendly version for lamination

Is your feature request related to a problem? Please describe.
Right now printing any single thing in the app results in incomplete data.

Describe the solution you'd like
There should be a printer friendly version that displays all the data at once in a table of some kind so people can print a squad and laminate it or whatever.

Move to elm-bootstrap

Describe the bug
Manually writing bootstrap classes is lame.

To Reproduce
Steps to reproduce the behavior:

  1. See how many divs I have.

Expected behavior
Bootstrap has been written for me.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.