A compound of formula I-a or I-b: or a pharmaceutically acceptable salt thereof, wherein: Ring A is phenyl; Ring B is phenyl; R 1 is a warhead group -L-Y, wherein L is -NRC CH=CH-, -NRC CH=CHCH 2 N(CH 3)-, -NRC CH=CHCH 2 O-, -CH 2 NRC CH=CH-, -NRSO 2 CH=CHCH 2 -, -C CH=C(CH 3)-, -C CH=CHCH 2 N(CH 3)-, -C CH=CH-, -CH 2 C CH=CH-, -CH 2 C CH=C(CH 3)-, -CH 2 CH 2 C CH=CH-, -CH 2 CH 2 C CH=CHCH 2 -, -CH 2 CH 2 C CH=CHCH 2 N(CH 3)-, -CH 2 CH 2 C CH=C(CH 3)-, or -CH(CH 3)OC CH=CH-; and Y is hydrogen or C 1-6 aliphatic optionally substituted with oxo, halogen, NO 2, or CN; wherein the R group of L is H or optionally substituted C 1-6 aliphatic; wherein R 1 is attached to an atom other than an atom adjacent to the atom attached to W 1 on Formula I-b or W 2 on Formula I-a; R y is hydrogen, halogen, -CN, -CF 3, C 1-4 aliphatic, C 1-4 haloaliphatic, -OR, -C R, or -C N 2; each R group is independently hydrogen or an optionally substituted group selected from C 1-6 aliphatic, phenyl, a 4-7 membered heterocyclic ring having 1-2 heteroatoms independently selected from nitrogen, oxygen, or sulfur, or a 5-6 membered monocyclic heteroaryl ring having 1-4 heteroatoms independently selected from nitrogen, oxygen, or sulfur; W 1 and W 2 are each independently -NR 2 -; R 2 is hydrogen, optionally substituted C 1-6 aliphatic, or -C R; m and p are independently 0-4; and R x is selected from -R, halogen, -OR, or -O(CH 2) q OR, wherein q is 1-4; R v is selected from -R, halogen, -OR, -O(CH 2) q OR, -CN, -NO 2, -SO 2 R, -SO 2 N 2, -SOR, -C R, -CO 2 R, -C N 2, -NRC R, -NRC N 2, -NRSO 2 R, or -N 2, wherein q is 1-4. Ring A is phenyl; Ring B is phenyl; R 1 is a warhead group -L-Y, wherein L is -NRC CH=CH-, -NRC CH=CHCH 2 N(CH 3)-, -NRC CH=CHCH 2 O-, -CH 2 NRC CH=CH-, -NRSO 2 CH=CHCH 2 -, -C CH=C(CH 3)-, -C CH=CHCH 2 N(CH 3)-, -C CH=CH-, -CH 2 C CH=CH-, -CH 2 C CH=C(CH 3)-, -CH 2 CH 2 C CH=CH-, -CH 2 CH 2 C CH=CHCH 2 -, -CH 2 CH 2 C CH=CHCH 2 N(CH 3)-, -CH 2 CH 2 C CH=C(CH 3)-, or -CH(CH 3)OC CH=CH-; and Y is hydrogen or C 1-6 aliphatic optionally substituted with oxo, halogen, NO 2, or CN; wherein the R group of L is H or optionally substituted C 1-6 aliphatic; wherein R 1 is attached to an atom other than an atom adjacent to the atom attached to W 1 on Formula I-b or W 2 on Formula I-a; wherein the R group of L is H or optionally substituted C 1-6 aliphatic; wherein R 1 is attached to an atom other than an atom adjacent to the atom attached to W 1 on Formula I-b or W 2 on Formula I-a; R y is hydrogen, halogen, -CN, -CF 3, C 1-4 aliphatic, C 1-4 haloaliphatic, -OR, -C R, or -C N 2; each R group is independently hydrogen or an optionally substituted group selected from C 1-6 aliphatic, phenyl, a 4-7 membered heterocyclic ring having 1-2 heteroatoms independently selected from nitrogen, oxygen, or sulfur, or a 5-6 membered monocyclic heteroaryl ring having 1-4 heteroatoms independently selected from nitrogen, oxygen, or sulfur; W 1 and W 2 are each independently -NR 2 -; R 2 is hydrogen, optionally substituted C 1-6 aliphatic, or -C R; m and p are independently 0-4; and R x is selected from -R, halogen, -OR, or -O(CH 2) q OR, wherein q is 1-4; R v is selected from -R, halogen, -OR, -O(CH 2) q OR, -CN, -NO 2, -SO 2 R, -SO 2 N 2, -SOR, -C R, -CO 2 R, -C N 2, -NRC R, -NRC N 2, -NRSO 2 R, or -N 2, wherein q is 1-4.