group6blockchain's People
group6blockchain's Issues
Alert to log in for new user
Currently, new user clicks the purple arrow and the site gives no feedback whatsoever that they should log in to be able to add blocks.
Site throws an alert only if user has logged in and then logged out.
Add content to eventlisteners "viewMyLocationsBtn" and saveLocationBtn"
In module logInAndOut there are currently two empty eventlisteners who need content as follows:
saveLocationBtn: The function in Chain module that creates a new block. (Exists but not finished)
viewMyLocationsBtn: A function for displaying the location currently logged in user has saved. (Not created yet)
Restyle the website with all functions of the blockchain
Make a separate module for the "display public data"-functions
They are currently in LogInAndOut-module.
Map or list logged locations
Registered user should be able to list out locations they have been logged in at and/or added data to the chain from.
Even better, display on a map.
Block class
Skapa
Flytta boxen
Vi behöver flytta loginformet till mitten.
reduce number of fetches --> debounce instead of hammering API
Debouncing:
I have, unknowingly, been hammering the API by attempting to fetch on every key press where it would autocomplete on user input.
One well known use case for debounce is a search bar that gives suggestions while you type.
You may not want to fetch suggestions from your API every time a user presses a key, as this could create a huge load in the backend and hinder performance.
Instead, you can debounce this function, so only after the user has stopped typing for more than a certain amount of time (either pause between words or finished typing), only then a call to the API is made to fetch the suggestions.
Add buttons in logged in view for adding and viewing blocks
There needs to be two more buttons in the logged in view:
- Save my location to the chain
- View my saved locations
Toggle dropdown list buttons
Both for logged-in user's listing of own blocks, and for public users' most frequent logged locations display buttons
Currently, the lists become just doubled up upon second click. Refresh, or even better, toggle back to "no display" on second click.
re-use searchInput for adding data, OR do geocoding
searchInput field: currently only IP address can be entered, all else returns null
vs
geocoding: user enters city and it converts that into latitude/longitude
Have already been looking into this and could not find a suitable free API that can do geocoding but now I have some new ideas -- I might give it another try. It's not a high prio thing right now.
Alternatively,
use this field to enter some other data, for example whatever we are adding to the chain and keep only the button to fetch coordinates.
Extend the background of the page
We need to extend the background n the bottom of the page to make room for more content when logged in.
Validate chain funktionen
Är inte på plats.
General description of what service we're building + motivate
In .md file
Clean up logInAndOut module
Many thing in there could be broken out into sepearate functions, other modules etc. For example validate function - since it is a static function (availiable both logged in and out) it should be either in script.js, or in a module of its own.
use both geoLocate (ip-->lat/long) and geoCode (user entered address --> lat/long)
To get a response regardless input type.
Motivate use of chosen API
Hashningsfunktion
Skapa i funktion i modul
Chain class
Skapa funktion i modul
Add validate chain front end bits
From its learning: Eran kedja skall ha en öppen valideringsfunktion som användare skall kunna köra för att validera kedjan.
What does "öppen" mean..? Availiable in logged out mode?
-A validate chain-button
-A return (an alert maybe?) that tells the user if chain was valid or not.
Do we need to update "validate chain" to fetch hashes from LS?
Add some kind of message on successful validation
Not just a console log
Valideringsfunktion
Skapa som funktion i modul
Save the blockchain in localstorage
loggedOut se utvalda delar av kedjan
Move Verify Chain button in logged-in view
Sometimes the drop-down list covers it. Would be better right under the logout button? Or top right corner, or floating (sticky) in bottom left corner etc.
Mining Function?
Fix export/import Block.js -> Linking all modules
Fix black background
Fick so that it scrolls down however long the list of the displayed blocks is. I now set it to 1000vh but that's a quick and dirty solution
Give some feedback to user that a new block has been added
Other than just in the console.
Success, the block has been added, or new chain length, or something. Not all users open a site with a console log :)
consistent naming
images --> img folder
update references in html/css
Lägga till SALT i hashingfunktioin
searchButton broken
API fetch broke
Add location data in Blockchain (long + lat + user)
locationScript fix
to be able to enter location as string, too
Location script update
Opening new issue due to conflicts.
Nothing to actually do here.
Already clean script.
Toggle "Here are your saved blocks" view
viewMyBlocksButton toggle
We need to make a descision on design
We have two suggestions on design, one from Cathy and one from Jakob. Lets discuss in todays meeting.
Put ability to add blocks (and view their added blocks) in loggedInView only
From Its learning: "Tjänsten skall även ha en inloggningsfunktion där användare skall kunna spara och lägga till saker i kedjan. Samt se sina block i kedjan."
Add styling to login input and button
At the moment they have minimal styling.
IDs:
loginBtn (this id is already added in the CSS-file).
loginInput
locationscript 2 apis, debouncing
for prototype
took away second api temporarily
createGenesisBlock.js
Add local storage functionality to the chain
We're supposed to use local storage as database for the chain.
infoBox misaligned
on mobile view, infoBox gets out of alignment relative to the search box
if I take away rows 18-23 from the HTML, it's fixed. Can't spot trouble now.
geoMI
YOU can always run, But you can never HIDEchain in LS fix
Latitud och longitud på startpage har tappat en blankrad
Behöver fixas så att koordinaterna ligger på samma nivå som location och de andra.
Style buttons & add new buttons (if nessecary)
Round down displayed lat/lon to 2 digits
Log in knapp och inputfält
Skapa
Put the name of currently logged in user in the welcomephrase in LoggedinView
Lets do it!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.