Coder Social home page Coder Social logo

cc-archive / cccatalog-frontend Goto Github PK

View Code? Open in Web Editor NEW
162.0 33.0 196.0 180.95 MB

[PROJECT TRANSFERRED] CC Search is a search tool for CC-licensed and public domain content across the internet.

Home Page: https://github.com/WordPress/openverse-frontend

License: MIT License

JavaScript 49.23% HTML 0.05% Vue 49.56% Dockerfile 0.16% SCSS 1.00%
vue creative-commons frontend cc-search javascript discontinued

cccatalog-frontend's Introduction


Project Transferred

This project was transfered to WordPress:

  • WordPress/openverse-frontend: The gateway to the Openverse. Openverse is a search tool for CC-licensed and public domain content across the internet.

For additional context see:


cccatalog-frontend

cccatalog-frontend-ci

CC Search is the official web application for the Creative Commons Catalog API . CC Search is an interface to search for content that is licensed under Creative Commons licenses or marked with public domain tools. This repositiory contains all the front-end code.

The application is avaliable at search.creativecommons.org.

Technology

The frontend app is built using Vue.JS and NuxtJS. You can learn more about the migration to Nuxt.js here.

The user interface is powered by Vocabulary, Creative Common's design system. If you have an issue with colors or a specific ui component, it should probably go in that repository.

Local Development

Run the following commands in order to have the code up and running on your machine:

# installs dependencies
npm install

# Builds and serves assets with hot-reload
npm run dev

Docker setup

Alternatively, you can use Docker to build and run the application. You just have to run:

docker-compose up

You should now have the application running and accessible at http://localhost:8443.

You don't need to have the CC Search API running locally to be able to run the frontend application. It's configured to communicate, by default, with the API that's already publicly available. If you wish, you can change the URL of the API that's used during development by setting the API_URL environment variable.

Running tests

You can run the unit tests by executing:

npm run test

localhost tunneling

