Skip to content

chore: clean up TODOs - #28657

Merged
liamdebeasi merged 10 commits into
FW-5580from
ld/5580-cleanup
Dec 7, 2023
Merged

liamdebeasi merged 10 commits into
FW-5580from
ld/5580-cleanup

Conversation

@liamdebeasi

@liamdebeasi liamdebeasi commented Dec 6, 2023 •

Copy link
Copy Markdown
Contributor

Issue number: N/A


What is the current behavior?

There were a number of TODOs to clean up the remaining code for this feature.

What is the new behavior?

  • Many of the changes are autogenerated diffs. I added comments to diffs that I felt were not obvious for why they changed.

Does this introduce a breaking change?

  • Yes
  • No

Other information

@github-actions github-actions Bot added package: core @ionic/core package package: angular @ionic/angular package package: vue @ionic/vue package labels Dec 6, 2023
/**
* A list of options to be displayed in the picker
*/
@Prop() items: PickerColumnItem[] = [];

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Removed in favor of ion-picker-column-option

* Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`.
* For more information on colors, see [theming](/docs/theming/basics).
*/
@Prop({ reflect: true }) color?: Color = 'primary';

This comment was marked as outdated.


return (
<Host
exportparts={`${PICKER_ITEM_PART}, ${PICKER_ITEM_ACTIVE_PART}`}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The column options exist in the light DOM now by default. For pickers in datetime, datetime will continue to expose shadow parts.

// TODO FW-5580 fix this
configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
test.describe.skip(title('picker-column: disabled column rendering'), () => {
test.describe(title('picker-column: disabled column rendering'), () => {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I forgot to unskip these tests when working on previous PRs. However, I ran them all locally and verified that they passed during development.

import { getNumDaysInMonth, is24Hour, getHourCycle } from './helpers';
import { getNextMonth, getPreviousMonth, getInternalHourValue } from './manipulation';

export interface WheelColumnOption {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This interface used to live in picker-column-interfaces. However, it's now really only used for datetime so I decided to move it to the datetime directory. I opted not to include it in datetime/datetime-interfaces since this is a private interface.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Also decided to call it "Wheel" since that's the terminology we use with datetime. No functionality has changed though.

@liamdebeasi liamdebeasi changed the title Ld/5580 cleanup chore: clean up TODOs Dec 6, 2023
scrollbar-width: none;
}

.picker-item-empty {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I originally thought the old .picker-item CSS wasn't needed. Turns out it's still needed but just for the spacer elements. I updated the selector to make that more clear.

}}
>
<div class="picker-item picker-item-empty" aria-hidden="true">
<div class="picker-item-empty" aria-hidden="true">

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@liamdebeasi
liamdebeasi marked this pull request as ready for review December 6, 2023 22:22
@liamdebeasi
liamdebeasi merged commit b03738c into FW-5580 Dec 7, 2023
@liamdebeasi
liamdebeasi deleted the ld/5580-cleanup branch December 7, 2023 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: angular @ionic/angular package package: core @ionic/core package package: vue @ionic/vue package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants