-
Notifications
You must be signed in to change notification settings - Fork 1
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
DataFlow backfill - disabled but most of the functionality is there #1261
DataFlow backfill - disabled but most of the functionality is there #1261
Conversation
Calling intl for translations
Moving label into store to reduce duplication Adding a running handler into parent
Switching to uses as single status property Getting capture disable wired up
handling errors a bit better updating enum
Closing when "back" button is clicked on first step No longer making steps options just defaulting to empty Just setting show to false is enough for closing dialog Checking the shallow `onFirstStep` to reduce renders Moving context out to the main store Only running initialize once per hydration
…twork Fetching live spec based on spec id
Wiring up most of the steps (without waiting for no data)
Support passing in 'sx' so we can override styling when needed Scrolling the element down a little bit when all items are shown
Making consts for important keys
Starting work on handling errors better Trying to get publication populated correctly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thought I was going to reuse this and ended up not. However, no real harm in keeping it broken out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved from a single file to a component folder and using the new "shared" Content
up above.
src/context/LoopIndex/index.tsx
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New concept to keep the index while in a loop. So you don't have to drill index
down
src/hooks/useDetailsNavigator.ts
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Allowing to override because the presave
prompt will have a link to details for a capture, collection, and materialization.
src/hooks/useLiveSpecsExt.ts
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently going to only allow matching on the sourceCapture as that is the safest query
@@ -311,18 +311,35 @@ export function invokeSupabase<T>(fn: FUNCTIONS, body: any) { | |||
); | |||
} | |||
|
|||
export const insertSupabase = ( | |||
export const insertSupabase = <T = any>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Starting to add some support for typing
if (!noResponse) { | ||
return query.select(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where we handle not always including the select
to fetch everything like V1
export const JOB_TYPE_EMPTY = 'emptyDraft'; | ||
export const JOB_TYPE_FAILURE = 'buildFailed'; | ||
export const JOB_TYPE_SUCCESS = 'success'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Want to be able to check specific statuses if needed.
getEnabledCollections: () => | ||
Object.values(get().resourceConfigs) | ||
.filter(({ meta }) => !meta.disable) | ||
.map(({ meta }) => meta.collectionName), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are not really using the collectionName
mapping part - but left it in so it matches the getCollections
up above.
<Title /> | ||
<Content /> | ||
<Actions /> | ||
<PromptsHydrator> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Putting the hydrator inside the dialog so that it is always reset when it is shown/hidden
// interface DisableCaptureStepContext { | ||
// pubId: string | null; | ||
// captureSpec: JSON | null; | ||
// captureName: string | null; | ||
// } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These will eventually be combined into the context
in the store
if (loading) { | ||
return <Skeleton />; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved the loading state to inside the selector. This way the selector can also handle the "empty" state which needs to eventually allow steps to be skipped.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is an issue with the backfilled binding logic that needs to be addressed before this PR can be merged.
Typing the ref Including the current top height when scrolling
Switching out format components
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a small, content typo called out below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with moderate, happy path testing.
Issues
completes #1267
contributes #1220
contributes #310
Changes
1220
review selections
step1267
310
misc
description
from the details form. This will eventually be put into the presave promptTests
Manually tested
Automated tests
Playwright tests ran locally
Screenshots
When opening chiplist we will scroll down a few pixels to try to get more chips to slightly show to hopefully make it clear to users that they can scroll
Added some clarification text