Skip to content

Conversation

@georgylobko
Copy link
Member

@georgylobko georgylobko commented Jan 21, 2025

Description

doc: tb1MA6m8ZZEt

Related links, issue #, if available: n/a

How has this been tested?

Review checklist

The following items are to be evaluated by the author(s) and the reviewer(s).

Correctness

  • Changes include appropriate documentation updates.
  • Changes are backward-compatible if not indicated, see CONTRIBUTING.md.
  • Changes do not include unsupported browser features, see CONTRIBUTING.md.
  • Changes were manually tested for accessibility, see accessibility guidelines.

Security

Testing

  • Changes are covered with new/existing unit tests?
  • Changes are covered with new/existing integration tests?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@codecov
Copy link

codecov bot commented Jan 21, 2025

Codecov Report

Attention: Patch coverage is 98.43750% with 1 line in your changes missing coverage. Please review.

Project coverage is 96.43%. Comparing base (c4a43a9) to head (b72d548).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/app-layout-toolbar/index.tsx 97.56% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3208   +/-   ##
=======================================
  Coverage   96.42%   96.43%           
=======================================
  Files         791      793    +2     
  Lines       22611    22665   +54     
  Branches     7814     7839   +25     
=======================================
+ Hits        21803    21857   +54     
  Misses        754      754           
  Partials       54       54           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Member Author

Choose a reason for hiding this comment

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

These styles were copied from pages/app-layout

…mponent

# Conflicts:
#	src/__tests__/snapshot-tests/__snapshots__/test-utils-wrappers.test.tsx.snap
import { awsuiPluginsInternal } from '../../internal/plugins/api';
import { RegistrationState } from '../../internal/plugins/controllers/app-layout-widget';
import { AppLayoutProps } from '../interfaces';
import { useAppLayoutToolbarEnabled } from '../utils/feature-flags';
Copy link
Member

Choose a reason for hiding this comment

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

Let's rename these hooks

  • useAppLayoutFlagEnabled – the feature flags are active (for all advanced deduplication features)
  • useAppLayoutToolbarDesignEnabled - same as above, but also true when toolbar is used standalone

Copy link
Member Author

Choose a reason for hiding this comment

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

done

Comment on lines +17 to +24
beforeEach(() => {
globalWithFlags[Symbol.for('awsui-visual-refresh-flag')] = () => true;
});

afterEach(() => {
delete globalWithFlags[Symbol.for('awsui-visual-refresh-flag')];
clearVisualRefreshState();
});
Copy link
Member

Choose a reason for hiding this comment

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

Discussed offline, let's undo the change about useVisualRefresh and keep it this way until the PR is merged

@georgylobko georgylobko added this pull request to the merge queue Mar 11, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 11, 2025
@georgylobko georgylobko added this pull request to the merge queue Mar 11, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 11, 2025
@georgylobko georgylobko added this pull request to the merge queue Mar 11, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 11, 2025
@georgylobko georgylobko added this pull request to the merge queue Mar 11, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 11, 2025
@georgylobko georgylobko added this pull request to the merge queue Mar 11, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 11, 2025
@georgylobko georgylobko added this pull request to the merge queue Mar 11, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 11, 2025
@georgylobko georgylobko added this pull request to the merge queue Mar 12, 2025
Merged via the queue into main with commit 3bbd16e Mar 12, 2025
38 checks passed
@georgylobko georgylobko deleted the feat/public-layout-component branch March 12, 2025 07:36
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.

3 participants