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

[DTO-4949][BpkNavigationBar] Create on-dark variant of BpkNavigationBar & Add Typescript #3110

Merged
merged 15 commits into from
Dec 14, 2023

Conversation

Iain530
Copy link
Contributor

@Iain530 Iain530 commented Dec 6, 2023

Description

Figma link

  • Added prop barStyle to BpkNavigationBar, BpkNavigationBarButtonLink, BpkNavigationBarIconButton
  • Added on-dark style
  • Migrated BpkNavigationBar to typescript
image

Remember to include the following changes:

  • Ensure the PR title includes the name of the component you are changing so it's clear in the release notes for consumers of the changes in the version e.g [KOA-123][BpkButton] Updating the colour
  • README.md (If you have created a new component)
  • Component README.md
  • Tests
  • Storybook examples created/updated
  • For breaking changes or deprecating components/properties, migration guides added to the description of the PR. If the guide has large changes, consider creating a new Markdown page inside the component's docs folder and link it here

@Iain530 Iain530 added the minor Non breaking change label Dec 6, 2023
@Iain530 Iain530 changed the title [DTO-4949] Create on-dark variant of BpkNavigationBar [DTO-4949][BpkNavigationBar] Create on-dark variant of BpkNavigationBar Dec 6, 2023
@Iain530 Iain530 marked this pull request as ready for review December 6, 2023 11:49
@Iain530
Copy link
Contributor Author

Iain530 commented Dec 6, 2023

Build currently failing due to missing dependency, will be fixed after #3109 is merged

Copy link

github-actions bot commented Dec 6, 2023

Visit https://backpack.github.io/storybook-prs/3110 to see this build running in a browser.

Copy link

github-actions bot commented Dec 6, 2023

Warnings
⚠️

Package source files (e.g. packages/package-name/src/Component.tsx) were updated, but type files weren't. Have you checked that no types have changed?

Browser support

If this is a visual change, make sure you've tested it in multiple browsers.

Generated by 🚫 dangerJS against 255eebc

Copy link

github-actions bot commented Dec 6, 2023

Visit https://backpack.github.io/storybook-prs/3110 to see this build running in a browser.

@Iain530
Copy link
Contributor Author

Iain530 commented Dec 6, 2023

Percy changes look as expected 👍

'default': 'default',
onDark: 'on-dark',
};
export type BarStyle = $Values<BAR_STYLES>
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you think you could convert it into TS as we are moving away from flow? We've added this bit in the contribution guidelines https://github.com/Skyscanner/backpack/blob/main/CONTRIBUTING.md#typescript but maybe it's not too visible 😢

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes can do, I will admit I didn't re-read that for this PR so that's on me 🙈

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Migrated to typescript, does this mean it will need a major version change or still a minor?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's ok to keep it as minor 🤔 Looking at the changelog, I see we've generally released these as minor.

Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm this also means it's going to break snapshots likely for users of navBar, but I guess that's fine, we can add a note maybe in the changelog 🤔

Copy link

github-actions bot commented Dec 8, 2023

Visit https://backpack.github.io/storybook-prs/3110 to see this build running in a browser.

import PropTypes from 'prop-types';

// TODO: close button is not really only a close button, we should rename and update the import here
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed this TODO as I don't think it makes sense anymore?

@Iain530 Iain530 changed the title [DTO-4949][BpkNavigationBar] Create on-dark variant of BpkNavigationBar [DTO-4949][BpkNavigationBar] Create on-dark variant of BpkNavigationBar & Add Typescript Dec 8, 2023
Copy link

github-actions bot commented Dec 8, 2023

Visit https://backpack.github.io/storybook-prs/3110 to see this build running in a browser.

Copy link

github-actions bot commented Dec 8, 2023

Visit https://backpack.github.io/storybook-prs/3110 to see this build running in a browser.

Copy link

Visit https://backpack.github.io/storybook-prs/3110 to see this build running in a browser.

Copy link

Visit https://backpack.github.io/storybook-prs/3110 to see this build running in a browser.

Copy link

Visit https://backpack.github.io/storybook-prs/3110 to see this build running in a browser.

Copy link

Visit https://backpack.github.io/storybook-prs/3110 to see this build running in a browser.

Copy link

Visit https://backpack.github.io/storybook-prs/3110 to see this build running in a browser.

@Iain530 Iain530 requested a review from anambl December 14, 2023 10:26
Copy link
Contributor

@anambl anambl left a comment

Choose a reason for hiding this comment

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

LGTM!

@anambl anambl merged commit 76e5c39 into main Dec 14, 2023
9 checks passed
@anambl anambl deleted the DTO-4949 branch December 14, 2023 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor Non breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants