hensei-web/components/party
Justin Edmund 4c949d9206
July 2023 Feature Release: Rich text editor and support for tagging objects (#340) (#341)
* Preliminary work around making an Element type

* Disabled Youtube code for now

* Clean description with DOMPurify

* Update GranblueElement with slug

* Add new api endpoint for searching all resources

* Add new variables and themes

* Remove fixed height on html tag for now

* Update README.md

We renamed the folders for character images from `chara-` to `character-`

* Add no results string

* Add tiptap and associated packages

* Update .gitignore

* Update components that use character images

* Add Editor component

This commit adds the bulk of the code for our new rich-text editor. The Editor component will be used to edit and display rich text via Tiptap.

* Add mention components

This adds the code required for us to mention objects in rich text fields like team descriptions.

The mentionSuggestion util fetches data from the server and serves it to MentionList for the user to select, then inserts it into the Editor as a token.

* Implements Editor in edit team and team footer

This implements the Editor component in EditPartyModal and PartyFooter. In PartyFooter, it is read-only.

* Remove min-width on tokens

* Add rudimentary conversion for old descriptions

Old descriptions just translate as a blob of text, so we try to insert some paragraphs and newlines to keep things presentable and lessen the load if users decide to update

* Add support for displaying jobs in MentionList

* Handle numbers and value=0 better

* Keep description reactive

This shouldn't work? The snapshot should be the reactive one? I don't fucking know

* Send locale to api with search query

* Delete getLocale.tsx

We didn't actually use this

* Fix build errors
2023-07-05 21:51:30 -07:00
..
EditPartyModal July 2023 Feature Release: Rich text editor and support for tagging objects (#340) (#341) 2023-07-05 21:51:30 -07:00
Party (Hotfix) (Temporary) nuclear option for raid population (#339) 2023-07-04 02:20:48 -07:00
PartyDropdown Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00
PartyFooter July 2023 Feature Release: Rich text editor and support for tagging objects (#340) (#341) 2023-07-05 21:51:30 -07:00
PartyHead Deploy organization and bug fixes (#299) 2023-04-12 06:37:41 -07:00
PartyHeader (Hotfix) (Temporary) nuclear option for raid population (#339) 2023-07-04 02:20:48 -07:00
PartySegmentedControl Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00