Custom Admin Emoji Panel (Djblets)
Review Request #11884 — Created Nov. 27, 2021 and discarded
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 |
---|---|---|
2feb2a1b838640fd4496e505f7877ea5ebafbf72 | mxiuwang | |
1f16add484e311fa95e175dc2310b48efaab08ba | mxiuwang | |
7cc3931eab59f1db877bba4fe4b27d34bf7fa562 | mxiuwang | |
ad573006dac8d287f15765c2807432943beb0c94 | mxiuwang | |
551239428bb72dbfa77d8921948c04ab12c184c2 | mxiuwang |
Description | From | Last Updated |
---|---|---|
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E261 at least two spaces before inline comment |
reviewbot | |
E501 line too long (141 > 79 characters) |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E261 at least two spaces before inline comment |
reviewbot | |
E261 at least two spaces before inline comment |
reviewbot | |
E501 line too long (83 > 79 characters) |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E261 at least two spaces before inline comment |
reviewbot | |
E501 line too long (96 > 79 characters) |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E261 at least two spaces before inline comment |
reviewbot | |
E501 line too long (100 > 79 characters) |
reviewbot | |
E261 at least two spaces before inline comment |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E261 at least two spaces before inline comment |
reviewbot | |
E501 line too long (87 > 79 characters) |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E261 at least two spaces before inline comment |
reviewbot | |
E501 line too long (199 > 79 characters) |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E261 at least two spaces before inline comment |
reviewbot | |
E501 line too long (87 > 79 characters) |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E261 at least two spaces before inline comment |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
Col: 87 Missing semicolon. |
reviewbot | |
Col: 62 Missing semicolon. |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E261 at least two spaces before inline comment |
reviewbot | |
E501 line too long (141 > 79 characters) |
reviewbot | |
E261 at least two spaces before inline comment |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E261 at least two spaces before inline comment |
reviewbot | |
E501 line too long (83 > 79 characters) |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E261 at least two spaces before inline comment |
reviewbot | |
E501 line too long (96 > 79 characters) |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E261 at least two spaces before inline comment |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E261 at least two spaces before inline comment |
reviewbot | |
E501 line too long (100 > 79 characters) |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E501 line too long (87 > 79 characters) |
reviewbot | |
E261 at least two spaces before inline comment |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E261 at least two spaces before inline comment |
reviewbot | |
E501 line too long (199 > 79 characters) |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E261 at least two spaces before inline comment |
reviewbot | |
E501 line too long (95 > 79 characters) |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E261 at least two spaces before inline comment |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
Col: 87 Missing semicolon. |
reviewbot | |
Col: 62 Missing semicolon. |
reviewbot | |
W293 blank line contains whitespace |
reviewbot | |
W293 blank line contains whitespace |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
W293 blank line contains whitespace |
reviewbot | |
W291 trailing whitespace |
reviewbot | |
F401 'django.core.files.storage.DefaultStorage' imported but unused |
reviewbot | |
F401 'django.utils.html.format_html_join' imported but unused |
reviewbot | |
F401 'django.utils.html.format_html' imported but unused |
reviewbot | |
E302 expected 2 blank lines, found 1 |
reviewbot | |
W293 blank line contains whitespace |
reviewbot | |
W291 trailing whitespace |
reviewbot | |
W291 trailing whitespace |
reviewbot | |
W292 no newline at end of file |
reviewbot | |
Col: 87 Missing semicolon. |
reviewbot | |
Col: 62 Missing semicolon. |
reviewbot |
- Commits:
-
Summary ID Author 2feb2a1b838640fd4496e505f7877ea5ebafbf72 mxiuwang 1f16add484e311fa95e175dc2310b48efaab08ba mxiuwang 2feb2a1b838640fd4496e505f7877ea5ebafbf72 mxiuwang 1f16add484e311fa95e175dc2310b48efaab08ba mxiuwang 7cc3931eab59f1db877bba4fe4b27d34bf7fa562 mxiuwang - Diff:
-
Revision 2 (+950 -214)
Checks run (2 failed)
flake8
-
Warning: Showing 30 of 43 failures.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
JSHint
- 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 2feb2a1b838640fd4496e505f7877ea5ebafbf72 mxiuwang 1f16add484e311fa95e175dc2310b48efaab08ba mxiuwang 7cc3931eab59f1db877bba4fe4b27d34bf7fa562 mxiuwang 2feb2a1b838640fd4496e505f7877ea5ebafbf72 mxiuwang 1f16add484e311fa95e175dc2310b48efaab08ba mxiuwang 7cc3931eab59f1db877bba4fe4b27d34bf7fa562 mxiuwang ad573006dac8d287f15765c2807432943beb0c94 mxiuwang 551239428bb72dbfa77d8921948c04ab12c184c2 mxiuwang - Diff:
-
Revision 3 (+1012 -286)