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

[WIP] Feature #3417 - Implement tuiDropdownDirectionChange & tuiHintDirectionChange #9645

Conversation

shiv9604
Copy link
Contributor

Close #3417

@shiv9604 shiv9604 requested a review from a team as a code owner October 30, 2024 20:25
@shiv9604 shiv9604 requested review from MarsiBarsi, waterplea, nsbarsukov, vladimirpotekhin and mdlufy and removed request for a team October 30, 2024 20:25
Copy link

lumberjack-bot bot commented Oct 30, 2024

Pull request was closed ✔️

All saved screenshots (for current PR) were deleted 🗑️

Copy link

bundlemon bot commented Oct 30, 2024

BundleMon

Files updated (1)
Status Path Size Limits
demo/browser/main.(hash).js
304.5KB (+136B +0.04%) +10%
Unchanged files (4)
Status Path Size Limits
demo/browser/vendor.(hash).js
260.09KB +10%
demo/browser/runtime.(hash).js
44.03KB +10%
demo/browser/styles.(hash).css
19.63KB +10%
demo/browser/polyfills.(hash).js
11.18KB +10%

Total files change +133B +0.02%

Groups updated (1)
Status Path Size Limits
demo/browser/*..js
7.34MB (+317B 0%) -

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

@shiv9604 shiv9604 force-pushed the feature/3417-dropdown-hint-direction-change branch from 9f85746 to 014c744 Compare October 30, 2024 20:37
Copy link

codecov bot commented Oct 30, 2024

Codecov Report

Attention: Patch coverage is 81.48148% with 5 lines in your changes missing coverage. Please review.

Project coverage is 75.23%. Comparing base (4a26b1a) to head (a9ba39e).
Report is 601 commits behind head on main.

Files with missing lines Patch % Lines
...ives/dropdown/dropdown-position-sided.directive.ts 50.00% 3 Missing ⚠️
...cts/core/directives/dropdown/dropdown.directive.ts 33.33% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9645      +/-   ##
==========================================
- Coverage   75.68%   75.23%   -0.45%     
==========================================
  Files        1216     1248      +32     
  Lines       19068    19600     +532     
  Branches     2091     2090       -1     
==========================================
+ Hits        14432    14747     +315     
- Misses       4592     4807     +215     
- Partials       44       46       +2     
Flag Coverage Δ
summary 75.23% <81.48%> (-0.45%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@shiv9604 shiv9604 force-pushed the feature/3417-dropdown-hint-direction-change branch from 959fd4d to c0624d6 Compare November 8, 2024 16:32
@@ -57,10 +56,13 @@ export class TuiDropdownPositionSided extends TuiPositionAccessor {
(available[this.previous] > minHeight && direction) ||
this.previous === better
) {
this.vertical.emitDirection(better);
Copy link
Collaborator

Choose a reason for hiding this comment

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

It should be this.previous here

const better: TuiVerticalDirection =
available.top > available.bottom ? 'top' : 'bottom';

this.emitDirection(better);
Copy link
Collaborator

Choose a reason for hiding this comment

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

It's not always better, sometimes it's previous, see if on the next line.

.t-textfield-icon
::ng-deep
[tuiAppearance][data-appearance='icon']::after {
:host:not(._readonly):not(._disabled):hover .t-textfield-icon ::ng-deep [tuiAppearance][data-appearance='icon']::after {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Weird that this got affected 🤔 You should rollback those style changes. Maybe you need to run npm i to update some lint config packages locally?

@@ -10,13 +10,12 @@ import {TuiDropdownPosition} from './dropdown-position.directive';
@Directive({
standalone: true,
selector: '[tuiDropdownSided]',
providers: [TuiDropdownPosition, tuiAsPositionAccessor(TuiDropdownPositionSided)],
providers: [tuiAsPositionAccessor(TuiDropdownPositionSided)],
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks like this was still necessary. Please put it back — I'll investigate myself later how so.

@splincode splincode changed the title Feature #3417 - Implement tuiDropdownDirectionChange & tuiHintDirectionChange [WIP] Feature #3417 - Implement tuiDropdownDirectionChange & tuiHintDirectionChange Nov 20, 2024
@splincode splincode marked this pull request as draft November 20, 2024 08:12
mdlufy and others added 27 commits November 23, 2024 01:29
…aiga-family#9648)

Co-authored-by: Alexandr Shakirov <al.a.shakirov@tinkoff.ru>
…iga-family#9711)

Co-authored-by: taiga-family-bot <taiga-family-bot@users.noreply.github.com>
…Bar` (taiga-family#9654)

Co-authored-by: 40oleg <oleg.merkulov701@gmail.com>
Co-authored-by: taiga-family-bot <taiga-family-bot@users.noreply.github.com>
…a-family#9715)

Co-authored-by: taiga-family-bot <taiga-family-bot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

🚀 - tuiDropdownDirection and tuiHintDirection Output