Coder Social home page Coder Social logo

Comments (13)

chiragParmar93 avatar chiragParmar93 commented on August 20, 2024 2

@evereq I have changed notifications for all modules. I have used ToastrService for all module. Please review it and give me your valuable feedback.

from ever-gauzy.

chiragParmar93 avatar chiragParmar93 commented on August 20, 2024 1

@rahul-rathore-576 okay, I will remove async from danger method.

from ever-gauzy.

evereq avatar evereq commented on August 20, 2024

@boyanstanchev did you add loading indicator to all pages? What about employees management page (http://localhost:4200/#/pages/employees)?

from ever-gauzy.

evereq avatar evereq commented on August 20, 2024

@AlexTasev please check every page and add loading indicators & toast notifications, same as we already did on many pages.

Note: toast notifications should always show context, e.g. record which was added/removed/ changed like "Organization 'Yo Technologies' was removed", etc.

from ever-gauzy.

chiragParmar93 avatar chiragParmar93 commented on August 20, 2024

@evereq I have changed notifications for organization module and I have few questions for notification message, Right now in some modules showing success message like attached image(1) and some module showing message like image(2). so can you please confirm which message notification toast we need to add for whole app.
image(1)
image(2)

from ever-gauzy.

evereq avatar evereq commented on August 20, 2024

@parmarchirag93 how it is different in the code, I see we are using our own "toastrService" in some places? We not using it in other places? What we use there? Best if you can send links to both such places in code, so I review and decide which one we should use everywhere.

from ever-gauzy.

chiragParmar93 avatar chiragParmar93 commented on August 20, 2024

Yes, we are using NbToastrService for toaster message and below is files there are using different toaster messages.
For image(1) => gauzy\apps\gauzy\src\app@shared\project-select\project\project.component.ts
For image(2) => gauzy\apps\gauzy\src\app@shared\expenses\recurring-expense-mutation\recurring-expense-mutation.component.ts

from ever-gauzy.

evereq avatar evereq commented on August 20, 2024

@parmarchirag93 let's use everywhere our own toastrService, i.e. "image(1)" and code like

this.toastrService.success(
				'NOTES.ORGANIZATIONS.EDIT_ORGANIZATIONS_PROJECTS.ADD_PROJECT',
				null,
				{ name }
			);

It's better because it wraps translation inside, so we do NOT need to do it every time like:

	this.toastrService.primary(
				this.getTranslation(
					'NOTES.ORGANIZATIONS.EDIT_ORGANIZATIONS_EXPENSE_CATEGORIES.ADD_EXPENSE_CATEGORY',
					{
						name: name
					}
				),
				this.getTranslation('TOASTR.TITLE.SUCCESS')
			);

So I think instead of above, we will need to just make it like:

this.toastrService.success(
				'NOTES.ORGANIZATIONS.EDIT_ORGANIZATIONS_EXPENSE_CATEGORIES.ADD_EXPENSE_CATEGORY',
				null,
				{ name }
			);

from ever-gauzy.

evereq avatar evereq commented on August 20, 2024

@parmarchirag93 btw, I changed the implementation of the service itself to use "this.nbToastrService.primary" as I like blue color more than green for notifications (more consistent with Gauzy colors) - /gauzy/src/app/@core/services/toastr.service.ts#L23

Also, as part of this task, can you please verify why we have one method (danger) defined with async, while the other 2 methods without? https://github.com/ever-co/gauzy/blob/develop/apps/gauzy/src/app/@core/services/toastr.service.ts#L29
@rahul-rathore-576 if you have ideas, let us know. I think it should be all async or should all be without async. What do you think?

from ever-gauzy.

chiragParmar93 avatar chiragParmar93 commented on August 20, 2024

via Hubstaff
User: Chirag Parmar

Project: Gauzy Platform - https://app.hubstaff.com/projects/681079
Date Range: 12/22/20 - 12/22/20
Work session total: 3:39:28
Billable: No

Grand total: 3:39:28

from ever-gauzy.

rahul-rocket avatar rahul-rocket commented on August 20, 2024

@parmarchirag93 btw, I changed the implementation of the service itself to use "this.nbToastrService.primary" as I like blue color more than green for notifications (more consistent with Gauzy colors) - /gauzy/src/app/@core/services/toastr.service.ts#L23

Also, as part of this task, can you please verify why we have one method (danger) defined with async, while the other 2 methods without? https://github.com/ever-co/gauzy/blob/develop/apps/gauzy/src/app/@core/services/toastr.service.ts#L29
@rahul-rathore-576 if you have ideas, let us know. I think it should be all async or should all be without async. What do you think?

@evereq There is no need async in danger method. So we can remove it. @parmarchirag93

from ever-gauzy.

chiragParmar93 avatar chiragParmar93 commented on August 20, 2024

via Hubstaff
User: Chirag Parmar

Project: Gauzy Platform - https://app.hubstaff.com/projects/681079
Date Range: 12/23/20 - 12/23/20
Work session total: 3:45:52
Billable: No

Grand total: 7:25:20

from ever-gauzy.

evereq avatar evereq commented on August 20, 2024

@parmarchirag93 amazing work, thank you!

from ever-gauzy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.