-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refer to annual payments (dues) not membership
SOLE wants us to be more careful about who we term as "members" -- as it is, MITOC's current membership definition excludes people who pay dues to the club but then only use the club for renting gear. We can add some clarity to code/comments/documentation by referring to payment of dues and *membership* as distinct concepts. I did my best to update as much user-facing language as possible (as well as code comments), but `git grep -i member` still has a *lot* of places. We may need to revisit this later.
- Loading branch information
Showing
47 changed files
with
216 additions
and
226 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ const MEMBERSHIP_RESPONSE: MembershipResponse = { | |
email: "[email protected]", | ||
}, | ||
waiver: { expires: "2020-02-02", active: true }, | ||
status: "Missing Membership", | ||
status: "Missing Dues", | ||
}; | ||
let mockAxios: MockAdapter; | ||
|
||
|
@@ -86,7 +86,7 @@ describe("Expiring Soon", () => { | |
dateNowSpy.mockRestore(); | ||
}); | ||
|
||
it("Applies a special status for active memberships soon expiring", async () => { | ||
it("Applies a special status for active dues soon expiring", async () => { | ||
respondsWith({ | ||
membership: { | ||
// Active, but expiring in a couple days! | ||
|
@@ -104,7 +104,7 @@ describe("Expiring Soon", () => { | |
expect(statusIndicator.props("membershipStatus")).toEqual("Expiring Soon"); | ||
}); | ||
|
||
it("Leaves memberships with plenty of time remaining as 'Active'", async () => { | ||
it("Leaves dues with plenty of time remaining as 'Active'", async () => { | ||
respondsWith({ | ||
membership: { | ||
// Active, plenty of time left | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ describe("getMemberStatus", () => { | |
email: "[email protected]", | ||
}, | ||
waiver: { expires: "2020-02-02", active: true }, | ||
status: "Missing Membership", | ||
status: "Missing Dues", | ||
}; | ||
mockAxios.onGet("/users/37/membership.json").replyOnce((config) => { | ||
return [200, rawResp]; | ||
|
@@ -51,7 +51,7 @@ describe("getMemberStatus", () => { | |
expires: waiverExpires, | ||
}, | ||
// Renamed from the keyword `status` | ||
membershipStatus: "Missing Membership", | ||
membershipStatus: "Missing Dues", | ||
}; | ||
expect(data).toEqual(expectedData); | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,7 @@ interface Waiver { | |
// email: "[email protected]" | ||
// }, | ||
// waiver: { expires: "2020-02-02", active: true }, | ||
// status: "Missing Membership" | ||
// status: "Missing Dues" | ||
// }; | ||
export interface MembershipResponse { | ||
membership: RawMembership; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.