Skip to content

Migrating Coachmark to main Package, Added a beak component and updated experiment PositioningContainer.#3919

Merged
gokunymbus merged 52 commits intomicrosoft:masterfrom
gokunymbus:component/beak
Feb 16, 2018
Merged

Migrating Coachmark to main Package, Added a beak component and updated experiment PositioningContainer.#3919
gokunymbus merged 52 commits intomicrosoft:masterfrom
gokunymbus:component/beak

Conversation

@gokunymbus
Copy link
Copy Markdown
Contributor

@gokunymbus gokunymbus commented Feb 8, 2018

Pull request checklist

  • Include a change request file using $ npm run change

Description of changes

Moves the Coachmark over to the main package. Includes several bug fixes, code cleanup and new Beak components

Focus areas to test

Coachmark

@gokunymbus gokunymbus requested a review from joschect as a code owner February 8, 2018 13:48
@gokunymbus
Copy link
Copy Markdown
Contributor Author

@cschlechty right now it does only open for mouse but i can add the functionality for opening it on focus or something similar. It shouldn't take much time so i will add that to this pull request.

@@ -0,0 +1,41 @@
import { IStyle, DefaultPalette } from '../../../Styling';

export interface IBeakStylesProps {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

the interfaces should be in .types.

return (
<div
className={ css('ms-Beak', classNames.root) }
ref={ this._resolveRef('_beakElement') }
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This ref seems unneeded. Please remove it.

@dzearing dzearing self-assigned this Feb 14, 2018
Comment thread packages/utilities/src/Triangle.ts Outdated
/**
* A triangle abstraction class used to make calculations
*/
export class Triangle {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Move this out of utilities.

Copy link
Copy Markdown
Contributor

@joschect joschect left a comment

Choose a reason for hiding this comment

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

Approved with some suggestions

height: props.height
},
(props.left && props.top) && {
left: props.left,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

These cannot be in styles, getClass will automatically flip them to right in RTL which could make it not right.

}

public componentDidMount(): void {
if (this.state.isMeasuring) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

componentDidMount is only ever called once per lifecycle and you don't use measuring anywhere else so you can remove this check.


public componentDidMount(): void {
if (this.state.isMeasuring) {
this._async.setTimeout((): void => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

use this._async.requestAnimationFrame( ...) instead. It helps ensure that first dom changes occur, then when those are done all the measures can happen.

});
}

private _isElementInProximity(mouseProximityOffset: number = 0): void {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I might rename this something like _addProximityHandler or something, since it should only ever be called once and adds a proximity handler and doesn't actively check for proximity itself.

@gokunymbus gokunymbus merged commit 44b167a into microsoft:master Feb 16, 2018
@gokunymbus gokunymbus deleted the component/beak branch February 16, 2018 05:31
Markionium added a commit to Markionium/office-ui-fabric-react that referenced this pull request Feb 18, 2018
* master: (71 commits)
  Applying package updates.
  Delete initials_2018-02-07-13-49.json
  Delete initials_2018-02-07-13-49.json
  Delete jolore-addingWorkWeekDateRange_2018-01-24-01-39.json
  Delete initials_2018-02-07-13-49.json
  Delete jolore-addingWorkWeekDateRange_2018-01-24-01-39.json
  Delete initials_2018-02-07-13-49.json
  Update .npmrc
  Cleaning Up Console Log in CommandBar Test (microsoft#4011)
  Convert Overlay to mergeStyles (microsoft#3978)
  ScrollablePane SCSS to MergeStyles Part 1: File Structure (microsoft#4008)
  [ContextualMenu] Fixes useTargetWidth property (microsoft#3943)
  DetailsList: Consider groups when setting aria-rowcount
  List: Add a _notifyPageChanges function  (microsoft#3990)
  Applying package updates.
  Migrating Coachmark to main Package, Added a beak component and updated experiment PositioningContainer. (microsoft#3919)
  Update package.json
  Added enum for triggering menu with arrow keys and bool to allow it or not (microsoft#3950)
  BaseExtendedPicker: Hook up onPaste (microsoft#3885)
  FocusUtil: fix getPreviousElement to include previous sibling elements correctly (microsoft#3928)
  ...
@microsoft microsoft locked as resolved and limited conversation to collaborators Aug 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants