Skip to content

Commit

Permalink
Make new users Changemakers and prompt existing users to Changemaker (#…
Browse files Browse the repository at this point in the history
…378)

HLI 1 #371, HLI 1-2 #375

This will make new users Changemakers by default (they will be prompted
to create an account)

NEW: Mari and I tested the change for accounts that already have an
existing business/project admin who do not have a Changemaker account,
and it prompts you to Changemaker creation page -- so it works for
existing accounts as well!

Co-authored-by: Nisha Shakya <[email protected]>
  • Loading branch information
nshakya02 and nisha-shakya authored Jan 26, 2025
1 parent e258f79 commit 7cfb328
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ services:
- HOME=/home/node=value
ports:
- 4000:4000
- 5000:5000
- 5001:5001
- 8080:8080
- 8085:8085
Expand Down
39 changes: 20 additions & 19 deletions libs/client/shell/src/lib/im-app/im-app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -916,25 +916,26 @@ export class ImAppComponent extends StatefulComponent<State> implements OnInit {
take(1),
withLatestFrom(this.activatedRoute.queryParams),
tap(([{ changeMaker, exchangeAdmins, serveAdmins, epApplications, spApplications }, query]) => {
const noProfiles =
!changeMaker &&
exchangeAdmins.length === 0 &&
serveAdmins.length === 0 &&
epApplications.length === 0 &&
spApplications.length === 0;
if (noProfiles) {
const register = {
cm: () => this.route.to.applications.cm.ROOT(),
sp: () => this.route.to.applications.sp.ROOT(),
ep: () => this.route.to.applications.ep.ROOT(),
market: () => this.route.to.applications.cm.ROOT(),
};
const fn = register[query['register'] as keyof typeof register];
if (fn) {
fn();
} else {
this.welcome.open();
}
// const noProfiles =
// !changeMaker &&
// exchangeAdmins.length === 0 &&
// serveAdmins.length === 0 &&
// epApplications.length === 0 &&
// spApplications.length === 0;
if (!changeMaker) {
// const register = {
// cm: () => this.route.to.applications.cm.ROOT(),
// sp: () => this.route.to.applications.sp.ROOT(),
// ep: () => this.route.to.applications.ep.ROOT(),
// market: () => this.route.to.applications.cm.ROOT(),
// };
// const fn = register[query['register'] as keyof typeof register];
// if (fn) {
// fn();
// } else {
// this.welcome.open();
// }
this.route.to.applications.cm.ROOT();
}
}),
switchMap(() =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<ion-button (click)="cm()">Become a ChangeMaker</ion-button>
</div>
</im-block>
<im-block class="im-ep">
<!-- <im-block class="im-ep">
<div body class="body">
<div class="img-cont">
<img src="/assets/onboard/spend.svg" />
Expand All @@ -49,6 +49,6 @@
</div>
<ion-button (click)="sp()">Become a ServePartner</ion-button>
</div>
</im-block>
</im-block> -->
</div>
</ion-content>

0 comments on commit 7cfb328

Please sign in to comment.