Giter Site home page Giter Site logo

weekplanner's People

Contributors

adrianplesner avatar alb3rg avatar antonhpalmer avatar bargsteen avatar boginw avatar cmgrosen avatar ctxd avatar dennisjuhl avatar frederikspang avatar giano574 avatar j-karls avatar jenspetur94 avatar laukondrup avatar lildhansen avatar mathiasandresen avatar mrpekar98 avatar msimon16 avatar nikolajljo avatar randers114 avatar rosmarium avatar scarress avatar sijmon avatar simkortet avatar simon97 avatar sipman avatar sweapz avatar t-hauge avatar teiturmcswagger avatar tekrus avatar tobiaspalludan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

weekplanner's Issues

Tests cannot be run

Describe the bug
In Visual Studio, when pressing Test -> Run -> All Tests the following output is shown:

[04-03-19 11:18:47 Informational] ------ Run test started ------
[04-03-19 11:18:50 Error] Unable to find C:\Users\Magnus\Desktop\University\Ny mappe\WeekPlanner.Tests\bin\Debug\netcoreapp2.0\WeekPlanner.Tests.deps.json. Make sure test project has a nuget reference of package "Microsoft.NET.Test.Sdk".
[04-03-19 11:18:50 Error] Unable to find C:\Users\Magnus\Desktop\University\Ny mappe\WeekPlanner.Tests\bin\Debug\netcoreapp2.0\WeekPlanner.Tests.deps.json. Make sure test project has a nuget reference of package "Microsoft.NET.Test.Sdk".
[04-03-19 11:18:50 Informational] ========== Run test finished: 0 run (0:00:02,7074476) ==========

Updating the nuget package didn't help.

If WeekPlanner.Tests is chosen as the execution target, and the project is run, the following error message is supplied:

The program '[12524] dotnet.exe' has exited with code -2147450751 (0x80008081).

To Reproduce
Steps to reproduce the behavior for all tests:

  1. In Visual Studio, press Test in the toolbar
  2. Go in the submenu Run.
  3. Press All Tests.

Steps to reproduce the behavior for WeekPlanner.Tests:

  1. Choose WeekPlanner.Tests as the execution target.
  2. Run it.

Expected behavior
Expected no errors.

Actual behavior
Got errors.

Additional context
A lot of tests seems to be commented out. Should we consider starting over?

CC: @Sworgon

As a guardian I would like to be able to add a new activity on a citizens week plan so that it fits their schedule

Tasks:

  • Make a Pictogram search widget (or if one exists, use it)
  • Make a BLoC that should have the responsibility of adding a activity(Pictogram) to a weekday, remember that a weekday belongs to a citizen. This BLoC could have both the obligation to send the http request to the web-api and stream the result to a listener.
  • Make the weekplan-screen allow for the click on the plus button. (This might requirer a BLoC in order to keep track of state)

This story is blocked by #46

Load configuration from configuration file

Should have a standard configuration.template file that is version controlled, and which every developer should copy (and remove template from) in order to setup the environment.
It should be split into a local and a production file.

Configuration file should include:

  • debug [true/false]
    • Used for showing/hiding the 'autofill and login' button
  • Server base url [textstring]
    • So we can use a production database and a localhost database

More might be added.

Find inspiration in Laravel .env files or Angular's environment.ts files.

Add CI for Flutter

Make automated CI run for the Flutter project.
It should not be possible to merge a PR before the automated CI approves.

As a guardian I would like to be able to add a new citizen, so that the system is easily set up when a new citizen starts at our institution

Is your feature request related to a problem? Please describe.
It is currently not possible to add a new citizen.

Describe the solution you'd like
The list of citizens should show a function to add a new citizen . When pressed a new window should allow the guardian to take a picture. If no picture is chosen then use the current circle as default.

Prototypes
AddCitizenPrototype1
Add citizen - Not Done or imp

As a guardian I would like to be able to create a new week plan so that it is suited to the given citizens week

  • Screen for adding new week plan that contains the following information:

  • Name of weekplan
    
  • Year of the weekplan
    
  • Week number (of the year)
    
  • Pictogram selector (This should use the same pictogram searcher as new activity see #46)
    
  • A button to select a week template (the feature do not require implementation of the week template feature, only the button)
    
  • A button to save
    
  • A BLoC to archieve the functionality, or implementation of existing BLoCs

  • Redirect to show weeks after adding a new week plan

Move support for queryparams to HTTP in pictogram_api

In getAll in pictogram_api.dart the following TODO should be solved:

TODO: move the support for queryParams to Http

  /// Get all public pictograms available to the user (i.e the public pictograms
  /// and those owned by the user (PRIVATE) and his department (PROTECTED)).
  ///
  /// [query] The query string. pictograms are filtered based on this string
  /// if passed
  /// [pageSize] Number of pictograms per page
  /// [page] Page number
  Observable<List<PictogramModel>> getAll(
      {String query, @required int page, @required int pageSize}) {
    // TODO: move the support for queryParams to Http
    Uri uri = Uri(queryParameters: {
      "query": query,
      "page": page.toString(),
      "pageSize": pageSize.toString(),
    });

    return _http.get('/pictogram' + uri.toString()).map((Response res) {
      return (res.json['data'] as List).map((map) {
        return PictogramModel.fromJson(map);
      }).toList();
    });
  }

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.