Git Product home page Git Product logo

urban-brussels-api's People

Contributors

dependabot-preview[bot] avatar jbelien avatar mars073 avatar speedbuilder avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

urban-brussels-api's Issues

🥁 Battle plan

  • Landing page routes
    • Fun facts #16
    • Random buildings
  • Building lists
  • Building details page
  • Dashboard
    • ...

Fix "class" in fun facts

Don't put a tag on the building name, we can't search for it !

fact = fact.replace('{0}', `<span class="tag tag--type tag--small tag--no-margin">${row.building}</span>`)

fact = fact.replace('{0}', `<span class="tag tag--style tag--small tag--no-margin">${row.building}</span>`)

fact = fact.replace('{0}', `<span class="tag tag--style tag--small tag--no-margin">${row.building}</span>`)

fact = fact.replace('{0}', `<span class="tag tag--architect tag--small tag--no-margin">${row.buildings_name}</span>`)


Change class "architect" by "style".

fact = fact.replace('{0}', `<span class="tag tag--architect tag--small tag--no-margin">${row.styles_count}</span>`)


Change class "architect" by "typology"

fact = fact.replace('{0}', `<span class="tag tag--architect tag--small tag--no-margin">${row.typologies_count}</span>`)

Fun Fact inconsistencies

Wist je dat het gebouw Manufacture Royale de pianos François Berden et Cie - Confiserie Chocolaterie Antoine de volgende typologieën heeft: burgerwoning, werkplaats (ambachtelijk), tentoonstellingszaal, fabriek en herenhuis.
& Wist je dat het gebouw Scholencentrum Sacré-Coeur de Lindthout de volgende typologieën heeft: orgel, school, conservatorium/kunstacademie, kasteel en kerk/kathedraal/basiliek.
& Wist je dat het gebouw Maria Assumptalyceum en Basisschool, Ecole Primaire en Lycée Maria Assumpta en Institut Christ-Roi de volgende typologieën heeft: kinderbewaarplaats, school, pastorie, parochiezaal en kerk/kathedraal/basiliek.
& Wist je dat het gebouw Josaphatpark de volgende typologieën heeft: kiosk, sportcomplex, fontein, Zitbank, brug en beeldhouwwerk en herdenkingsmonument.
& Wist je dat het gebouw Voormalige hoofdzetel van S.A. Les Tramways bruxellois de volgende typologieën heeft: burgerwoning, kantoorgebouw, bijgebouwen, gelijkvloers met handelszaak en herenhuis.
& Wist je dat het gebouw Brusilia de volgende typologieën heeft: pompstation, sportcomplex, appartementsgebouw, winkel en warenhuis/supermarkt.
=> the typologies in these fun facts are grey boxes that lead to the building list but don't actually add to the search
-- @jbelien : Moved (back) to Front-End : oSoc20/urban-brussels#65


Wist u dat er een gebouw is met 46 verschillende bijdragers ? Dit gebouw is Gemeentehuis van Sint-Gillis.
=> The building name here links to the iris monument page instead of our own detail page for it. (This is also the only building name that links to anything, so either link every building name or none?)


undefined
=> Even when I wait this still stays, but might have something to do with clicking on a fun fact tag, going to the building list and then just going back in my browser instead of clicking home (because the home button is not published yet)
-- @jbelien : Moved (back) to Front-End : oSoc20/urban-brussels#62


Less of an issue:
Wist u dat het gebouw Abdij van Dieleghem - voormalige prelaatwoning dateert van 1775, waardoor het één van de oudste gebouwen in Brussel is.
=> building name can link to detail page (has no links now) + maybe also create a tag for years? Or is search on year not enabled right now?

-----> Building name can't link to detail page since there is no specific page for each building
-----> Search by year put on TODO list

Inconsistencies between 'Wist u' and 'Wist je' for the Dutch fun facts (can be 'wist je dat' overall imo)

Make route 'fun facts'

GET
/fun-facts
    { lang: 'fr' }
    [
        { fact: 'yo to' },
        { fact: 'yo te' }
    ]
  • request: the language
  • response: 2 fun facts

Strict search

Enable the possibility to having a strict search, where it becomes an AND operator instead of the OR operator it is now.

Make route 'search'

POST
/search
    request: { lang: 'fr', type: 'style', value: 'Jean-Bon VIIc', limit: 10, offset: 20 }
    response: {
        [
                { id: 3b5eea1d-d825-4cd9-9a18-63e0cc2afed4, ...infos }
        ],
        show: 1,
        results: 35
    } 35/10  => 4



GET
/search/random
    request: { lang: 'fr', limit: 10 }
    response: {
        [
            { id: 3b5eea1d-d825-4cd9-9a18-63e0cc2afed4, ...infos },
            { id: 3b5eea1d-d825-4cd9-9a18-63e0cc2afed4, ...infos }
        ],
        show: 2,
        results: 2
    }

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.