Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sprint 30 #2261

Merged
merged 116 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
116 commits
Select commit Hold shift + click to select a range
82c5045
fixing - discussion messages appear only after touching the screen in…
roienatan Sep 27, 2023
a3efc6d
try #2
roienatan Sep 27, 2023
56aff1d
.
roienatan Sep 28, 2023
91156e0
.
roienatan Sep 28, 2023
aaed82e
try 2
roienatan Sep 28, 2023
11c098b
.
roienatan Oct 3, 2023
7acf4fd
..
roienatan Oct 3, 2023
1fecf86
Merge branch 'dev' into cw-2101-mobile-chat-messages-missing
roienatan Oct 4, 2023
f514693
.
roienatan Oct 4, 2023
12b23a9
change default settings to `all` value
andreymikhadyuk Oct 16, 2023
d2d3d84
CW-2025 Added react-zoom-pan-pinch library and ImageWithZoom
pvm-code Oct 16, 2023
4daafc7
update billing page's UI
andreymikhadyuk Oct 16, 2023
794ef1d
add icon element to menu item
andreymikhadyuk Oct 16, 2023
af9922d
add icons to the profile menu
andreymikhadyuk Oct 16, 2023
2c50fcd
change edit button icon of profile page
andreymikhadyuk Oct 16, 2023
99e8ca1
copy UserDetails to profile page component
andreymikhadyuk Oct 16, 2023
75bc80f
update user details preview displaying
andreymikhadyuk Oct 16, 2023
f651de3
update edit avatar button icon
andreymikhadyuk Oct 17, 2023
551695d
update profile page edit form
andreymikhadyuk Oct 17, 2023
14b76b0
create light pink button variant
andreymikhadyuk Oct 17, 2023
5e18e6f
add edit profile button to profile preview
andreymikhadyuk Oct 17, 2023
127c54f
Merge pull request #2203 from daostack/feature/CW-2202-default-settings
pvm-code Oct 17, 2023
67322f5
Merge pull request #2204 from daostack/CW-2025-zoom-in
pvm-code Oct 17, 2023
5276f53
CW-Webview Changed path to inbox
pvm-code Oct 17, 2023
706c3cd
update profile form on mobile
andreymikhadyuk Oct 17, 2023
7a1884e
Merge pull request #2205 from daostack/CW-Webview-redirect-inbox
pvm-code Oct 17, 2023
837887b
Merge branch 'dev' into feature/CW-2194-profile
andreymikhadyuk Oct 17, 2023
d8310cc
add "required" info to common image label
andreymikhadyuk Oct 17, 2023
98d1a14
add validation message to the common picture form item
andreymikhadyuk Oct 17, 2023
fd80c64
Merge pull request #2207 from daostack/bugfix/CW-2181-common-without-…
andreymikhadyuk Oct 17, 2023
5f7b7dc
add `lastActivity` field to `Common` model
andreymikhadyuk Oct 17, 2023
1e50060
sort breadcrumbs items by name
andreymikhadyuk Oct 17, 2023
77fa35d
Merge branch 'dev' into cw-2101-mobile-chat-messages-missing
roienatan Oct 17, 2023
25f8737
Merge branch 'staging' into dev
andreymikhadyuk Oct 17, 2023
faf82b2
Merge branch 'dev' into feature/CW-2183-commons-sorting
andreymikhadyuk Oct 17, 2023
63ba32d
Merge pull request #2206 from daostack/feature/CW-2194-profile
andreymikhadyuk Oct 17, 2023
f65369c
Merge branch 'dev' into feature/CW-2183-commons-sorting
andreymikhadyuk Oct 17, 2023
8e8385b
.
roienatan Oct 17, 2023
f999629
.
roienatan Oct 17, 2023
458a25a
revert "sort breadcrumbs items by name"
andreymikhadyuk Oct 17, 2023
5a02524
add breadcrumbs sorting by lastActivity
andreymikhadyuk Oct 17, 2023
14b3118
change 'What do you think?' chat placeholder to 'Message'
roienatan Oct 17, 2023
8fc2e83
add commons sorting in the navigation dropdown
andreymikhadyuk Oct 17, 2023
2a48891
add projects sorting in the sidenav
andreymikhadyuk Oct 17, 2023
9651014
added loader delay on mobile for feed
andreymikhadyuk Oct 17, 2023
8b89853
revert "add projects sorting in the sidenav"
andreymikhadyuk Oct 17, 2023
546e621
Merge pull request #2210 from daostack/feature/CW-2193-feed-loader-delay
roienatan Oct 18, 2023
b19b381
show project feed item counter even if nothing has been updated
budnik9 Oct 18, 2023
5df1ee6
add follow space feature for v04 layout
budnik9 Oct 18, 2023
449066f
Merge pull request #2129 from daostack/cw-2101-mobile-chat-messages-m…
roienatan Oct 18, 2023
87bf7c6
message menu on mobile: long press
roienatan Oct 18, 2023
bbb89c1
editor: same indentation for new lines
roienatan Oct 18, 2023
d53b855
Merge pull request #2216 from daostack/cw-2024-editor-same-indentation
roienatan Oct 19, 2023
ebf506b
Merge pull request #2215 from daostack/cw-2147-fix-message-links-not-…
roienatan Oct 19, 2023
c90f97f
about page root common: show join common button
roienatan Oct 19, 2023
ab79367
clean in MembershipRequestIntroduce
roienatan Oct 19, 2023
e84980a
Merge pull request #2209 from daostack/feature/CW-2183-commons-sorting
pvm-code Oct 20, 2023
55580b6
Merge pull request #2214 from daostack/feature/CW-2195-support-follow…
pvm-code Oct 20, 2023
a8b6775
Merge pull request #2213 from daostack/bugfix/CW-2190-project-feed-it…
pvm-code Oct 20, 2023
dbb3985
Merge pull request #2220 from daostack/dev
pvm-code Oct 20, 2023
da5dda4
fix: chat input rtl emoji container blocks cursor
roienatan Oct 22, 2023
532bbe1
join via is now button instead of text link
roienatan Oct 22, 2023
d4118d2
remove `Edit profile` button on mobile
andreymikhadyuk Oct 23, 2023
e162ab9
Merge pull request #2225 from daostack/feature/CW-2194-remove-edit-pr…
andreymikhadyuk Oct 23, 2023
bfd5174
update isJoinAllowed condition
roienatan Oct 23, 2023
3bed749
Merge pull request #2224 from daostack/cw-2223-fix-chat-input-hebrew-…
roienatan Oct 23, 2023
f36f262
add sorting to the feed item list
andreymikhadyuk Oct 23, 2023
53a3e6c
add sorting to update list of inbox items
andreymikhadyuk Oct 23, 2023
e389ed9
disable scroll anchor for feed item list
andreymikhadyuk Oct 23, 2023
14c3192
bring back withJoinRequest
roienatan Oct 23, 2023
7540c29
message loading skeleton
roienatan Oct 23, 2023
66b5442
Merge pull request #2231 from daostack/feature/CW-2212-feed-sorting
andreymikhadyuk Oct 24, 2023
5176561
add logs for common sorting
andreymikhadyuk Oct 24, 2023
f97c1f1
remove extra fetches of breadcrumbs data
andreymikhadyuk Oct 24, 2023
0f49b31
create useAllUserCommonMemberInfo hook
andreymikhadyuk Oct 24, 2023
77a3311
create useGovernanceListByCommonIds hook
andreymikhadyuk Oct 24, 2023
b3d8bc4
add logic to fetch breadcrumbs item's projects
andreymikhadyuk Oct 24, 2023
8ba67f2
add logic to display add space button
andreymikhadyuk Oct 24, 2023
740de9d
landing page: remove video animation ; remove unnecessary images
roienatan Oct 24, 2023
0c600df
reuse commons and projects from sidenav in breadcrumbs
andreymikhadyuk Oct 24, 2023
b84ba8a
add loader to breadcrumbs menu
andreymikhadyuk Oct 24, 2023
f411c98
create ActiveFeedBreadcrumbsItem component
andreymikhadyuk Oct 24, 2023
7577090
fix breadcrumbs related reducers
andreymikhadyuk Oct 24, 2023
d6f7c27
fix active breadcrumbs items
andreymikhadyuk Oct 24, 2023
c91dec2
revert breadcrumbs items type
andreymikhadyuk Oct 24, 2023
3733875
add comment to the addOrUpdateProjectInBreadcrumbs reducer
andreymikhadyuk Oct 24, 2023
8836b56
updated system message design
roienatan Oct 24, 2023
a01f32e
fix FeedBreadcrumbsItem's base item building
andreymikhadyuk Oct 24, 2023
742d3fc
optimize breadcrumbs configuration using existing data
andreymikhadyuk Oct 24, 2023
7d47273
fix projects in sidenav fetch on item click from breadcrumbs
andreymikhadyuk Oct 24, 2023
6e1ba0d
fix projects in sidenav fetch on item click from breadcrumbs
andreymikhadyuk Oct 24, 2023
5c7cad7
close message menu on chat scrolling
budnik9 Oct 24, 2023
39b20f6
CW-2227 Revert routing to new inbox
pvm-code Oct 25, 2023
8d633f9
Merge pull request #2219 from daostack/cw-2217-about-root-common-join…
roienatan Oct 25, 2023
1b4e27b
Merge pull request #2244 from daostack/feature/CW-2146-hide-message-menu
pvm-code Oct 25, 2023
9ac1ca4
loading... label instead of animation
roienatan Oct 25, 2023
de1bc73
updated color text
roienatan Oct 25, 2023
5140f43
updates
roienatan Oct 25, 2023
75a947a
clean
roienatan Oct 25, 2023
3d321d0
CW-2227 Revert sidenav to v04
pvm-code Oct 25, 2023
441d1e0
Merge pull request #2232 from daostack/cw-2192-message-item-loading-s…
pvm-code Oct 25, 2023
1b5b75d
Merge pull request #2242 from daostack/cw-2238-updated-system-message…
pvm-code Oct 25, 2023
5e7efdc
Merge pull request #2246 from daostack/CW-2227-revert-v04-sidenav
pvm-code Oct 25, 2023
3de41c9
Merge pull request #2243 from daostack/feature/CW-2234-breadcrumbs
pvm-code Oct 25, 2023
dc85068
useBigPhoneView
roienatan Oct 25, 2023
f72a877
Merge pull request #2241 from daostack/cw-2235-landing-page-remove-video
roienatan Oct 25, 2023
51ce064
Merge branch 'staging' into dev
pvm-code Oct 25, 2023
d96f3a6
Merge pull request #2247 from daostack/dev
pvm-code Oct 25, 2023
b9104ae
CW-Hotfix-revert-to-v04
pvm-code Oct 26, 2023
a724ca1
Merge pull request #2249 from daostack/CW-Hotfix-revert-inbox-to-v04
pvm-code Oct 26, 2023
789d328
Merge pull request #2250 from daostack/dev
pvm-code Oct 26, 2023
5de6e79
treat a missing commonFeedObjectUserUnique for the user as "New"
budnik9 Oct 26, 2023
7589832
CW-2236 Added styles for plus icon
pvm-code Oct 26, 2023
1a92ee3
Merge pull request #2251 from daostack/bugfix/CW-2233-new-tag-visibil…
pvm-code Oct 26, 2023
529ebaf
Merge pull request #2253 from daostack/CW-2236-change-plus-icon
pvm-code Oct 26, 2023
1ff4682
Merge pull request #2255 from daostack/dev
pvm-code Oct 26, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
"react-split-pane": "^0.1.92",
"react-use": "^17.4.0",
"react-virtualized": "^9.22.3",
"react-zoom-pan-pinch": "^3.2.0",
"redux": "^4.0.4",
"redux-saga": "^1.1.3",
"reselect": "^4.0.0",
Expand Down
26 changes: 0 additions & 26 deletions public/assets/images/apps-qr.svg

This file was deleted.

Binary file removed public/assets/images/iphone-full-1.png
Binary file not shown.
Binary file removed public/assets/images/iphone-full-2.png
Binary file not shown.
Binary file removed public/assets/images/iphone-full-3.png
Binary file not shown.
Binary file removed public/assets/images/iphone-half-1.png
Binary file not shown.
Binary file removed public/assets/images/iphone-half-2.png
Binary file not shown.
Binary file removed public/assets/images/iphone-half-3.png
Binary file not shown.
Binary file removed public/assets/images/iphone-half-desktop.png
Binary file not shown.
Binary file removed public/assets/images/iphone-half-mobile.png
Binary file not shown.
Binary file removed public/assets/images/join-mobile.jpg
Binary file not shown.
Binary file removed public/assets/images/join.jpg
Binary file not shown.
Binary file added public/assets/images/landing-mobile-poster.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/assets/images/main-landing-image-1.jpg
Binary file not shown.
Binary file removed public/assets/images/main-landing-image-2.jpg
Binary file not shown.
Binary file removed public/assets/images/main-landing-image-3.jpg
Binary file not shown.
1 change: 1 addition & 0 deletions src/constants.scss
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ $c-gray-30: #b7bcd2;
$c-gray-40: #8d91a9;
$c-gray-50: #7a819c;
$c-gray-60: #6b718e;
$c-gray-80: #2e3452;
$c-gray-90: #1f2535;
$c-gray-100: #131b23;
$c-gray-800: #27292c;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import React, { FC } from "react";
import { useTranslation } from "react-i18next";
import landingVideoPosterSrc from "@/shared/assets/images/landing-video-poster.jpeg";
import landingVideoPosterSrc from "@/shared/assets/images/landing-video-poster.jpg";
import landingVideoSrc from "@/shared/assets/videos/landing-video.mp4";
import { useIsBigPhoneView } from "@/shared/hooks/viewport";
import { Button, ButtonVariant } from "@/shared/ui-kit";
import "./index.scss";