If you want to make your local development server accessible to the internet (for testing or showing someone something you're working on), you can use ngrok. Follow the documentation on the ngrok site to install it and set it up. Once you have it installed, get the development server for CC Search running and in a separate window/tab, run:

# The extra parameters are required to ensure that ngrok redirects to the HTTPS version of the site
# and that the host header matches one that is accepted by the server
# (ngrok's default hostname is randomly generated and is not whitelisted).
ngrok http http://localhost:8443 -host-header="localhost:8443"

If you need to run a HTTP version (for example, if you're testing against third-party websites that do not accept the self-signed cerificate generated by the dev server), run the dev server using npm run dev and use the following command to start ngrok:

ngrok http 8443 -host-header="localhost:8443"

Formatting and Linting

The code in this repository is formatted using prettier. If you have prettier setup in your code editor it should work out of the box; otherwise you can use the npm run lintfix script to format and fix lint errors in your code. Checks are run to lint your code and validate the formatting on git precomit using husky.

You will need to fix any linting issues before comitting. We reccommend formatting your JavaScript files on save in your text editor. You can learn how to do this in Visual Studio Code here.

Versioning

CC Search uses CalVer for version numbering, in the YYYY.M.Micro format. This format is intentionally compatiable with NPM's semver parser. Micro is bumped whenever there are multiple releases in a month, for example 2020.07.1 is the first release in July 2020, while 2020.07.2 is the second.

Deployment

Details about how to deploy the frontend code can be found on the CC Wiki (Accessible to CC Staff only).

cccatalog-frontend's People

Contributors

abhisheknaiidu avatar akanksha-v avatar aldenstpage avatar amazzoccone avatar ankurshr01 avatar ariessa avatar arraxx avatar aryamanpuri avatar ayanchoudhary avatar brenoferreira avatar dantraztrev avatar devrd avatar dhruvkb avatar dos077 avatar elharony avatar geekayush avatar hemanth-hk avatar kgodey avatar krysal avatar neeraj-2 avatar obulat avatar rochisha0 avatar samcaspus avatar saurabhagarwala avatar sebworks avatar somtochiama avatar sudharsana-kjl avatar tanuj22 avatar vatsalsin avatar zackkrida 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

cccatalog-frontend's Issues

Replace /about page text

Replace current text at http://ccccatalog.herokuapp.com/about with the following, and also [insert symbol] with the Clarifai symbol below.

There is no larger compendium of shared human knowledge and creativity than the Commons, including over 1.4 billion digital works available under CC tools. Despite the tremendous growth of the Commons, and the widespread use of the CC licenses and public domain marks, there is no simple way to maximize use of, and engagement with, all of that content. There is no front door — no tool designed for the general public to facilitate discovery for the purpose of reuse and remix, to simplify the license terms, make attribution easy, or support curation, and crowdsourced metadata.

Creative Commons’ “CC Search” project will develop and release an open online search and re-use tool that will allow high-quality content from the commons to surface in a more seamless and accessible way. Our beta relies on open APIs and the Common Crawl dataset and focuses on photos as its first media type. It is meant to elicit discussion and inform our development as we build out the full set of tools. “CC Search” will enable users to curate, tag, and remix that content. It will go beyond simple search to aggregate results from across the hundreds of public repositories into a single catalog, and also facilitate the use and re-use through tools like curated lists, saved searches, one- or no-click attribution, and provenance.

This release contains several new features, including AI image tags generated from our collaborator, Clarifai. Clarifai is a best in class image classification software that provides tagging support and visual recognition. Clarifai’s API was integrated in the process-flow as a means to automatically generate tags for the new and existing images. This means that CC search has machine-generated tags, user-defined tags, and platform-defined tags that were obtained from the web crawl data. Collectively, these will enhance the user’s search experience and improve the quality of the results. Currently, 10.3 million images have their respective Clarifai tags and the outstanding images will be integrated on an ongoing basis. Tags generated via Clarifai are marked with a [insert symbol] on the detail page for each image. With this addition, we’re not just cataloging the commons, we’re making it better. Thank you to Clarifai for their support.

License filter order and presentation

The order in the license filter dropdown seems random. Any reason why this is so and not in order of most liberal to most restrictive?

Also, the filter is all lower case initials, e.g. "by-nc-nd" without any explanation. Maybe better to experiment to see what resonates with users... do users understand the initials? Would it be better if it read "CC BY-NC-ND" for example? or alternatively, "Attribution-Noncommercial-NoDerivatives"?

Explore Lists UX Curation and Sharing

After searching, users need the capability to quickly curate and share lists.

Notes

Need to explore how other sites handle sharing on other content curation platforms.

Screenshots

Submitted from @pa-w
image from ios

URI with filtering options does not load correctly

This is a bug
Steps to reproduce

  1. Go to https://ccsearch.creativecommons.org
  2. Search for cats (because that is what the internet is for of course)
  3. Filter on CC BY-NC licenses
  4. Change 'cats' to 'cat' and search again, notice that the address bar now states, also note that are no search results:
    ''''
    https://ccsearch.creativecommons.org/search?q=cat&provider=&li=by-nc&lt=
    ''''
  5. copy that URL and paste in a new tab.

Notice that the filter is not being set by the URI

License types filter order and presentation

The categories could be more specific, e.g. "commercial" should be "commercial use allowed". "Modification" should be "modification" allowed. Also, what if people want both commercial and modification allowed? A dropdown doesn't allow that.

"all-cc" could be written "All Creative Commons" to be clearer. See Flickr's search interface filters at https://www.flickr.com/search/?text=cat.

In general, like Flickr's search interface, filter categories should be capitalized and written so it is human readable.

mirror footer from cc.org

footer should be footer from https://creativecommons.org but with current cc search disclaimer text and sans the text "Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution 4.0 International license," also sans text "Website by Affinity Bridge," and sans the search box,

Browse page issues

  • Add a header (see main page issue)
  • The roll-up script should show the correct attribution (see above) and use the CC icons if possible as well
  • Tooltip should appear when mousing over circle+ to say “add to list”
  • Letterbox image format often crops the images so much that you can’t select one without clicking into it. That adds lots of clicks to the user to find the image they want. Ideally they should be able to see the whole image, or the significant majority of it.
  • Results equally favour tags and author names. Eg., in the “nature” list, the sixth image is by someone named “nerdy by nature”. Can we favour tag results first, exclude author names from search, or make “search by author name” an advanced feature?
  • Once you start scrolling down through results, the header quickly disappears, then immediately fades back in, but is no longer the full width of the page (Chrome desktop). 1) Not sure it needs to disappear/reappear, and 2) it should be the same width as the header bar
    Issue: it’s unclear that the word for the search is editable in the top left after selecting a result, so when you click the search icon and nothing appears to happen, it’s confusing - UI needs to be clearer here

