Custom Admin Emoji Panel (Djblets)

Review Request #11878 — Created Nov. 20, 2021 and updated — Latest diff uploaded

Information

Djblets
release-2.x

Reviewers

Adds a ListEditEmojiDictionaryField (inherited from Michelle Aubin's
ListEditDictionaryField class), which takes in a dictionary of values and
splits it into a tuple of (key, value1, value2, value3).

EmojiFileInput class is a subclass of FileInput, which takes in a file
upload from the user, and saves it into the context variable. In future
implementations, the get_context() method can also be used to render image
previews if the file uploaded is a valid image file.

Unit testing: Unit test suites for ListEditDictionaryField and ListEditField
Local testing: making sure the app runs property with print() statements.

Diff Revision 2

This is not the most recent revision of the diff. The latest diff is revision 8. See what's changed.

orig
1
2
3
4
5
6
7
8

Commits

First Last 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
Add Djblets tests.
89a570f427670d8ae3bb95aa04466fa3f95bbf8e mxiuwang
djblets/avatars/services/base.py
djblets/avatars/services/file_upload.py
djblets/forms/fields.py
djblets/forms/widgets.py
djblets/forms/templates/djblets_forms/emoji_file_input.html
djblets/forms/templates/djblets_forms/list_edit_widget.html
djblets/forms/tests/test_list_edit_dictionary_field.py
djblets/forms/tests/test_list_edit_field.py
djblets/static/djblets/js/forms/views/listEditView.es6.js
Loading...