Custom Admin Emoji Panel (Djblets)

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

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).


 

Diff Revision 2

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

orig
1
2
3

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
djblets/avatars/services/file_upload.py
djblets/forms/fields.py
djblets/forms/widgets.py
djblets/forms/forms/key_value_form.py
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...