Custom Admin Emoji Panel (Djblets)

Review Request #11884 — Created Nov. 27, 2021 and discarded

Information

Djblets
release-2.x

Reviewers

Adds a page to the admint panel which allows an admin to upload a custom emoji by uploading a name, shortcode, description, and image. These fields are editable whenever the user re-vists the page. The emoji data is loaded from, and saved into SiteConfiguration, while the image data is loaded from and saved to DefaultStorage.

Further work that needs to be done: * Enforcing mandatory fields that user must fill out before clicking "Save", so as to not raise an error. * Adding labels to the form fields, and removing the extra "name" field at the very top of the form. * Rendering a preview of the emoji when loading the page (through get_context() in EmojiFileUpload).


 
Summary ID Author
ListEditDictionaryField Patch from Michelle Aubin.
2feb2a1b838640fd4496e505f7877ea5ebafbf72 mxiuwang
[WIP] Adding custom emojis in admin emoji dashboard.
1f16add484e311fa95e175dc2310b48efaab08ba mxiuwang
[WIP] rendering images.
7cc3931eab59f1db877bba4fe4b27d34bf7fa562 mxiuwang
[WIP] Render images.
ad573006dac8d287f15765c2807432943beb0c94 mxiuwang
Add docstring, code cleanup.
551239428bb72dbfa77d8921948c04ab12c184c2 mxiuwang
Description From Last Updated

E231 missing whitespace after ','

reviewbotreviewbot

E231 missing whitespace after ','

reviewbotreviewbot

E261 at least two spaces before inline comment

reviewbotreviewbot

E501 line too long (141 > 79 characters)

reviewbotreviewbot

E231 missing whitespace after ','

reviewbotreviewbot

E231 missing whitespace after ','

reviewbotreviewbot

E261 at least two spaces before inline comment

reviewbotreviewbot

E261 at least two spaces before inline comment

reviewbotreviewbot

E501 line too long (83 > 79 characters)

reviewbotreviewbot

E231 missing whitespace after ','

reviewbotreviewbot

E261 at least two spaces before inline comment

reviewbotreviewbot

E501 line too long (96 > 79 characters)

reviewbotreviewbot

E231 missing whitespace after ','

reviewbotreviewbot

E261 at least two spaces before inline comment

reviewbotreviewbot

E501 line too long (100 > 79 characters)

reviewbotreviewbot

E261 at least two spaces before inline comment

reviewbotreviewbot

E231 missing whitespace after ','

reviewbotreviewbot

E261 at least two spaces before inline comment

reviewbotreviewbot

E501 line too long (87 > 79 characters)

reviewbotreviewbot

E231 missing whitespace after ','

reviewbotreviewbot

E261 at least two spaces before inline comment

reviewbotreviewbot

E501 line too long (199 > 79 characters)

reviewbotreviewbot

E231 missing whitespace after ','

reviewbotreviewbot

E261 at least two spaces before inline comment

reviewbotreviewbot

E501 line too long (87 > 79 characters)

reviewbotreviewbot

E231 missing whitespace after ','

reviewbotreviewbot

E231 missing whitespace after ','

reviewbotreviewbot

E231 missing whitespace after ','

reviewbotreviewbot

E261 at least two spaces before inline comment

reviewbotreviewbot

E231 missing whitespace after ','

reviewbotreviewbot

Col: 87 Missing semicolon.

reviewbotreviewbot

Col: 62 Missing semicolon.

reviewbotreviewbot

E231 missing whitespace after ','

reviewbotreviewbot

E231 missing whitespace after ','

reviewbotreviewbot

E261 at least two spaces before inline comment

reviewbotreviewbot

E501 line too long (141 > 79 characters)

reviewbotreviewbot

E261 at least two spaces before inline comment

reviewbotreviewbot

E231 missing whitespace after ','

reviewbotreviewbot

E231 missing whitespace after ','

reviewbotreviewbot

E261 at least two spaces before inline comment

reviewbotreviewbot

E501 line too long (83 > 79 characters)

reviewbotreviewbot

E231 missing whitespace after ','

reviewbotreviewbot

E261 at least two spaces before inline comment

reviewbotreviewbot

E501 line too long (96 > 79 characters)

reviewbotreviewbot

E231 missing whitespace after ','

reviewbotreviewbot

E261 at least two spaces before inline comment

reviewbotreviewbot

E231 missing whitespace after ','

reviewbotreviewbot

E261 at least two spaces before inline comment

reviewbotreviewbot

E501 line too long (100 > 79 characters)

reviewbotreviewbot

E231 missing whitespace after ','

reviewbotreviewbot

E501 line too long (87 > 79 characters)

reviewbotreviewbot

E261 at least two spaces before inline comment

reviewbotreviewbot

