Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow users to set a license for each track separately #1197

Open
wants to merge 24 commits into
base: main
Choose a base branch
from

Conversation

Manfred
Copy link
Collaborator

@Manfred Manfred commented Apr 11, 2022

  • Adds a column to assets to store a license code
  • Adds a proxy class for license to format license related labels and icons
  • Adds a license option to the asset form
  • Support for dark and white themes

I think it's fine to add a column with a default in one go for all assets, but that may be a very slow migration. We should probably test that before deploying.

References #1196

@@ -0,0 +1,7 @@
import { Controller } from "@hotwired/stimulus"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Parsing error: [BABEL]: Cannot find module 'shakapacker'
Require stack:

  • /code/config/webpack/preset.js
  • /usr/local/node_modules/@babel/core/lib/config/files/module-types.js
  • /usr/local/node_modules/@babel/core/lib/config/files/configuration.js
  • /usr/local/node_modules/@babel/core/lib/config/files/index.js
  • /usr/local/node_modules/@babel/core/lib/index.js
  • /usr/local/node_modules/@babel/eslint-parser/lib/worker/babel-core.cjs
  • /usr/local/node_modules/@babel/eslint-parser/lib/worker/handle-message.cjs
  • /usr/local/node_modules/@babel/eslint-parser/lib/client.cjs
  • /usr/local/node_modules/@babel/eslint-parser/lib/index.cjs
  • /usr/local/node_modules/eslint/lib/cli-engine/config-array-factory.js
  • /usr/src/app/lib/eslint6-patch.js
  • /usr/src/app/lib/eslint.js
  • /usr/src/app/bin/eslint.js (While processing: /code/config/webpack/preset.js)

@Manfred
Copy link
Collaborator Author

Manfred commented Apr 11, 2022

Screen Shot 2022-04-11 at 22 08 46

Screen Shot 2022-04-11 at 22 09 01

Screen Shot 2022-04-11 at 22 09 10

Screen Shot 2022-04-11 at 22 09 23

@Manfred Manfred marked this pull request as ready for review April 11, 2022 20:10
@Manfred Manfred requested a review from sudara April 11, 2022 20:10
@Manfred
Copy link
Collaborator Author

Manfred commented Apr 12, 2022

I also considered using the default Unicode symbols instead of SVG, but I'm pretty sure those aren't supported on a lot of devices. https://creativecommons.org/2020/03/18/the-unicode-standard-now-includes-cc-license-symbols/

@sudara
Copy link
Owner

sudara commented Apr 12, 2022

This all looks great!

Oooh, that's cool about unicode CC symbols. SVG is perfect though, more pragmatic for now.

@sudara
Copy link
Owner

sudara commented Apr 19, 2022

Got @smoofles over and we're taking a look at cleaning up the "show track" page a bit and making sure this all looks good on mobile, etc! Thanks again for the feature @Manfred!

@sudara
Copy link
Owner

sudara commented Apr 20, 2022

Added #1199 and #1200 to summarize design cleanup to assets#show and assets#edit to help clear room for this feature.

@bencarlos — probably easiest if those changes just happen on this branch. Ping me if you think I need to move some rails logic around for fave and edit, otherwise i think it should be pretty straightforward!

@sudara
Copy link
Owner

sudara commented Apr 20, 2022

@Manfred We tried to include CC icons in a couple places like in the main list, but in the end they seemed to mainly add visual bulk/noise, so they didn't make the cut... 😢

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Up Next
Development

Successfully merging this pull request may close these issues.

3 participants