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

feature flag details page overview header left code changes #1601

Merged

Conversation

Yagnik56
Copy link
Collaborator

@Yagnik56 Yagnik56 commented Jun 3, 2024

This PR contains changes related to the details page overview header left integration.
Screenshot from 2024-06-03 19-41-25

@Yagnik56 Yagnik56 self-assigned this Jun 3, 2024
@Yagnik56 Yagnik56 linked an issue Jun 3, 2024 that may be closed by this pull request
@@ -20,6 +20,27 @@ export class FeatureFlagsService {
isAllFlagsFetched$ = this.store$.pipe(select(selectIsAllFlagsFetched));
activeDetailsTabIndex$ = this.store$.pipe(select(selectActiveDetailsTabIndex));

formatDateString(dateString, dateTime) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

we have dayjs for date formatting:
const date = dayjs("2024-05-31T21:54:19.692Z"); date.format('MMM DD, YYYY, hh:mm A');

But we also already have a FormatDate pipe. We should probably just use that to be consistent with how this and other dates are done. I wouldn't worry too much about getting it exactly like in the design, but if you want to create an additional format, we should use the pipe to do that as well.

<span class="ft-14-700 flag-create-date">
        {{ ('home.view-experiment.created-on.text' | translate) + (flag.createdAt | formatDate: 'medium date') }}
      </span>

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

addressed this cmt

Copy link
Collaborator

Choose a reason for hiding this comment

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

cool, this function can be deleted then.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

Copy link
Collaborator

@danoswaltCL danoswaltCL left a comment

Choose a reason for hiding this comment

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

comment on the date format function is only thing, otherwise looks good

@Yagnik56
Copy link
Collaborator Author

Yagnik56 commented Jun 4, 2024

Comment on the date format function is the only thing, it looks good

I made the change but it's not the same as shown in the design as it has only 2 options, we can add more options in the pipe later to provide more variety as per the needs.

@Yagnik56 Yagnik56 requested a review from danoswaltCL June 4, 2024 12:07
@danoswaltCL danoswaltCL dismissed their stale review June 4, 2024 14:21

asdfasdf

@danoswaltCL danoswaltCL merged commit bdcdcf0 into dev Jun 4, 2024
8 checks passed
@danoswaltCL danoswaltCL deleted the feature/feature-flag-details-page-header-left-integration branch June 4, 2024 14:27
@Yagnik56 Yagnik56 linked an issue Jun 7, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FF Overview Section Card Header-Left
2 participants