E231 missing whitespace after ','

reviewbotreviewbot

E261 at least two spaces before inline comment

reviewbotreviewbot

E501 line too long (199 > 79 characters)

reviewbotreviewbot

E231 missing whitespace after ','

reviewbotreviewbot

E261 at least two spaces before inline comment

reviewbotreviewbot

E501 line too long (95 > 79 characters)

reviewbotreviewbot

E231 missing whitespace after ','

reviewbotreviewbot

E231 missing whitespace after ','

reviewbotreviewbot

E261 at least two spaces before inline comment

reviewbotreviewbot

E231 missing whitespace after ','

reviewbotreviewbot

Col: 87 Missing semicolon.

reviewbotreviewbot

Col: 62 Missing semicolon.

reviewbotreviewbot

W293 blank line contains whitespace

reviewbotreviewbot

W293 blank line contains whitespace

reviewbotreviewbot

E231 missing whitespace after ','

reviewbotreviewbot

W293 blank line contains whitespace

reviewbotreviewbot

W291 trailing whitespace

reviewbotreviewbot

F401 'django.core.files.storage.DefaultStorage' imported but unused

reviewbotreviewbot

F401 'django.utils.html.format_html_join' imported but unused

reviewbotreviewbot

F401 'django.utils.html.format_html' imported but unused

reviewbotreviewbot

E302 expected 2 blank lines, found 1

reviewbotreviewbot

W293 blank line contains whitespace

reviewbotreviewbot

W291 trailing whitespace

reviewbotreviewbot

W291 trailing whitespace

reviewbotreviewbot

W292 no newline at end of file

reviewbotreviewbot

Col: 87 Missing semicolon.

reviewbotreviewbot

Col: 62 Missing semicolon.

reviewbotreviewbot
Checks run (2 failed)
flake8 failed.
JSHint failed.

flake8

JSHint

mxwang
Review request changed
Commits:
Summary ID Author
ListEditDictionaryField Patch from Michelle Aubin.
2feb2a1b838640fd4496e505f7877ea5ebafbf72 mxiuwang
[WIP] Adding custom emojis in admin emoji dashboard.
1f16add484e311fa95e175dc2310b48efaab08ba mxiuwang
ListEditDictionaryField Patch from Michelle Aubin.
2feb2a1b838640fd4496e505f7877ea5ebafbf72 mxiuwang
[WIP] Adding custom emojis in admin emoji dashboard.
1f16add484e311fa95e175dc2310b48efaab08ba mxiuwang
[WIP] rendering images.
7cc3931eab59f1db877bba4fe4b27d34bf7fa562 mxiuwang

Checks run (2 failed)

flake8 failed.
JSHint failed.

flake8

JSHint

mxwang
Review request changed
Summary:
ListEditDictionaryField Patch from Michelle Aubin.
Custom Admin Emoji Panel (Djblets)
Description:
~  

[WIP] Adding custom emojis in admin emoji dashboard.

  ~

Adds a page to the admint panel which allows an admin to upload a custom emoji by uploading a name, shortcode, description, and image. These fields are editable whenever the user re-vists the page. The emoji data is loaded from, and saved into SiteConfiguration, while the image data is loaded from and saved to DefaultStorage.

  +
  +

  +
  +

Further work that needs to be done:

  + * Enforcing mandatory fields that user must fill out before clicking "Save", so as to not raise an error.
  + * Adding labels to the form fields, and removing the extra "name" field at the very top of the form.
  + * Rendering a preview of the emoji when loading the page (through get_context() in EmojiFileUpload).

Commits:
Summary ID Author
ListEditDictionaryField Patch from Michelle Aubin.
2feb2a1b838640fd4496e505f7877ea5ebafbf72 mxiuwang
[WIP] Adding custom emojis in admin emoji dashboard.
1f16add484e311fa95e175dc2310b48efaab08ba mxiuwang
[WIP] rendering images.
7cc3931eab59f1db877bba4fe4b27d34bf7fa562 mxiuwang
ListEditDictionaryField Patch from Michelle Aubin.
2feb2a1b838640fd4496e505f7877ea5ebafbf72 mxiuwang
[WIP] Adding custom emojis in admin emoji dashboard.
1f16add484e311fa95e175dc2310b48efaab08ba mxiuwang
[WIP] rendering images.
7cc3931eab59f1db877bba4fe4b27d34bf7fa562 mxiuwang
[WIP] Render images.
ad573006dac8d287f15765c2807432943beb0c94 mxiuwang
Add docstring, code cleanup.
551239428bb72dbfa77d8921948c04ab12c184c2 mxiuwang

Checks run (2 failed)

flake8 failed.
JSHint failed.

flake8

JSHint

mxwang
Review request changed
Status:
Discarded