chore: Add todo code comments.

This commit is contained in:
Christian Pillsbury
2025-09-09 07:59:56 -07:00
committed by Christian Pillsbury
parent d239f416bd
commit bef0d42631
4 changed files with 14 additions and 2 deletions
@@ -21,7 +21,7 @@ export class TimeRangeBase extends HTMLElement {
constructor() {
super();
/**
* @TODO This is just a simple render function to demonstrate functionality.
* @TODO This is just a simple placeholder input to demonstrate functionality.
* A full implementation will need to implement a "compound component" architecture and likely should use templates. (CJP)
**/
this._input = document.createElement('input');
@@ -115,6 +115,9 @@ export const useTimeRangeProps: PropsHook<{
return baseProps;
};
/**
* @TODO When implementing compound components, this function may need to be swapped out, modified, or augmented in some way or another. (CJP)
*/
/**
* Connected TimeRange component using hook-style architecture
* Equivalent to React's TimeRange = toConnectedComponent(...)
@@ -19,7 +19,7 @@ export class VolumeRangeBase extends HTMLElement {
constructor() {
super();
/**
* @TODO This is just a simple render function to demonstrate functionality.
* @TODO This is just a simple placeholder input to demonstrate functionality.
* A full implementation will need to implement a "compound component" architecture and likely should use templates. (CJP)
**/
this._input = document.createElement('input');
@@ -108,6 +108,9 @@ export const useVolumeRangeProps: PropsHook<{
return baseProps;
};
/**
* @TODO When implementing compound components, this function may need to be swapped out, modified, or augmented in some way or another. (CJP)
*/
/**
* Connected VolumeRange component using hook-style architecture
* Equivalent to React's VolumeRange = toConnectedComponent(...)
@@ -93,6 +93,9 @@ export const renderTimeRange = (
export type renderTimeRange = typeof renderTimeRange;
/**
* @TODO When implementing compound components, this function may need to be swapped out, modified, or augmented in some way or another. (CJP)
*/
export const TimeRange = toConnectedComponent(
useTimeRangeState,
useTimeRangeProps,
@@ -83,6 +83,9 @@ export const renderVolumeRange = (
export type renderVolumeRange = typeof renderVolumeRange;
/**
* @TODO When implementing compound components, this function may need to be swapped out, modified, or augmented in some way or another. (CJP)
*/
export const VolumeRange = toConnectedComponent(
useVolumeRangeState,
useVolumeRangeProps,