Commit Graph

9234 Commits

Author SHA1 Message Date
Blade Barringer a15506e951 Set daillys startDate in the past 2015-05-23 23:57:57 -07:00
Allen Pan 0dcd388925 Made sure to use api.startOfDay in dailies.coffee unit test when calculating day of the week. 2015-05-23 23:57:46 -07:00
Allen Pan 90dd078a6a Fixed bug where we were using moment.startOf instead of api.startOfDay in shouldDo. 2015-05-23 02:29:06 -07:00
Allen Pan b25fa06019 Fixed algos test to pass in task instead of task.repeat to shouldDo (API changed a few commits ago, but missed updating this test). 2015-05-22 23:42:05 -07:00
Allen Pan 56f0e3ae4a Removed unnecessary TODOs. 2015-05-22 22:18:17 -07:00
Blade Barringer 664bf491d2 Adjust fallenPanda's PR
* Use enum for frequency in task model
* Adjust ui of task selection
* Correct check for hasStarted
* Remove semicolons
* Set default start day to today
* Correct perfect day and resting in inn tests to have dailies with start dates of a week ago
* Add tests for dailies/weeklies functionality
2015-05-22 22:14:58 -07:00
Allen Pan dd1b2a4b07 In taskDefaults method, added default values for new fields: startDate, everyX, and frequency. 2015-05-15 20:24:47 -07:00
Allen Pan d1805f9181 Fixed issue where incorrect time type passed in for shouldDo’s ‘day’ argument (should be a Date, sometimes Moment is passed in). Fixed incorrect comparison between Moment and Date. 2015-05-15 20:24:47 -07:00
Allen Pan e7cd3ff533 Set DailySchema’s ‘frequency’ default to weekly to maintain backwards compatibility. 2015-05-15 20:24:47 -07:00
Allen Pan fbb636a339 Removed stray debugging console logs. 2015-05-15 20:24:47 -07:00
Allen Pan a763a3a3da Cleaned up task.jade file:
- moved ugly html newlines into the stylesheet
- renamed temporary var for datePicker’s ngmodel from _dateString to _tempDateForPicker
- renamed open -> openDatePicker, and have the function track datePicker’s open/closed state on a per task instead of global basis
2015-05-15 20:24:47 -07:00
Allen Pan 1ecf608408 Added support in daily tasks for specifying ’every X days’ and ‘every X weeks on specific days of the week’.
- shouldDo() now takes the entire task as an input instead of just the ‘repeat’ (days of the week) dictionary.
- the ‘start’ date for a task can be specified (and can also be in the future, in which case it will be greyed out until then.) ‘start’ date also affects ‘every X days’ and ‘every X weeks’.
- no migration code yet.
2015-05-15 20:24:46 -07:00
Blade Barringer 2ba1a1fc85 Merge branch 'hairlessbear-challenge-achievement-display-fix-redux' into develop 2015-05-15 07:41:46 -05:00
Alys d6e1d765da adjust Inn message when user is already Resting - https://github.com/HabitRPG/habitrpg/issues/5128#issuecomment-99233779 2015-05-14 08:13:13 +10:00
Sabe Jones 89d1d63b24 Merge pull request #5198 from SabreCat/pet-skins
Pet Skins and Ears
2015-05-13 15:44:23 -05:00
Sabe Jones 84b333e5c1 fix(unlocks): Handle undefined/null balance 2015-05-13 15:34:23 -05:00
Sabe Jones 6e27b7af9d fix(purchases): Handle undefined/null balance 2015-05-13 15:15:40 -05:00
Sabe Jones 68ce9a8457 fix(test): Unlock takes query, not params 2015-05-13 14:34:20 -05:00
Sabe Jones 0cb1d8ec9a test(purchases): Gem buying tests
Also corrects the byline for Inn improvements to credit primary coder @hairlessbear.
2015-05-13 14:21:13 -05:00
Matteo Pagliazzi 05f6e5e14d fix(flags): correctly send flag reports emails 2015-05-13 20:08:46 +02:00
Matteo Pagliazzi b639896ae6 chore(i18n): update locales 2015-05-13 19:47:59 +02:00
Sabe Jones 35ff90b4d3 Merge remote-tracking branch 'origin/new_inn_behavior_PR' into pet-skins 2015-05-13 12:12:57 -05:00
Sabe Jones 3abec07119 chore(news): Bailey 2015-05-13 11:44:52 -05:00
Sabe Jones 2b8414766b chore(grunt): compile sprites 2015-05-13 11:19:33 -05:00
Sabe Jones 29109051d7 feat(customize): Animal skins and ears
Implements a base-pet-themed set of avatar skins and head accessories, the latter of which has additional handling for the user to purchase them from the Avatar Customization page.
2015-05-13 11:19:08 -05:00
hairlessbear 8e5cdbd742 Fixed challenges achievement always displaying (again)
Unearned achievements are hidden when viewing others' profiles, but are visible when a user views their own profile. Currently, the challenges achievement is displayed when viewing other users' profiles, even when they have not won any. This PR makes the challenges achievement display to other users' only when one or more challenges have been won.
2015-05-13 12:12:03 -04:00
hairlessbear 5ee6e94190 Merge pull request #3 from HabitRPG/develop
Update from original
2015-05-13 12:04:01 -04:00
Blade Barringer dca45d7845 Enable new inn behavior 2015-05-13 08:44:08 -05:00
Blade Barringer 0629b6af18 Correct bad tests in common suite 2015-05-13 08:37:52 -05:00
Blade Barringer 5cc847857f Unpend in test, pend failing tests 2015-05-13 07:50:16 -05:00
Blade Barringer f7f126c352 Add alert box to dailies resting in the inn message 2015-05-13 07:29:17 -05:00
Alys 2ac763cc50 add message about Resting in the Inn to top of Dailies column when preferences.sleep is true 2015-05-13 16:56:52 +10:00
Blade Barringer 4050e9ad0c Fix guilds not loading \(^ω^\) 2015-05-12 22:28:06 -05:00
Blade Barringer ff41a2c240 Refactor group tests 2015-05-12 08:08:55 -05:00
Blade Barringer faa897e4ae Re-enable skipped test 2015-05-11 17:29:46 -05:00
Matteo Pagliazzi d448ca3ac5 fix(groups): do not try to add members to a party when it does not exists 2015-05-11 22:13:31 +02:00
Blade Barringer 3c61b8dc4f Add todo about re-enabling test 2015-05-11 14:41:35 -05:00
Blade Barringer b663ff7101 Skipping group tests while we sort out join issue 2015-05-11 14:40:45 -05:00
Matteo Pagliazzi ae8b170446 fix(emails): remove base url from server 2015-05-11 20:44:52 +02:00
Matteo Pagliazzi c3bb6b88fa fix(tests): temporarily skip test 2015-05-11 17:21:57 +02:00
Matteo Pagliazzi 30fd8e26e6 revert last 2 commits 2015-05-11 17:02:36 +02:00
Matteo Pagliazzi e966de7bf0 feat(emails): add field to keep track of weekly recap emails 2015-05-11 16:54:44 +02:00
Matteo Pagliazzi fc1f6ba0b9 fix(emails): always use main site as base url 2015-05-11 15:43:35 +02:00
Blade Barringer c444f54e42 Remove unnecessary global declarations 2015-05-11 08:17:46 -05:00
Blade Barringer ed8a4ef651 Use chai expect instead of expect.js 2015-05-11 08:13:23 -05:00
Blade Barringer 8badc7d1a9 Add coupon api tests 2015-05-10 14:54:45 -05:00
Blade Barringer 109ca1b67c Correct bullet list position; fixes #5181 2015-05-10 14:16:11 -05:00
Blade Barringer c123ca6a42 Correct casing of translatable string 2015-05-10 09:13:05 -05:00
GihHubSphinx 6c5d9f3a6c Tried to make line translatable
Tried to make the "Only group leader can create challenges" line in the
guild creation dialog translatable
2015-05-10 08:59:43 -05:00
Alys 5123bdb4c4 Merge pull request #5080 from joyclark/develop
Fixing the grid view for mounts so that the animals are aligned correctly.
2015-05-10 19:01:56 +10:00