8000 feat: create UI badges for labeling beta features by Parkreiner · Pull Request #14661 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

feat: create UI badges for labeling beta features #14661

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

Merged
merged 48 commits into from
Sep 20, 2024
Merged
Changes from 1 commit
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
f843f23
chore: finish draft work for FeatureBadge component
Parkreiner Sep 12, 2024
43874a4
fix: add visually-hidden helper text for screen readers
Parkreiner Sep 12, 2024
fb70781
chore: add stories for highlighted state
Parkreiner Sep 12, 2024
c2470f9
fix: update base styles
Parkreiner Sep 12, 2024
693946f
chore: remove debug display option
Parkreiner Sep 12, 2024
c2d7cda
Merge branch 'main' into mes/beta-badges
Parkreiner Sep 13, 2024
129613b
chore: update Popover to propagate events
Parkreiner Sep 13, 2024
6adea6b
wip: commit progress on FeatureBadge update
Parkreiner Sep 13, 2024
d4455a8
wip: commit more progress
Parkreiner Sep 13, 2024
8ae71d3
chore: update tag definitions to satify Biome
Parkreiner Sep 13, 2024
0ad68af
chore: update all colors for preview role
Parkreiner Sep 13, 2024
781a609
fix: make sure badge shows as hovered while inside tooltip
Parkreiner Sep 13, 2024
a981864
wip: commit progress on adding story for controlled variant
Parkreiner Sep 13, 2024
f47d059
fix: sort imports
Parkreiner Sep 16, 2024
ad61763
refactor: change component API to be more obvious/ergonomic
Parkreiner Sep 16, 2024
6e16aaa
fix: add biome-ignore comments to more base files
Parkreiner Sep 16, 2024
6a19b61
fix: update import order again
Parkreiner Sep 16, 2024
a233867
chore: revert biome-ignore comment
Parkreiner Sep 16, 2024
8cbe639
Merge branch 'main' into mes/beta-badges
Parkreiner Sep 17, 2024
7e1ec68
chore: update body text for tooltip
Parkreiner Sep 17, 2024
1b58e4d
chore: update dark preivew role to use sky palette
Parkreiner Sep 17, 2024
ebc5397
chore: update color palettes for light/darkBlue themes
Parkreiner Sep 17, 2024
a9b6897
chore: add beta badge to organizations subheader
Parkreiner Sep 17, 2024
31e1fa7
chore: add beta badge to organizations settings page
Parkreiner Sep 17, 2024
e16b140
chore: beef up font weight for form header
Parkreiner Sep 17, 2024
3aeb3c0
fix: update text contrast for org menu list
Parkreiner Sep 17, 2024
71323ac
chore: add beta badge to deployment dropdown
Parkreiner Sep 17, 2024
da31c84
fix: run biome on imports
Parkreiner Sep 17, 2024
c7308c3
chore: remove API for controlling FeatureBadge hover styling externally
Parkreiner Sep 17, 2024
230aa1d
chore: add xs size for badge
Parkreiner Sep 17, 2024
fb4b734
fix: update font weight for xs feature badges
Parkreiner Sep 18, 2024
5a7bbd3
chore: add beta badges to all org headers
Parkreiner Sep 18, 2024
9521f25
Merge branch 'main' into mes/beta-badges
Parkreiner Sep 18, 2024
6638942
fix: turn badges and tooltips into separate concerns
Parkreiner Sep 18, 2024
9a18e51
fix: update hover styling
Parkreiner Sep 18, 2024
b093a99
docs: update wording on comment
Parkreiner Sep 18, 2024
9647fc6
fix: apply formatting
Parkreiner Sep 18, 2024
0197466
chore: rename FeatureBadge to FeatureStageBadge
Parkreiner Sep 18, 2024
fb86964
refactor: redefine FeatureStageBadge
Parkreiner Sep 20, 2024
0f64533
chore: update stories
Parkreiner Sep 20, 2024
6a2cfcf
fix: add blur behavior to popover
Parkreiner Sep 20, 2024
eb2b1c2
chore: revert theme colors
Parkreiner Sep 20, 2024
0b46eca
chore: create featureStage branding namespace
Parkreiner Sep 20, 2024
4302b3d
fix: make sure cleanup function is set up properly
Parkreiner Sep 20, 2024
be8121e
docs: update wording on comment for clarity
Parkreiner Sep 20, 2024
1e5d62b
Merge branch 'main' into mes/beta-badges
Parkreiner Sep 20, 2024
a824404
Merge branch 'main' into mes/beta-badges
Parkreiner Sep 20, 2024
39daf80
refactor: move styles down
Parkreiner Sep 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: make sure cleanup function is set up properly
  • Loading branch information
Parkreiner committed Sep 20, 2024
commit 4302b3de237e2c5296c2cb47e5041192bccfbb83
2 changes: 1 addition & 1 deletion site/src/components/Popover/Popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const Popover: FC<PopoverProps> = (props) => {
useEffect(() => {
const closeOnTabSwitch = () => setUncontrolledOpen(false);
window.addEventListener("blur", closeOnTabSwitch);
return () => window.addEventListener("blur", closeOnTabSwitch);
return () => window.removeEventListener("blur", closeOnTabSwitch);
}, []);

const value: PopoverContextValue = {
Expand Down
Loading
0