* fix: replace clickable div with button
improve accessibility for keyboard users
* refactor: extract sidebar button to own component
* refactor: button to div
* fix: lint, update sidebarSection test
* fix(task) - 11139 use start-from hours in due date calculation
* fix(task) - 11139 - Initial setup of Task unit test
* Add more unit tests for formatDueDate
* Issue 10786 - Add unit test for Home component
* Issue 10786 - Improve test setup and test invite parameter variations
* Issue 10786 - Improve Vue.js test isolation by adding async keyword to dispatch function
* Issue 10786 - Missing action does not need to be awaited
* fix(vuejs-unit-tests): Fewer stacktraces in avatar.spec.js
* No more stacktraces in avatar.spec.js
* Register dummy directive in chatCard.spec.js
* Resolve stacktraces in column.spec.js
* Resolve stacktrace in notifications.spec.js
* Resolve warnings in user.spec.js
* Resolve asynchronous stacktrace from home.spec.js
* Remove unnecessary mount call.
* Clear up some let clutter in column.spec.js
* Fix bug in challenge tags not converted to normal tags after challenge ended/deleted
* Added test cases to test bug fix
* Set tag.challenge from String to Boolean in tag model schema
* Update existing test with tag challenge set to boolean instead of string
* Added migration file for converting tag challenge field from string to bool
* Implement suggestions from ilnt
* Use mongoose instead of Mock in migration
* Change from update to bulkwrite
* update users individually
Co-authored-by: Matteo Pagliazzi <matteopagliazzi@gmail.com>
* issue(11266) - Restyle level-up modal with sparkles
* issue(11266) - Add reward display to level up modal
At levels 15, 30, 40 and 60 the earned quests are now shown in the level-up modal.
* issue(11266) - Simplify css and don't use custom footer
* issue(11266) - Don't show pink bars and use colour variables
* wip
* refactor world state
* allow resource to be reloaded when the server is updated
* fix#9242
* fix event listeners
* remove un-needed code
* add tests for asyncResourceFactory reloadOnAppVersionChange
* fix double cron notifications and party members showing up in the header after a party invitation is accepted
* remove console.log
* do not send vm info to loggly due to circular dependency + fix typo
* fix#12181
* do not load invites multiple times in members modal
* add hover to challenge member count
* groups: load members only on demand
* minor ui fixes
* choose class: fix vue duplicate key warning
* minor ui fixes
* challanges: load members on demand
* add loading spinner
* change loading mechanism
* fix loading gryphon issues
* reduce code duplication
* Issue 12033 - Use version of habitica-markdown that includes mention plugin
Also fixes frontend parts of 11504 and 10924
* Issue 12033 - Reduce duplication in chatCard & messageCard
* Issue 12033 - Use habitica-markdown version 2.0.0
* Issue 12033 - Use new entry point and fix tests
* Issue 12033 - Rename renderMarkdown to renderWithMentions
* fix(chat) - Mention dot doesn't show if mention is preceded by weird mention
* fix(chat) - add unit test for chatCard
* fix(chat) - Improve unit test to only mount the wrapper once
* Issue 10786 - Add unit test for Home component
* Issue 10786 - Improve test setup and test invite parameter variations
* Issue 10786 - Improve Vue.js test isolation by adding async keyword to dispatch function
* Issue 10786 - Missing action does not need to be awaited
* Use localVue for groupsUtilities test and revert partial zone fix
* For some reason this file shows as modified, however I checked and it seems as though the same code chunk was 'deleted' and 'added' back in
* Added in logic to take care of issue pertaining to usernames with underscores such as @_spider_ was not showing up in the proper username format
* Added component test to test underscores in username issue
* I accidentally forgot to change the expected result to be @_user_
* Fixed strange spacing issue in profile.vue to match the original
* Another place where I needed to put _user_
* Accidentally left in describe.only in highlightUsers.spec.js,so removed .only
* Added in suggestions from @benkelaar and added in support for fixing double underscore sandwiched usernames which is Markdown's way of bolding
* Added component test to test that usernames sandwiched with double underscores are properly formatted
* Added fixes to test case input and variable mismatch in function
* Updated expect result statement to not be a user mention instance
Co-authored-by: Kareen <kareenf@umich.edu>
* Fix bug to allow guild summary and description to match against search term in MyGuilds component
* Add unit test to groupUtilities to test filterGroup function
* Changes made after running npm:run:lint
* Fix bug when filter guild function does not match against guild size correctly when the guild has member count = 100 or 1000
According to habitica wiki Guilds Guide, gold-tier guilds are guilds with 1000 or more members. However, under the current code of filter guild function, it matches guilds as gold-tier as strictly more than 1000 members, excluding 1000 members. Similar silver-tier guilds should have 100 to 999 members, but the current code it matches guilds as silver-tier for members between 101 and 999 members.
* Added unit tests to test the newly added code in the groupsUtilities mixin for the current issue
* Add unit testing to test search guild name, summary, and description in myGuilds component
* Add suggestions from lint
* Added searching by guild summary and white space handling in search terms.
For discover guilds component, added the following:
1) handling of searching by guild summary
2) preventing white space in search terms to display all guilds
3) added test cases for testing the search functionality in discove guilds to ensure consistent behaviour between the searching in MyGuilds and public guilds.
* Remove console statements from test file
* Implement suggestions from lint.
Co-authored-by: osiris <eynsan@yahoo.co.uk>
* Refactoring & Feature: edit/delete group and challenge tasks
- Remove showOption from tasks props
- Pass all needed data to task for understand in mapGetter function which controls we should show
- Improve current solution with edit and delete logic
* Fix: this in template
* Fix & Test: extend tests, fix can Edit/Delete functions
* Fix: allow user edit challenge tasks on dashboard
* Fix: test case after code change
* fix import path
* Fix:
- Extend canEdit and canDelete functions with admin role
- Clarify canEdit and canDelete conditions
- Extend test cases