habitica-self-host/website/server/libs
negue 7c9c45ac5f
combined messages restyling - next round (#15386)
* split component prepare new views / states

* extract empty and disabled state as components

* fix empty state mail icon

* first logic switching between modes, move page to /private-messages/index.vue

* extract autoCompleteHelper.js

* style header + start new message input

* style plus button + focus input

* state logic, types for sanity

* WIP PM new Message started

* add /members/username test

* first design changes to messageCard

* delete private message or chat - based on the mode

* copy as todo

* mention links to modal

* report chat or private message

* WIP likeButton

* likeButton styling

* hide like on private message cards

* fix unit test

* replace copy as todo - to just a copy to clipboard

* style changes

* menu position + like button width

* dropdown items background + like font

* fix like button padding

* move api endpoints and tests around to group inbox methods  + like for inbox private messages

* restyle system messages

* Dropdown Radius and Padding

* WIP system messages

* fix lint

* copy delta commit of allowing liking own private messages

* enable liking private messages

* fix menu non hovered item icon color

* fix import path

* ignore background on system messages

* requested changes + migration

* update migration to update the unique id to some messages and delete the duplicates

* migration based on users pagination

* fix(migration): use Promise.all

* change to bulkWrites per User, and all messages in one run (of a user)

* check for array

* use rest operator ...

* skip sorting to get the users

* remove migration, disable like for private messages without uniqueMessageId

* lean+bulkWrite for likes, add time checks for like and auth for further debugging

* add a limit 2 get the messages by uniqueId

* Adding a simple server start script

* remove pinned nodemon dep

* fix inbox controller/tests

* fix / requested style changes

* fix empty state padding /

* hide avatar weapons on messages - fix avatar spacing on messages

* Hourglass Simplification (#15323)

* begin removing obsolete tests

* begin refactoring

* update cron tests

* cleanup

* finish basic implementation of new logic

* add more subscription tests

* subscription test improvements

* return nextHourglassDate again

* fix gem limit

* fix(test): short circuit this.

* fix(admin): correct logic and style for shrimple subs

* WIP(frontend): draft of main subs page view

* fix hourglass count

* Fix hourglass logic for upgrades

* fix admin panel display

* WIP(subs): extant Stripe state

* fix admin panel strings

* fix missing transaction type

* add new field for cumulative subscription count

* show date for hourglass bonus if it was received

* fix test

* feat(subscription): max Gems progress readout

* fix(css): correct and refactor heights and selection states

* fix(subs): correct border-radius and redirect

* fix(stripe): correct redirect after success

* Admin panel display fixes

* don’t give additional HG for new sub if they already got one this month

* fix issue with promo hourglasses

* fix(subscription): update layout when gifting

* fix(subscriptions): more gift layout revisions

* fix(subscriptions): minor visual updates

* fix(subs): pass autoRenews through Stripe

* fix(subs): gifts DON't renew

* fix(lint): unnecessary ternary

* fix(lint): do negate object ig

* fix(subs): try again on gifts

* fix(subs): unhovery and un-12-monthy

* fix bug with incorrectly giving HG bonus

* remove only

* fix test

* fix test

* fix(subs): also redirect to subs after gift sub

* fix(subs): fix typeError

* fix(g1g1): don't try to find Gems promo during bogo

---------

Co-authored-by: Phillip Thelen <phillip@habitica.com>
Co-authored-by: Kalista Payne <sabe@habitica.com>

* chore(sprites): update subproject

* fix(layout): tighten cancellation note

* fix(subs): Google wording and HG escape

* chore(testing): fake g1g1 dates

* fix(subs): don't hide HG preview entirely

* fix(subs): center next hourglass message

* working validatedTextInput.vue within start-new-conversation-input-header.vue 🎉

* fix(git): remove changes from old develop

* Revert "fix(git): remove changes from old develop"

This reverts commit 0e30f7df004bc363f2868d4b59de01862dec610f.

* fix(git): no actually just this file i guesss

* adding an empty loading state, hiding

* fought the avatar arch nemesis again

* fix chatMessages (party chat) message spacing

* move disabled text back to above the input area - re-enable input area

* show disabled private messages top panel

* fix font color

* fixing uiStates - removing disabled - moving the own user check to the last

* fix(lint): add missing prop defaults

* fix(lint): object default should be fn

* fix(chat): correct grammar in error

* remove weapon position relative

* revert most of avatar.vue changes, add back weapons in chat message UI

* show date tooltip above system / skill messages

* fix toggle disable icon position

* trivial CSS cleanup

* fix(typo): English syntax in test

* chore(test): small style cleanup

* chore(logging): revert debug function

* chore(debug): remove timers from inbox like

---------

Co-authored-by: SabreCat <sabe@habitica.com>
Co-authored-by: Kalista Payne <sabrecat@gmail.com>
Co-authored-by: Phillip Thelen <phillip@habitica.com>
2025-03-04 17:00:24 -06:00
..
auth Upgrade to mongoose 7 (#14971) 2024-01-16 15:18:47 -06:00
challenges Squashed commit of the following: 2024-02-28 14:31:05 -06:00
chat fix(lint): newlines, console 2023-07-18 10:20:58 -05:00
chatReporting fix(chat): validate group membership, by @phillipthelen 2024-06-11 13:14:47 -05:00
coupons fix linting for server (except for length of apidoc) 2019-10-10 20:11:50 +02:00
inbox combined messages restyling - next round (#15386) 2025-03-04 17:00:24 -06:00
invites Update to new method for fcm (#15238) 2024-06-11 13:19:03 -05:00
items fix(admin): let panel break item 2024-05-17 14:13:48 -05:00
payments filter stripe webhooks for correct server (#15320) 2024-11-26 12:24:23 -06:00
tasks fix(tasks): always prune __v and add id (#15301) 2024-08-28 15:05:34 -05:00
user make it easier to unequip backgrounds 2024-05-21 15:53:14 +02:00
analyticsService.js WIP(shops): safer debug mode 2024-05-21 09:11:18 -05:00
apiError.js combined messages restyling - next round (#15386) 2025-03-04 17:00:24 -06:00
bannedSlurs.js Squashed commit of the following: 2024-01-10 15:14:11 -06:00
bannedWords.js Squashed commit of the following: 2024-01-10 15:14:11 -06:00
baseModel.js Upgrade to mongoose 7 (#14971) 2024-01-16 15:18:47 -06:00
bug-report.js Squashed commit of the following: 2024-11-14 12:31:57 -06:00
buildManifest.js fix linting for server (except for length of apidoc) 2019-10-10 20:11:50 +02:00
chat.js Update to new method for fcm (#15238) 2024-06-11 13:19:03 -05:00
client.js fix index path0 2019-10-15 18:10:20 +02:00
collectionManipulators.js fix linting for server (except for length of apidoc) 2019-10-10 20:11:50 +02:00
config.js chore(node): upgrade to Node 20 2024-03-11 09:59:57 -05:00
content.js fix content caching 2024-06-10 14:46:39 +02:00
cron.js Squashed commit of the following: 2024-11-14 12:31:57 -06:00
csvStringify.js start upgrading eslint 2019-10-08 16:57:10 +02:00
email.js Feature: new "report a bug" modal (#13530) 2021-12-14 19:16:50 -06:00
encryption.js start upgrading eslint 2019-10-08 16:57:10 +02:00
errors.js Add a timeout to mongoldb connections (#15258) 2024-08-01 10:28:54 -05:00
forbiddenUsernames.js fix linting for server (except for length of apidoc) 2019-10-10 20:11:50 +02:00
gcpTraceAgent.js fix linting for server (except for length of apidoc) 2019-10-10 20:11:50 +02:00
groupTasks.js WIP(multiassign): resume shared completion implementation 2022-02-17 15:50:23 -06:00
highlightMentions.js 12922 - Use absolute user URLs on production (#12968) 2021-04-29 15:23:42 -05:00
i18n.js Clean up translations (#14985) 2023-11-03 15:54:48 -05:00
inAppPurchases.js Handle subscription cancelation better 2023-02-06 11:17:35 +01:00
language.js Automatically Logout Banned Users (#12037) 2020-04-02 21:46:01 +02:00
logger.js fix(logger): only two arguments to logger when logging an unhandled promise rejection 2020-03-26 17:10:19 +01:00
mongodb.js chore(deprecations): clean out some warnings 2024-02-05 16:50:06 -06:00
password.js Upgrade to mongoose 7 (#14971) 2024-01-16 15:18:47 -06:00
preening.js Upgrade to mongoose 7 (#14971) 2024-01-16 15:18:47 -06:00
pushNotifications.js Update to new method for fcm (#15238) 2024-06-11 13:19:03 -05:00
routes.js Database Access optimisations (#14544) 2023-05-16 12:21:45 -05:00
setupExpress.js API v3 Rate Limiter (#12117) 2020-07-18 15:00:09 +02:00
setupFirebase.js Update to new method for fcm (#15238) 2024-06-11 13:19:03 -05:00
setupMongoose.js Add a timeout to mongoldb connections (#15258) 2024-08-01 10:28:54 -05:00
setupNconf.js misc, fix client tests 2019-10-15 15:32:53 +02:00
setupPassport.js chore: merge develop in 2022-09-16 16:12:34 -04:00
slack.js Slur swear blocker challenges redux (#15089) 2024-01-16 14:22:03 -06:00
sleep.js chore(node): upgrade to Node 20 2024-03-11 09:59:57 -05:00
spells.js Update to new method for fcm (#15238) 2024-06-11 13:19:03 -05:00
stringUtils.js Add checks for profanity to profile updates (#12445) 2021-04-30 15:47:39 -05:00
webhook.js Database Access optimisations (#14544) 2023-05-16 12:21:45 -05:00
worldState.js fixes 2024-05-13 14:00:44 +02:00
xmlMarshaller.js Fix XML Data Export Error by Modifying XML Format (#13942) 2022-05-12 15:24:17 -05:00