Code Monkey home page Code Monkey logo

openbazaar-client's Introduction

Note: This project is no longer maintained. Please see version 2 at https://github.com/OpenBazaar/openbazaar-desktop


OpenBazaar-Client (v1.0) (deprecated)

Build Status Slack Status

You must be running the OpenBazaar backend for the client to work! If you are using a remote server (a server on a different computer) your connection will fail on the first install, and you will need to enter the information for the remote server as a new connection.

Dependencies

Running

  1. Clone the client repository into a directory of your choice:
  • git clone https://github.com/OpenBazaar/OpenBazaar-Client.git
  1. Navigate into the new folder created in (1)
  • cd OpenBazaar-Client
  1. Install the client
  • npm install
  1. Run the client
  • npm start

Remember you must be running the OpenBazaar-Server for the client to function properly. If you want to access the test network (testnet), run the server using the -t flag (e.g. $ python openbazaard.py start -t). If your router blocks your port after starting and stopping the server, you can set your server to a new port with the '-p' flag (-p followed by a port number).

If the server component has not generated a GUID (which happens only once, when the server is first started), then the client will not fully start up until the GUID is created.

Current (v1 Mainnet) Release Tracker can be found here: #965

API Documentation

The client uses the following REST API calls.

Websocket API calls are yet to be documented.

Translations

Translators around the world are welcomed.

You can start translating at our Transifex project:

Many thanks!

openbazaar-client's People

Contributors

andresj551 avatar ayalan avatar cpacia avatar dekker3d avatar djbooth007 avatar drwasho avatar gubatron avatar hoffmabc avatar holtjohnson avatar hostfat avatar ilxwolf avatar jamesdwilson avatar jjeffryes avatar jonathancross avatar justindrake avatar kirvx avatar libter avatar loderunner2 avatar mariodian avatar markm1992 avatar mpatc avatar nissimk avatar pryds avatar reedrosenbluth avatar richardschneider avatar rmisio avatar saltduck avatar squirrel2020 avatar strml avatar z3ntu avatar

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  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  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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

openbazaar-client's Issues

[Idea] Add `test` flag to contracts

A lot of users will want to kick the tires on OpenBazaar when the start it up. What if we allowed users to create listings with a flag that said this was a test contract?

Additional thoughts:

  • In these contracts, the buy button could be disabled.
  • In the settings, there could be an option to display test listings or not

Clean install: won't connect, logs `failed user ssl` in console

Latest from master. Reproduced on Windows 8.1 and Ubuntu 14.04.

Client shows:

http://localhost:18469/api/v1/cannot be reached.
Check your server and restart the client application

Console repeats:

/home/aron/Development/OpenBazaar/OpenBazaar-Client/js/app.js:58 4c549b00300518eaf85d48806d7fb339a020c666
/home/aron/Development/OpenBazaar/OpenBazaar-Client/js/app.js:62 Object {}
/home/aron/Development/OpenBazaar/OpenBazaar-Client/js/app.js:89 failed user ssl