Expand All @@ -13,21 +14,24 @@ const VideoSection: FC<VideoSectionProps> = ({ onLaunchClick }) => {
const { t } = useTranslation("translation", {
keyPrefix: "landing",
});
const isBigPhoneView = useIsBigPhoneView();

return (
<section className="landing-video-section">
<div className="landing-video-section__video-wrapper">
<video
className="landing-video-section__video"
autoPlay
loop
muted
playsInline
poster={landingVideoPosterSrc}
preload="auto"
>
<source src={landingVideoSrc} type="video/mp4" />
</video>
{!isBigPhoneView && (
<video
className="landing-video-section__video"
autoPlay
loop
muted
playsInline
poster={landingVideoPosterSrc}
preload="auto"
>
<source src={landingVideoSrc} type="video/mp4" />
</video>
)}
</div>
<div className="landing-video-section__main-info">
<h1 className="landing-video-section__main-info-title">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ $viewport-breakpoint: 1000px;

.landing-video-section {
position: relative;

@include big-phone {
background-image: url("/assets/images/landing-mobile-poster.jpg");
background-size: cover;
background-position: center;
height: 37.125rem;
}
}

.landing-video-section__video-wrapper {
Expand Down
14 changes: 14 additions & 0 deletions src/pages/MyAccount/components/Billing/Billing.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@import "../../../../constants";
@import "../../../../styles/sizes";

.container {
width: 100%;
}

.header {
margin-bottom: 2.25rem;

@include tablet {
margin-bottom: 0;
}
}
22 changes: 10 additions & 12 deletions src/pages/MyAccount/components/Billing/Billing.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
import React, { useEffect, useState, FC } from "react";
import { useDispatch, useSelector } from "react-redux";
import { useDispatch } from "react-redux";
import { getBankDetails, loadUserCards } from "@/pages/OldCommon/store/actions";
import { ScreenSize } from "@/shared/constants";
import {
usePaymentMethodChange,
useUserContributions,
} from "@/shared/hooks/useCases";
import { useIsTabletView } from "@/shared/hooks/viewport";
import { BankAccountDetails, Payment, Subscription } from "@/shared/models";
import { getScreenSize } from "@/shared/store/selectors";
import { DesktopBilling } from "./DesktopBilling";
import { MobileBilling } from "./MobileBilling";
import { Header } from "./components";
import { BankAccountState, BillingProps, CardsState } from "./types";
import styles from "./Billing.module.scss";
import "./index.scss";

const Billing: FC = () => {
const dispatch = useDispatch();
const isMobileView = useIsTabletView();
const [cardsState, setCardsState] = useState<CardsState>({
loading: false,
fetched: false,
Expand All @@ -28,8 +30,6 @@ const Billing: FC = () => {
const [activeContribution, setActiveContribution] = useState<
Payment | Subscription | null
>(null);
const screenSize = useSelector(getScreenSize());
const isMobileView = screenSize === ScreenSize.Mobile;
const {
changePaymentMethodState,
onPaymentMethodChange,
Expand Down Expand Up @@ -138,13 +138,11 @@ const Billing: FC = () => {
};

return (
<div className="route-content my-account-billing">
{(!isMobileView || !activeContribution) && (
<header className="my-account-billing__header">
<h2 className="route-title">Billing</h2>
</header>
)}
<Component {...billingProps} />
<div className={styles.container}>
<div className="route-content my-account-billing">
<Header className={styles.header} isMobileVersion={isMobileView} />
<Component {...billingProps} />
</div>
</div>
);
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@import "../../../../../constants";

.my-account-mobile-billing {
--content-ph: var(--container-pl, #{$content-padding-mobile});
--content-ph: 1rem;

flex: 1;
display: flex;
Expand All @@ -19,13 +19,13 @@

.my-account-mobile-billing__tabs-wrapper {
padding: 0 var(--content-ph);
margin: 0 calc(var(--content-ph) * -1);
white-space: nowrap;
border-bottom: 1px solid $light-gray-1;
}

.my-account-mobile-billing__tab-panels {
height: 100%;
padding: 0 var(--content-ph);
}

.my-account-mobile-billing__tab-panel {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
@import "../../../../../../constants";

.desktopContainer {
display: flex;
align-items: center;
justify-content: space-between;
}

.desktopTitle {
margin: 0;
font-family: Lexend, sans-serif;
font-weight: normal;
font-size: 2.25rem;
line-height: 3rem;
}

.topNavigationWithBlocks {
z-index: 10;
}

.backIcon {
flex-shrink: 0;
width: 0.875rem;
height: 0.875rem;
}

.mobileTitle {
margin: 0;
font-family: PoppinsSans, sans-serif;
font-weight: 500;
font-size: 1rem;
text-align: center;
color: $c-gray-100;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import React, { FC } from "react";
import { useHistory } from "react-router-dom";
import classNames from "classnames";
import { useRoutesContext } from "@/shared/contexts";
import { useGoBack } from "@/shared/hooks";
import { LongLeftArrowIcon } from "@/shared/icons";
import {
TopNavigationBackButton,
TopNavigationWithBlocks,
} from "@/shared/ui-kit";
import styles from "./Header.module.scss";

interface HeaderProps {
className?: string;
isMobileVersion?: boolean;
}

const Header: FC<HeaderProps> = (props) => {
const { className, isMobileVersion = false } = props;
const history = useHistory();
const { canGoBack, goBack } = useGoBack();
const { getProfilePagePath } = useRoutesContext();

if (!isMobileVersion) {
return (
<header className={classNames(styles.desktopContainer, className)}>
<h1 className={styles.desktopTitle}>Billing</h1>
</header>
);
}

const handleBackButtonClick = () => {
if (canGoBack) {
goBack();
} else {
history.push(getProfilePagePath());
}
};

return (
<TopNavigationWithBlocks
className={styles.topNavigationWithBlocks}
leftElement={
<TopNavigationBackButton
iconEl={<LongLeftArrowIcon className={styles.backIcon} />}
onClick={handleBackButtonClick}
/>
}
centralElement={<h2 className={styles.mobileTitle}>Billing</h2>}
/>
);
};

export default Header;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default as Header } from "./Header";
1 change: 1 addition & 0 deletions src/pages/MyAccount/components/Billing/components/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./Header";
12 changes: 7 additions & 5 deletions src/pages/MyAccount/components/Billing/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@
@import "../../../../styles/sizes";

.my-account-billing {
max-width: 36.25rem;
width: 100%;
margin: 0 auto;
padding-top: 3.375rem;
display: flex;
flex-direction: column;
font-family: PoppinsSans, sans-serif;
color: $secondary-blue;
overflow: hidden;

@include big-phone {
display: flex;
flex-direction: column;
overflow: initial;
@include tablet {
padding-top: 0;
}

.my-account-billing__header {
Expand Down
35 changes: 35 additions & 0 deletions src/pages/MyAccount/components/Profile/Profile.module.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
@import "../../../../constants";
@import "../../../../styles/mixins";
@import "../../../../styles/sizes";

.container {
position: relative;
width: 100%;
}

.content {
max-width: 36.25rem;
width: 100%;
margin: 0 auto;
padding-top: 3.375rem;

@include tablet {
padding-top: 0;
}
}

.header {
margin-bottom: 2.25rem;

Expand Down Expand Up @@ -37,6 +49,14 @@
}
}

.userDetails {
margin-bottom: 2.25rem;

@include tablet {
margin-bottom: 0;
}
}

.menuButtonsWrapper {
border-top: 0.0625rem solid $c-gray-20;
}
Expand All @@ -48,3 +68,18 @@
.logoutMenuButton {
color: $c-pink-mention;
}

.buttonsWrapper {
@include flex-list-with-gap(1rem);

@include tablet {
width: 100%;
margin: 1.5rem 0 0;
flex-direction: column-reverse;
box-sizing: border-box;

& > * {
margin: 0 0 1rem;
}
}
}
Loading