Giter Club home page Giter Club logo

backbone's People

Contributors

augustpi avatar coni2k avatar jackrataty avatar ryki02 avatar thenoelman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

backbone's Issues

css on mobile could use some refinement

I was looking at the site on my phone and noticed that the css is rather clunky on a few screens. I'm thinking that this is something that could be fixed by adding bootstrap, but wanted to hear your thoughts before I went down that path. A few screenshots are attached.

screenshot_20180605-182329
screenshot_20180605-182307
screenshot_20180605-182233
screenshot_20180605-181824

WebAPI - Cache CORS allowed origins list

WebApi - CorsPolicyProvider class is reading / constructing allowed origin list for each request.

To prevent performance issues, cache the list and update it only if there is a change in the list.

WebAPI - Improve exception handler for model validation errors

Improve exception handler for EntityValidationErrors!

To test the current state:
Use "dev-all" module in main.ts, navigate to "OData" link, and use "Project - Create own" button after removing one of the mandatory fields. It returns "Internal server error" even though it should return "400 Bad request" by mentioning what is invalid with the model.

Web API - Request and Origin check

There should be a validation between the domain that the request comes from and the project that the user is trying to interact through Project - Origin field.

It shouldn't be possible to make a request from a domain to a project that the domains (origins) don't match.

Investigate: How to allow "AllowedOrigins" setting to be set dynamically

"AllowedOrigins" setting determines which clients can access to WebApi by using CORS.

Currently this is set under "appSettings.config" file as a static list:
WebApi/Configs/appSettings.config

<!-- Allowed origins in CORS policy -->
<add key="AllowAnyOrigin" value="true" />
<add key="AllowedOrigins" value="" />

Then "WebApi/App_Start/CorsConfig.cs" file uses this setting when WebApi starts:
foreach (var allowedDomain in Framework.AppSettings.AllowedOrigins)
{
policy.Origins.Add(allowedDomain);
}

Since every project should be able to have their own domain/host, we should be able to update this setting dynamically.

Alternative is to allow every domain/host (*) to interact with our WebApi, but since it may have an impact on security, this should be the last resort.

AngularClient - Designer notes

Notes from Lama, our designer

1/1 The red square is to indicate how the demo video is supposed to look.
1/2 The screen shot is taken from a mac desktop. The proportions of the screen and the assets are fit for laptop screen sizes but they should be adjustable across all screens to look the same. I recall it being an issue my previous developer came across.

image

1/3 side bar shows on the left handside of the landing page when screen minimized.

image

WebAPI - Improve validations

  1. Same element can't be selected as "SelectedElement" by more than one field.
  2. If "ElementField - UseFixedValue" is on, requests to create "UserElementCell" shouldn't be possible.

Project viewer / editor update

Currently there is no "overview" page for the projects, need a new page that can replace old "viewer/editor" pages.

Initially this page can contain a very basic information about the project:
. Name / key of the project
. Owner (user name)
. Created / modified on
. Number of elements, fields, items, cell, user element cells.

Projects that are shown in search / profile / admin - projects pages can have a link to this page.

Existing files can be used as a base from Wealth Economy:
/main/project/project-editor.component.css
/main/project/project-editor.component.html
/main/project/project-editor.component.ts
/main/project/project-viewer.component.html
/main/project/project-viewer.component.ts

Later on, this page can display all elements/fields/items/cells and their details.

Migrate Wealth client to Backbone API

Currently WealthEconomy client has its own WealthEconomy API:
https://github.com/forCrowd/WealthEconomy

Move it to new Backbone API, and remove WealthEconomy API (it should only contain AngularClient project).

Differences between Wealth & Backbone APIs:
. ResourcePool -> Project
. Project - InitialValue
. Element - IsMainElement
. ElementField - IndexEnabled -> RatingEnabled
. ElementField - IndexRatingTotal + Count -> RatingTotal + Count
. ElementCell - NumericValueTotal + Count -> DecimalValueTotal + Count

Improve admin panel

Display user & projects from, from today, from last week, from last month, total
Display last 5 users & projects

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.