Coder Social home page Coder Social logo

julbrs / montessori-ressources Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 2.08 MB

Montessori Ressource web frontend based on ReactJS

Home Page: https://montessori-ressources.net

CSS 0.08% JavaScript 0.77% Shell 0.12% TypeScript 99.03%
hacktoberfest nextjs react

montessori-ressources's Introduction

Hi there 👋

montessori-ressources's People

Contributors

analuspi avatar johnrawlins avatar julbrs avatar staudenmannm avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

montessori-ressources's Issues

Create the validation screens

Based on the issue montessori-ressources/api#4 we want to create dedicated screens and views for the validation process.

An idea can be to have a admin section with:

  • the list of draft nomenclature
  • for each draft nomenclature a validate action (when clicked the nomenclature is removed from the draft collection)
  • accessible only for ADMIN user of the platform.

(Blocked by montessori-ressources/api#4)

Card count must be correct

On nomenclature list the card count must show the number of cards

image

Here it show 6 but it must show 1 because there is only one card/image in this case.

PDF: Clean up the 13x13 format

Goal is to have a clean PDF output:

  • images must be shown in a 13cm x 13cm card (correctly resized, and the card must be always this size even if the image is not square. the image must be resized only not cropped and keep aspect ratio)
  • the crops marks must crop outside of the image (actuallyit take 10px of the image, so it 'remove' a piece of the image on left and right side !)
  • change the PDF size to Letter instead of A4 (because it is the most common paper in QC, and it's bigger than A4 more used in Europe)

Hide not-yet developed part

The text section on the right is not yet developed. Maybe we can hide it for the first release ?

image

Thanks !

Thumbnail - show other image when hover

Currenlty the nomenclature list show only the first image as thumbnail.

The goal of this enhancement is to be able to show to the user the others images when hovering with the mouse.

Good idea of Sonia ;)

If issue during nomenclature creation then no warning

We must advise the user that an issue has occured during the nomenclature creation.

I am suggesting to add a notification if there is an issue, like the one we can see in admin panel:

image

Take for example the case #62

Render correctly on mobile

Currently on iphone8:

image

It must be usable

  • fit the image
  • fit the nomenclature box

Make a responsive template.

Modify the download button (allow pdf customization)

Actually each nomenclature have a single download button.

We want to change that in order to allow customization of the rendered pdf.

In the documentation, we describe the 5 levels.

I suggest a template like that to select the desired level before getting the pdf:

image

The backend may need to be modified.

Implement the Download Counter

The goal is to implement the Download Counter:

image

It must start at 0, and add 1 each time the nomenclature pdf is shown.

The backend must be modified to allow this.

PDF: Setup a 14x14 format

Once the #85 is done we will have a clean 13x13 format.

We want to allow the end-user to be able to choose a 14cmx14cm card size for PDF generation:

  • add a drop down list before generating the PDF to choose the size (13cmx13cm or 14cmx14cm)
  • only 1 image per page with the 14x14 format
  • keep the letter size

PDF rendering / CORS issue

On my computer when sowing a PDF to print a nomenclature, using Safari 13 browser:
Screen Shot 2020-02-25 at 12 50 58 PM

But it work after cleaning the cache.

I have the same issue with Chrome.

I don't have the same behavior with Firefox

Add Image Label + Nomenclature Name at creation

Currently the nomenclature creation is basically only the dropzone:

image

We suggest to add a way to:

  • add a label on each image (currently always blob)
  • add a nomenclature name

It will be probably necessary to modify the backend.

Add authentication layer

  • Only auth user can download content
  • Only auth user can create new content
  • Only auth user can edit content

Depend on authentication implemented on the backend (see here)

Hamburger navbar doesn't work (mobile)

The Storybook shows a onClick handler that sets the state to change the hamburger into a cross. We need to have some kind of handler that sets the active prop to true. That will change the hamburger to a cross whenever you click the component.

Something like this:
state = { active : false }

handleClick = () => { 
    const { active } = this.state;
    this.setState({ active: !active }); 

<Navbar.Burger
              active={this.state.active}
              onClick={this.handleClick} />

Info page

Add content to info page. Check with Sonia.

Implement the like counter

The goal is to implement the like counter:

image

Each time a auth user is pressing a like then it add +1 to the nomenclature like. Each user must be able to like only once a nomenclature. (like star a project on github)

The backend must be modified for this.

Render correctly the Download button

How to reproduce

List nomenclatures

image

Current behaviour

  • You see the pdf when you click on Print me

Expected behaviour

  • See the pdf when click on Download
  • Remove the Print me link

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.