Filters

  • “Providers” should be “Collection” or “Archive” or something else -- the “provider” is the author, so it’s a bit confusing
  • “Museum of the Netherlands” should be “Rijksmuseum” or “Rijksmuseum NL”
  • No ability to select multiple repos
  • Licenses should be all-caps, and formatted as users usually see them:
    CC BY, CC BY-SA, CC BY-NC-ND, PD, CC0, etc.
  • Is there a difference between the blank checkbox and “all”? If not, remove “all”
  • Add the “-” symbol or “no filter” in place of the blank space
  • Change “commercial” to “Commercial use permitted”
  • Change “modification” to “Modification permitted”
  • Change “all-cc” to “CC-licensed works only (no PD)”

Lists

  • When you add an item, the list pop-up appears, with no information on what it is.
  • You can’t click on the item in the list window to go to the detail page for it
  • When you close a list, it’s gone.

Home page issues

  • Add a header - could be the CC site orange header or a transparency w/ link
  • Add a feedback link (see prototype - ideally ask the same questions so we can compare data)
  • Wallpaper image - should have complete attribution: “Title” by AUTHOR, via SOURCE, licenced CC X

Top images

  • The vertical space between the images seems odd
  • The roll-up script should show the correct attribution (see above) and use the CC icons if possible as well

Top categories

  • Are the images here curated? Yes, all images on the home page are curated.

Footer

  • Mirror the footer from cc.org

Provider filter

Should be capitalized.

Will there eventually be a place listing all the providers and who they are? I don't recognize some on the list and not sure I would choose geographdfdk without know what it was..

command tab in mac doesn't open in new tab

when clicking on a search result hitting command on a mac does not open search result in new tab (works on other links). this is true across browsers (safari, chrome)

Feedback from user testing

  • The header background image is cool, but I feel it's a little too visually intricate and is hiding the search box.
  • Load times are very long on individual images and not all of the grids are populating at roughly the same speed – v slow.
  • I'm not sure why "Top Categories" would be useful to a user unless they can filter or know the source on it? The images in the categories feel pretty random
  • The disclaimer on the bottom – is there a way to spruce up that text a bit?
  • "Website by CC" in the footer – the link is Affinity Bridge
  • I can't open the images in new tabs unless I click the title, in which case it just gives me the image (slowly loading) with no metadata
  • this seems to work for me on safari on the iphone, but search just hangs on all browsers i’m using on my laptop. any thoughts as to why ( OS: macos mojave 10.14 beta )?
  • Strip whitespace from the queries
  • Add a fixed header on scroll
  • Add the ability to scroll to the top of the page, when infinite scroll is enabled
  • Add Clarafai badge when displaying tags generated by Clarafai

Image Detail page issues

  • License format should be CC BY, not CC by, also the photo attribution, and the output HTML, and the one click attribution
  • Use the CC icons on the detail page to show license type as well
  • When I click zoom on the image, I get a different image:
  • I don’t know what that little pop-up navigator thing is, but it’s confusing. I’d remove it.
    Issue: No download link to get the image, or clear link to go to the source site. Have to intuit to click on the right link in the detail information.

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.