Coder Social home page Coder Social logo

rafaels88 / pinfluence Goto Github PK

View Code? Open in Web Editor NEW
26.0 6.0 1.0 633 KB

All world's influence in a map. Ruby and Hanami open source project.

Home Page: http://pinfluence.org

License: MIT License

Ruby 82.30% HTML 9.90% JavaScript 6.75% CSS 1.05%
hanami ruby clean-architecture clean-code non-profit nonprofit opensource graphql

pinfluence's People

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

yud96

pinfluence's Issues

Use database_cleaner on specs

Today our specs are implementing an own database cleaner helper to clean the tables on each spec. But it is badly implemented, since it is necessary to call the helper on every spec file, and it is looping on every repository to call for each repo object and clean its database. Yes, it is dummy.

This task is about to replace this implementation to use the database_cleaner gem https://github.com/DatabaseCleaner/database_cleaner

Admin user creation

Today, we need to create a new user using the console in command line. It should be possible to create a new admin user from admin dashboard.

Change year format to date

Nowadays, we play with Moment #year_begin and #year_end, changing between years on the Map slider. But this is bad because some influences have a lot of history to tell within a year. For that reason, we need to play with dates(yyyy-mm-dd) instead of years.

This is going to be a huge task. The changes to aim:

  • Columns Moment #year_begin and #year_end must be changed to #date_begin and #date_end;
  • Backfill for all current Moment's years to date format
  • When a searched influencer is selected, Map slider should display only dates relates do the searched influencer, not all available dates on the system anymore;
  • Search field must have a X icon to cancel current searching and display map normally (all influences on current date and slider showing all available dates on the system)
  • Next step on the Map Slider should be the next available date based on the moments found (related to the current searched influence), and not the next year;
  • Keep the support for negative (BC) dates

Create new entity Tag for influencers

It should be possible to CRUD tags in admin and associate an influencer to one or more tag.

All tags are case insensitive, so "Activist" == "activist"

Better info window on Map

All influencers names are shown in Google Maps InfoWindow, but it is really ugly and take to much space. We need a better design for that.

Insert a README.md

Hello World!

  • Add a readme file to project
    • Add description about project
    • Badges?
    • How to contribute
    • Code of Conduct
    • Add a how to build the project (pre-requisites)

Influences Search

It should be possible to search for influencers with no need to search for the exact influence name. To accomplish that, it should be implemented an indexed search using Elastic Search. But, there is the need to discuss about how to index this information.

Rubocop normalization

All code should be ok to rubocop verification.

Remember to change travis-ci building to check rubocop syntax

Variation of influencers name

Some names have different variations, for example: Siddhartha Gautama / Buddha / Buda

So, for some names, it may change depending on language and different nicknames. It should be possible to be shown the most famous name depending on current website language and how the influencer is most known in this language.

Error when creating moment's location

When we create a Location for a Moment with an invalid location address, an error 500 occurs.

It is expected to be shown the error in the screen with all form filled with previous filled informations.

List of Tags for influencers

This is a conceptual discussion.

Each person should be associated to one or more tag. Everyone needs to be associated with at least one tag.

For now, we have:

  1. Activism
  2. Religion/Spirituality
  3. Science
  4. Art
  5. Sport
  6. Politics
  7. Philosophy
  8. Education (maybe it is too embracing)
  9. Business

But all of them should be better discussed.

Create status for Moment

A moment can be as draft or published.

API / WEB

  • All draft moments does not appear in the API result.

Admin

  • The moment form should have a drop-down which indicates the current state for the moment;
  • The default status is Draft;
  • It should have a new column in Moments list to show the current status
  • It must be possible to change the moment status in the Event editing/creating page;
  • It must be possible to change the moment status in the Person editing/creating page;

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.