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

Add fleet management grid sample #10

Merged
merged 30 commits into from
Jan 20, 2025
Merged

Conversation

IMinchev64
Copy link
Contributor

@IMinchev64 IMinchev64 commented Dec 13, 2024

To-do:

  • css classes need some cleanup

@IMinchev64 IMinchev64 added the 🛠️ status: in-development Issues and PRs with active development on them label Dec 13, 2024
@IMinchev64 IMinchev64 marked this pull request as ready for review December 13, 2024 11:06
@IMinchev64 IMinchev64 removed the 🛠️ status: in-development Issues and PRs with active development on them label Dec 13, 2024
@sdimchevski sdimchevski assigned yradoeva and unassigned sdimchevski Dec 13, 2024
@dkamburov dkamburov requested a review from tishko0 December 18, 2024 08:17
@yradoeva

This comment was marked as resolved.

@IMinchev64 IMinchev64 added the 🛠️ status: in-development Issues and PRs with active development on them label Jan 8, 2025
Base automatically changed from master to vnext January 13, 2025 13:38
@IMinchev64 IMinchev64 added ❌ status: awaiting-test PRs awaiting manual verification and removed 🛠️ status: in-development Issues and PRs with active development on them ❌ status: awaiting-test PRs awaiting manual verification labels Jan 13, 2025
@IMinchev64
Copy link
Contributor Author

If running the app with the latest changes after the "Refactor structure of data and data handling" commit you should delete the .angluar/cache folder just in case.

@dkamburov dkamburov added ❌ status: awaiting-test PRs awaiting manual verification and removed 🛠️ status: in-development Issues and PRs with active development on them labels Jan 16, 2025
Copy link

@MayaKirova MayaKirova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if the images under public/photos/.old are used anywhere. If not they can be removed. Other than that LGTM.

@MarielaTihova
Copy link

  1. In the "Trip History" tab the alignment of these columns should be Right like it is in the design.
  • Also the ID column in each tab should be right aligned

image

  1. A suggestion about the maps: Is it possible to have them be static, meaning to not have the zoom-in and zoom-out because the pins are being incorrectly placed when zooming in and out.

private driverOverlayId: string | null = null;

//overlay toggle flags
public isLocationOverlayActive = false;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For consistency can you assign type boolean to these two variables as well


//chart periods
public periods = {
costPerTypePeriod: "ytd",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These values are used in several places ("ytd", "3months", "6months", "12months") . Can you put them in an Enum or some shared object?

}

//driver details for detail overlay
public driverDetails = {
Copy link

@MarielaTihova MarielaTihova Jan 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interface for this so that you can assign a type to it


//handling for chart periods
public onPeriodChange(event: any, chart: string): void {
if (chart == "costsPerType") {
Copy link

@MarielaTihova MarielaTihova Jan 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any reason to use == instead of === ?

Also can you put all flying around strings in variables? If they are repeating over different files, please put them in a shared location.


const driverDetails = this.dataService.getDriverData(driverName);

this.driverDetails.name = driverDetails?.name as string;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use driverDetails?.name || "" instead of "as string". This will ensure us that we have an empty string if driverDetails.name has a falsy value. Same goes for all of the fields following

@dkamburov dkamburov added ✅ status: verified Applies to PRs that have passed manual verification and removed ❌ status: awaiting-test PRs awaiting manual verification labels Jan 20, 2025
@dkamburov dkamburov merged commit 71cbe5d into vnext Jan 20, 2025
@dkamburov dkamburov deleted the iminchev/master-detail-grid branch January 20, 2025 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design: verified ✅ status: verified Applies to PRs that have passed manual verification
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants