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

refactor!: New separate entry modules for each component w/ theme support #1355

Closed
wants to merge 43 commits into from

Conversation

bvkimball
Copy link
Contributor

@bvkimball bvkimball commented Oct 17, 2022

Description

Wip
refactor!: New separate entry modules for each component.
feature: Theme Support include darkmode
refactor(date-fns)!: updating date-fns to v2 #1347
build(rxjs): updating rxjs to v7 #1350
refactor(dragula): deprecating dragula directive and service #1363
refactor(angular2-textmask)!: replacing angular2-textmask usages #1365

Verify that...

  • Any related demos were added and npm start and npm run build still works
  • New demos work in Safari, Chrome and Firefox
  • npm run lint passes
  • npm test passes and code coverage is increased
  • npm run build still works

Bullhorn Internal Developers

  • Run Novo Automation
Screenshots

* refactor(config): Updated tsconfig to standard format, and remove extraneous configs

* refactor(jest): switched test back to ng-cli, also alias angular2-text-mask

* chore: retest build

* chore: updating test results

* chore: update node version

* feat(Autocomplete): Autocomplete now works with ChipList (#1326)

* fix(Chips): update the ux for disabled chips (#1331)

-darken the opacity to improve readability
-update text color of disabled chips to look non-selectable
-remove the X icon to further confer that this chip is read-only

Co-authored-by: Michael Dill <michael.dill@bullhorn.com>

* feat(NonIdealState): Non Ideal Loading (#1334)

* Expanding non-ideal-state for use case with novo-loading

* Expanding non-ideal-state for use case with novo-loading

* Minor structure cleanup

* Changed message on example

* chore(ci): updating tokens

* chore(ci): Other Tokens Updated

* chore(): reverting commonjs tests

* fixed tests

* testing test summary

* tweaking test summary

* fix

* fix last attempt

* test

* fix tsconfig

* refactor(NgPackager): first step in tree-shaking

* refactor(style): almost all styles removed from novo-elements.scss

* BREAKING_CHANGES: Major SCSS updates

* fix(build): missing script for nx

* fix(build): Removing resize-observer-polyfill

* fix(build): weird build error in chips missing `includes`

* fixed all jest tests

* fix(build): bad styleUrls

* chore(build): updated test script

* chore(build): Remove copy-scss script as it is handled by ng-packgr now

* chore: forgot to remove script

* chore(fix): Moved snapshot publish back to root

Co-authored-by: Michael Dill <mdill@bullhorn.com>
Co-authored-by: Michael Dill <michael.dill@bullhorn.com>
Co-authored-by: antonyw89 <73492464+antonyw89@users.noreply.github.com>
@bvkimball bvkimball changed the title refactor!: new refactor!: New separate entry modules for each component w/ theme support Oct 17, 2022
@bvkimball bvkimball self-assigned this Oct 17, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Nov 7, 2022

$GITHUB_STEP_SUMMARY

@github-actions
Copy link
Contributor

github-actions bot commented Nov 7, 2022

Visit the preview URL for this PR (updated for commit ca550ef):

https://novo-elements--pr1355-beta-kjsp2ge0.web.app

(expires Thu, 12 Jan 2023 15:49:09 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: f1783e19c2444272095017dd8ba433fff0ee3f61

agkm10 and others added 16 commits November 7, 2022 14:52
* Added formatter for dateTimePicker

* Small fix

* exported date-time format

* Added military date-time picker

* Removed military time demo
…field definitions (#1358)

* feat(QueryBuilder): adding isEmpty operator to query builder field definitions

* fix: removing unused imports

* fix(): changing non-string isEmpty operatators to isNull
* build(rxjs): updating rxjs to v7

* fixing newly added subject

* moving resize-observer-polyfill to dev dep
* upgrading date-fns to v2

* updating more date-fns calls to DateUtil calls

* updating some weekday typing

* using legacyParse for all DateLike conversions to Date

* adding some extra error handling in isWithinRange fn

* removing console log

* rebase with beta and updates to data-time-format for datafns v2
…#1357)

* fix(xmldom): updated xmldom dependency to address security concern

* removing xmldom altogether since it is unused
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 1.4.0 to 1.4.1.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v1.4.1/CHANGELOG.md)
- [Commits](webpack/loader-utils@v1.4.0...v1.4.1)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
chore(deps): bump loader-utils from 1.4.0 to 1.4.2

Bumps [loader-utils](https://github.com/webpack/loader-utils) from 1.4.0 to 1.4.2.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v1.4.2/CHANGELOG.md)
- [Commits](webpack/loader-utils@v1.4.0...v1.4.2)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dan Voegelin <dvoegelin@bullhorn.com>
* refactor(angular2-textmask)!: replacing angular2-textmask usages

* fixing unit tests and adding custom formatting option

* removing console logs

* workaround for bug with adding too many digits to date

* better workaround for too many date digits bug
Base automatically changed from next to master January 5, 2023 18:43
import { NovoTitle } from './typography/title/title.component';
import { NovoText } from './typography/text/text.component';
Copy link
Collaborator

Choose a reason for hiding this comment

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

This import order looks non alphabetical. Do we want to keep this?

import { Directive, Input, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
import { Subscription } from 'rxjs';

@Directive({
Copy link
Collaborator

Choose a reason for hiding this comment

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

This directive seems new. Do we need this? Also I dont see this in the index.ts?

Copy link
Collaborator

Choose a reason for hiding this comment

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

This is needed for talent experience to be able to do responsive components. If we end up not needing to support TX, we should remove this and put this on a feature branch.

if (Object.keys(tokens.spacing).includes(value)) {
return tokens.spacing[value];
}
const cssvar = getComputedStyle(document.documentElement).getPropertyValue(`--spacing-${value}`); // #999999
Copy link
Collaborator

Choose a reason for hiding this comment

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

is this function widely supported?

@@ -9,6 +9,7 @@ export class ThemeColorDirective {

@HostBinding('class')
get hb_textColor() {
if (!this.theme) return '';
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is new. Do we need this?

import { NovoOptgroup } from './optgroup.component';
import { NovoPseudoCheckboxModule } from '../selection/index';

@NgModule({
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this module go into a separate file?

@@ -117,7 +117,8 @@ export class NovoMenuService {
panelClass: 'novo-menu',
scrollStrategy: this.scrollStrategy.close(),
});
// this.destroySubMenus(parentMenu);
this.getLastAttachedOverlay().menu.isLeaf = false;
Copy link
Collaborator

Choose a reason for hiding this comment

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

why is this being added here?

@@ -0,0 +1,76 @@
:host {
// @extend chips;
Copy link
Collaborator

Choose a reason for hiding this comment

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

comment

});
});

// xdescribe('Method: handleRemoveItemIfAllSelected(item)', () => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

bunch on commented and disabled tests in here, I know you didn't add them but we should remove these

@@ -0,0 +1,194 @@
import { Component, EventEmitter, HostBinding, Input, OnChanges, OnInit, Output, SimpleChanges } from '@angular/core';
Copy link
Collaborator

Choose a reason for hiding this comment

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

This module is changing a lot. Can we discuss this in more detail?

describe('Method: onScrollDown()', () => {
it('should be defined.', () => {
expect(component.onScrollDown).toBeDefined();
// component.onScrollDown();
Copy link
Collaborator

Choose a reason for hiding this comment

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

comments

@dvoegelin dvoegelin closed this Dec 21, 2023
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.

None yet

6 participants