Code Monkey home page Code Monkey logo

legaldb'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  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

legaldb's Issues

empty tables

Description

Some of the tables do not have data, like the one in screenshot

Screenshots

Screenshot from 2020-10-13 11-05-53

Additional context

I think it will be better if the table headers appear only if there is content in that table, or maybe if the table is empty a row with -- can be used.

Resolution

  • I would be interested in resolving this bug

Support.hanz=1

Description

Reproduction

  1. See error.

Expectation

Screenshots

Environment

  • Device: (eg. iPhone Xs; laptop)
  • OS: (eg. iOS 13.5; Fedora 32)
  • Browser: (eg. Safari; Firefox)
  • Version: (eg. 13; 73)
  • Other info: (eg. display resolution, ease-of-access settings)

Additional context

Resolution

  • I would be interested in resolving this bug.

Move field description out of input placeholder

Problem

Page: Case form

The placeholder of Background Information and Case Summary describe the information that users need to type. Therefore, it should be part of field description, below title.

Screen Shot 2020-08-12 at 16 49 46

Solution

Move the placeholder text to below title, as the description in Related cases field

Broken Links Present in README.md

Describe the bug

I have observed one broken link and two access denied errors in the links present in README.md

To Reproduce

  • Broken Link Error:
  1. Go to README
  2. Click on country.csv link under the section manually managed CSV. This redirects to 404 error page
    image
  • Access Denied Error:
  1. Go to README
  2. Under the section Google Form Responses Google Sheets, when you click on either of the two links it redirects to an Access Denied page
    image

Expected behavior

For both the errors, the links should redirect to correct webpages.

Desktop

Applicable for all kinds of OS, Browser and Version

Smartphone

Applicable for all kinds of Device, OS, Browser, Version

Additional context

For solving the access denied error while accessing the Google Sheets, I request the maintainer to please share Google Sheets link with view-only permissions and sharing enabled

Landing Page

Can you put this text in between the placeholder picture and the map on the landing page?

Welcome to the Creative Commons Legal Database! This database comprises case law and legal scholarship to help you learn more about legal issues surrounding Creative Commons licenses and legal tools. These resources aim to help you clearly understand the enforceability and precedents set by courts around the world concerning Creative Commons licenses. The Case Law Database includes court decisions from around the globe concerning Creative Commons. The Scholarship Database aims to provide users with articles and resources concerning the use and enforceability of Creative Commons licenses.

Support Admin

Description

Reproduction

  1. See error.

Expectation

Screenshots

Environment

  • Device: (eg. iPhone Xs; laptop)
  • OS: (eg. iOS 13.5; Fedora 32)
  • Browser: (eg. Safari; Firefox)
  • Version: (eg. 13; 73)
  • Other info: (eg. display resolution, ease-of-access settings)

Additional context

Resolution

  • I would be interested in resolving this bug.

Client_silent

Description

Reproduction

  1. See error.

Expectation

Screenshots

Environment

  • Device: (eg. iPhone Xs; laptop)
  • OS: (eg. iOS 13.5; Fedora 32)
  • Browser: (eg. Safari; Firefox)
  • Version: (eg. 13; 73)
  • Other info: (eg. display resolution, ease-of-access settings)

Additional context

Resolution

  • I would be interested in resolving this bug.

Branding

The current (in progress!) state of the site still has the Rights Back Resource banner on the front page and its logo at the bottom of the page.

Do we want a new banner and a distinctive logo for the Case Law site, or do should I just remove the banner and change the footer to the CC logotype?

Revise Contribution Forms

https://docs.google.com/forms/d/e/1FAIpQLSdyhi06rJzP3fnyCfv-d40Q5ucaWRRsaC74G8qlY23xDhspwA/viewform

and

https://docs.google.com/forms/d/e/1FAIpQLSfxxk5FWZCl3QURJqF42-FtMoWrwj1PMsdOyk2hUayU7FPB7w/viewform

  1. Titles should be Creative Commons Legal Database -- Cases, and Creative Commons Legal Database -- Scholarship, respectively.

  2. To both, under Agreement and Consent, add a link to the privacy policy (https://creativecommons.org/privacy).

  3. To both, under Agreement and Consent, change name of policy to "Privacy Policy" -- it's no longer the lengthy name.

  4. To both, at very end, add new sentence before "A copy of your responses will be emailed to the address you provided." to read: "Thank you for your submission. It will be reviewed by CC staff, and you may be contacted for more information."

Increase the spacing between fields

Problem

Page: Case form

The space between fields is too small and the form looks tight.

Screen Shot 2020-08-12 at 16 48 40

Alternatives

Use a spacing of 24px (1.5 rem) between fields.

Adding Docker and Docker Compose Support

Problem

Currently, to set up the development environment, having python 3.7 and starting a separate Postgres server is required.

Description

This process can be automated by creating a docker image for Django server based on python 3.7 and using Postgres docker image. Then these images can be managed by docker-compose, hence requiring only a docker-compose up to start the server.

Further for Django server, a pipeline to run linter and to build the docker image can also be created using GitHub actions

Implementation

  • I would be interested in implementing this feature.

Hover style of links in table

Description

Page: Case and Scholarship

Links in the table have a wrong style during hover state.

Screen Shot 2020-08-12 at 15 43 31

Expectation

The style should not change text color. Only adding the underline style.

Distribution of contribution buttons

Description

Page: Home

The buttons calling for contribution look too distant from each other and it produces an odd effect.

Screen Shot 2020-08-12 at 11 53 00

Alternatives

Have both buttons left-align with a spacing of 32px.

Spacing and alignment of filter section

Problem

Page: Case and Scholarship

In the filter section:

  1. The text input is not left-align with respect to the grid
  2. The spacing between filter input and tags looks too big in comparison with the table.

Screen Shot 2020-08-12 at 15 36 53

Solution

  1. Left-align the input component
  2. Reduce the space between text input and tags, I suggest a space of 8px.

Wrong width of introduction paragraph

Description

Page: Case and Scholarship

The introduction paragraph, below main title, uses more columns than defined in the mockup.

Expectation

The paragraph should use 7 columns of the grid.

Screen Shot 2020-08-12 at 15 03 30

Replace DarkTurquoise with ForestGreen across all site

Problem

Since we defined to start with AA accessibility level, the DarkTurquoise color does not match at all the contrast ratio for small and large text sizes. This is a brand concern that we have been discussing and we will come with the final brand solution after designing the .org site.

In parallel, I have been trying to adjust the DarkTurquoise, but its nature is low-contrast and bright. Adjusting this color means changing it completely.

I assign myself a task (#48) to work on the interaction color for the DarkTurquoise. But as I said above, the issue is bigger than the use on this site.

Solution

We can replace the DarkTurquoise with a different brand color. And based on the AA level and contrast ratio required, the ForestGreen seems to match better. For ForestGreen, we do have an interaction color called BrighterForestGreen. So all hover states can use it without problem.

I duplicated the home page replacing the DarkTurquoise with ForestGreen. So please @krysal @kgodey @TimidRobot comment this ticket to see your thoughts about this change. The accessibility is a crucial dimension of Vocabulary and, unfortunately, the conversation about adjusting brand colors came after starting this project.

Mockup sample

Screen Shot 2020-08-13 at 09 36 56

Background color during hover state

Description

Page: Home

During hover state, the background color of card components Caselaw Database and Legal Scholarships Database, and buttons Submit a case and Submit an article have wrong styles.

Card components

Screen Shot 2020-08-12 at 12 12 01

Buttons

Screen Shot 2020-08-12 at 12 11 49

Solution for hover states

For card component

  • Caselaw Database: The background color should be brighter-tomato
  • Legal Scholarship Database: No color defined yet. I will define it today.

For buttons in Contribute section

  • Submit a case: The background color should be brighter-tomato without underline style.
  • Submit an article: No color defined yet. I will define it today.

Add title for tag sections

Problem

Page: Home

The content that will be shown after clicking on tags in tag section is note completely clear.

Screen Shot 2020-08-12 at 12 06 08

Solution

The alternative discussed with @krysal includes:

  1. Add a title on each tag section, using the Heading 4B style.
  2. Increase the space between sections.
  3. Reduce the space between rows of tags.

See the mockup for technical details.

Mockup

Screen Shot 2020-08-12 at 12 00 49

Include text in select component

Description

Page: Case form

The Country field has no description about the action that users should do.

Screen Shot 2020-08-12 at 16 54 55

Expectation

The default element should say Select a country.

Typo in Create Super User command in README.md

Description

Typo in Create Super User command in README.md

Reproduction

https://github.com/creativecommons/legaldb/blob/main/README.md#execute-commands
Line Number 55 of README.md

Expectation

The actual command should be: docker-compose run app sh -c "python manage.py createsuperuser"

Screenshots

Environment

  • Device: (eg. iPhone Xs; laptop)
  • OS: (eg. iOS 13.5; Fedora 32)
  • Browser: (eg. Safari; Firefox)
  • Version: (eg. 13; 73)
  • Other info: (eg. display resolution, ease-of-access settings)

Additional context

Resolution

  • I would be interested in resolving this bug.

Country vs. Jurisdiction

In the web site, the pages generated from the spreadsheets are organised according to Country.

The current CASES sheet has Jurisdiction, which is richer than Country, e.g. we have "US", "US (Texas)" and "US (DC)" for Jurisdictions in the United States.

To make the software smarter about this would make it less reliable, so I would prefer to use the list of countries that we used for the Rights Back Resource. This will help assemble the map and the pages (as well as search and drop-down menus). That list can be found here:

http://jvectormap.com/maps/world/world/

If this makes sense, we should add a "Country" column to the CASES and SCHOLARSHIP sheets and add the Country for existing entries. So if the Jurisdiction is "US (DC)" the Country is "United States".

Or if I am confusing matters we should discuss it here. :-)

Use the card component for FAQ link

Problem

Page: Home

The link looks odd without border or background color limiting its size.

Screen Shot 2020-08-12 at 12 08 05

Alternatives

Use the card component link-border available in the Design Library. with the following labels.

  • Small label: Check the
  • Big label: Frequently Asked Questions

Support.hanz

Description

Reproduction

  1. See error.

Expectation

Screenshots

Environment

  • Device: (eg. iPhone Xs; laptop)
  • OS: (eg. iOS 13.5; Fedora 32)
  • Browser: (eg. Safari; Firefox)
  • Version: (eg. 13; 73)
  • Other info: (eg. display resolution, ease-of-access settings)

Additional context

Resolution

  • I would be interested in resolving this bug.

Replace Vocabulary CDN

Problem

Currently the project is using Vocabulary via CDN, this makes it quick to start using the components but has the downside that SCSS files cannot be imported, therefore variables and mixins already defined in the library cannot be used and they have to be duplicated here.

Description

The goal is to be able to use the SCSS files of Vocabulary and make it easy to upgrade to future versions, replacing the CDN with a build process for these assets.

Implementation

  • I would be interested in implementing this feature.

Adding i18n Support

Problem

Currently to support different languages there is nothing present thus only the person who understands English will be able to use our application

Description

The goal of this issue is to add i18n support with which we will be able to handle different languages and this our reach to people will highly increase

Implementation

  • I would be interested in implementing this feature.

Change name and URL

We've settled on "Creative Commons Legal Database" or "CC Legal Database" alternatively when used in text for the moment. Update URL (or redirect), the title on all pages, and text throughout to reflect the renaming (since it's more than just case law). The title of the pages should all reflect CC spelled out. Thanks!

Fast and foçus

Problem

Description

Alternatives

Additional context

Implementation

  • I would be interested in implementing this feature.

Content alignment based on grid

Description

Page: Home

The content seems not aligned to the grid. The logo, introduction paragraph, and page content are aligned differently.

Expectation

The content should be left-align based on Vocabulary's grid.

Screenshots

Development

Screen Shot 2020-08-12 at 09 29 08

Mockup

Screen Shot 2020-08-12 at 09 29 53

filter by topics- on cases

Description

whenever I select one topic and then another, the results of the second topic get appended to first

Expectation

I think it can be confusing for the user, so it is expected either the resultant rows are intersection of topics, or the previous topics get unselected when a new topic is clicked upon (even if the user forgets to do so)

Screenshots

on selecting first only
Screenshot from 2020-10-14 16-47-25

on selecting second only
Screenshot from 2020-10-14 16-47-17

screenshot when two topics are selected
Screenshot from 2020-10-14 16-47-12

Resolution

  • I would be interested in resolving this bug.

Tag component during hover state

Description

The hover state of tag component has an incorrect style.

Expectation

It should not have the underline style, only the background color change.

Screenshots

Screen Shot 2020-08-12 at 09 57 28

[Bug] Database warning: (models.W042) Auto-created primary key used when not defining a primary key type

Description

WARNINGS:
legal_db.Case: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'.
        HINT: Configure the DEFAULT_AUTO_FIELD setting or the LegalDBConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'.
legal_db.FAQ: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'.
        HINT: Configure the DEFAULT_AUTO_FIELD setting or the LegalDBConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'.
legal_db.Link: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'.
        HINT: Configure the DEFAULT_AUTO_FIELD setting or the LegalDBConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'.
legal_db.Scholarship: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'.
        HINT: Configure the DEFAULT_AUTO_FIELD setting or the LegalDBConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'.

Reproduction

do most any Django thing

Expectation

  • Application should run without warnings
  • Need to find documentation on Django migrations on Heroku

Additional context

Database Disclaimer

Please put the following disclaimer on every individual page in the database (case law and scholarship pages).

Except where otherwise stated, please note that Creative Commons does not hold copyright in the court opinions and other judicial materials in this database or in the academic articles and other materials in this database.

Text styles of the introduction paragraph

Description

Page: Home

The following styles are incorrect:

  1. Text size of both paragraphs
  2. No links for case law and legal scholarship

Expectation

  1. The text style of both paragraphs should be body-bigger
  2. Both texts, case law and legal scholarship, should be links to internal pages.

Screenshots

Screen Shot 2020-08-12 at 09 38 41

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.