-
Notifications
You must be signed in to change notification settings - Fork 130
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
[Themes] Theme Dev - Display theme asset upload errors in overlay #4899
base: jm/strict_push
Are you sure you want to change the base?
Conversation
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Coverage report
Test suite run success1951 tests passing in 887 suites. Report generated by 🧪jest coverage report action from 8211225 |
9161725
to
84525af
Compare
dda3eb2
to
7339e19
Compare
e6fc10f
to
8211225
Compare
Differences in type declarationsWe detected differences in the type declarations generated by Typescript for this branch compared to the baseline ('main' branch). Please, review them to ensure they are backward-compatible. Here are some important things to keep in mind:
New type declarationsWe found no new type declarations in this PR Existing type declarationspackages/cli-kit/dist/public/node/git.d.ts@@ -97,6 +97,13 @@ export declare class OutsideGitDirectoryError extends AbortError {
* @param directory - The directory to check.
*/
export declare function ensureInsideGitDirectory(directory?: string): Promise<void>;
+/**
+ * Returns true if the given directory is inside a .git directory tree.
+ *
+ * @param directory - The directory to check.
+ * @returns True if the directory is inside a .git directory tree.
+ */
+export declare function insideGitDirectory(directory?: string): Promise<boolean>;
export declare class GitDirectoryNotCleanError extends AbortError {
}
/**
packages/cli-kit/dist/public/node/themes/types.d.ts@@ -15,6 +15,7 @@ type ThemeFSEvent = {
type: 'add' | 'change';
payload: {
fileKey: Key;
+ uploadErrors: Map<Key, string[]>;
onContent: (fn: (content: string) => void) => void;
onSync: (fn: () => void) => void;
};
@@ -93,6 +94,14 @@ export interface ThemeFileSystem extends VirtualFileSystem {
applyIgnoreFilters: <T extends {
key: string;
}>(files: T[]) => T[];
+ /**
+ * Map of file keys to errors.
+ */
+ uploadErrors: Map<string, string[]>;
+ /**
+ * Emits an event to the event emitter.
+ */
+ emitEvent: <T extends ThemeFSEventName>(eventName: T, payload: ThemeFSEventPayload<T>) => void;
}
/**
* Represents a theme on the file system.
|
WHY are these changes introduced?
Fixes #0000
WHAT is this pull request doing?
How to test your changes?
Post-release steps
Measuring impact
How do we know this change was effective? Please choose one:
Checklist