Disabling this check (

if (response.ssl){
) makes it skip through to the product view.

User page store tab

The store tab should only display on the user page if the user has added a store to their page.

GET Image Error on the Home Page and Store Page (Header Image)

When I fired up the client on the home view, I get the following error:

image

When I went to the Art Store (seed server), I received the following error:

image

As you can see, for some reason it is trying to make an API call with 128.199.118.253 instead of localhost. What's even weirder about this, is that the address is my other node hosted remotely and not even the seed server's IP address.

When I replaced the address with local host and search for the hash of the image (on the Art store page), this is what I get:

image

^ So this is clearly supposed to be the header image of the seed server. I also couldn't pull out the image it is trying to load on the home page, even with localhost.

Client stuck loading

With server running client loads but is stuck here:

screenshot from 2015-10-28 09 35 36

Nothing in console. Client log:

[15253:1028/094659:ERROR:browser_main_loop.cc(185)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
[15278:1028/094700:INFO:renderer_main.cc(200)] Renderer process started
[15282:1028/094700:INFO:renderer_main.cc(200)] Renderer process started

Updater

Opening issue as a reminder to ensure we have some method for end users to update code themselves. Ideally it would be integrated into the UI.

Windows: Images are not displaying correctly or at all

  • Avatar images are not displaying in the admin panel
  • When I attempt to call the image directly via the browser
    • Command: http://localhost:18469/api/v1/get_image?hash=92158530f0f4f47a061d008eeb2c919d80f1fe74

The image looks like this:
image

Admin Panel: Handle

At the moment it's not obvious that the user needs to add @ before whatever handle they want.

image

Isn't this going to be tied to Onename's blockchain ID? If so, then I guess we'll be circling back to this issue.

Enhancement to main screen browsing experience.

This has been brought up a few times and I wanted to suggest an idea on how to resolve the problem.

Problem: Clicking an item on the homepage takes you to the contract detail screen on the vendor's page and then clicking back to home refreshes the entire list of items. Once the items reload again, the ordering of the items no longer matches the prior order, which makes the user have to dig through the same items multiple times and having to wait for it to reload feels unnecessary. This doesn't make for a great browsing experience, in fact it's pretty bad.

Solution: Let's identify when the user is casually checking out items; toggling back and forth between home and contract detail pages. If they are casually browsing, do not rebuild the list, instead cache it. We can safely append new items to the bottom of the list (lazy load style), but let's not blow away what has already been loaded.

At some point (let's say 30 minutes of inactivity), delete the cache and fetch from the network. Fetching should also happen on launch of the client and clicking reload while on the main screen could also destroy the cache and fetch from the network.

The only negative I can think of is nodes may go offline while they're still displaying in your cached list. I'd imagine this would only happen on a small percentages of clicks though since the cache doesn't live very long.

Open to ideas on how to make this even better.

Font weirdness

font weirdness

Quote from Josh: "Font looks like anti-aliasing is turning on and off."

Image Compression and Stripping of EXIF

When attaching images to a contract listing the software we should resize and compress the image to a reasonable image format. We should also look to strip the EXIF data as w ell.

Listing image improvements

Example

image

Suggestions

  1. Selecting a smaller image changes the larger image to what has been selected.
  2. Clicking on the larger image maximizes the image + zoom in/out functionality.

UI for Pricing Tweak

image

This should not say NaN if no value is set, but should either have a placeholder or no value.

Also fiat should only go out to two decimal places I would think (i.e. $23.34 USD).

Integrate keyboard shortcuts to quickly navigate to core pages

Hitting the following keys should take you to the appropriate sections. We also need to output the hotkeys in the user navigation (like below) so it's apparent they exist. I tried to select keys that aren't already mapped to shortcuts like ⌘c for example.

openbazaar-keyboard-shortcuts

In addition, ⌘h should take you home.

Also, we'll need to support multiple operating systems, so if the user is on Windows, ⌘ should be replaced with CTRL.

@jjeffryes this may be a good one for one of your helpers or someone in the community looking to contribute and add a meaningful enhancement.

User page scroll is jumpy

The header no longer falls back into place cleanly when going from the compressed slimmer header to the full header. I need to find out what caused this and resolve it.

Error messages from commit

@hoffmabc posted them in Slack and I was getting the same errors:

[40116:1014/235715:INFO:CONSOLE(18)] "undefined", source: /Users/brianhoffman/Projects/hoffmabc/OpenBazaar-Client/js/views/itemShortVw.js (18)
[40116:1014/235715:INFO:CONSOLE(18)] "undefined", source: /Users/brianhoffman/Projects/hoffmabc/OpenBazaar-Client/js/views/itemShortVw.js (18)
[40116:1014/235715:INFO:CONSOLE(18)] "undefined", source: /Users/brianhoffman/Projects/hoffmabc/OpenBazaar-Client/js/views/itemShortVw.js (18)
[40116:1014/235715:INFO:CONSOLE(18)] "undefined", source: /Users/brianhoffman/Projects/hoffmabc/OpenBazaar-Client/js/views/itemShortVw.js (18)
[40116:1014/235747:INFO:CONSOLE(107)] "Uncaught TypeError: Cannot read property 'flat_fee' of undefined", source: file:///Users/brianhoffman/Projects/hoffmabc/OpenBazaar-Client/index.html#userPage (107)
[40116:1014/235752:INFO:CONSOLE(107)] "Uncaught TypeError: Cannot read property 'flat_fee' of undefined", source: file:///Users/brianhoffman/Projects/hoffmabc/OpenBazaar-Client/index.html#userPage (107)
[40116:1014/235753:INFO:CONSOLE(107)] "Uncaught TypeError: Cannot read property 'flat_fee' of undefined", source: file:///Users/brianhoffman/Projects/hoffmabc/OpenBazaar-Client/index.html#userPage (107)

Text overlaps profile image

This is when you scroll to the bottom and it shrinks the avatar image. (on ubuntu, don't know about others)

image

[Startup] Header image error

Not a bug exactly but if you start a fresh node and attempt to change the header image first, the client will give you an error saying that it needs a name and location, which are the constraints of the API. Something to be aware of in the future.

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.