Skip to content

Commit

Permalink
fix(widgets): match alert ID to image filename
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgoff committed Jul 17, 2024
1 parent 38f5f41 commit 1abe90f
Show file tree
Hide file tree
Showing 6 changed files with 76 additions and 29 deletions.
1 change: 1 addition & 0 deletions components/questions/Widget/SourceSelector/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const Fragment = graphql(`
}
}
imageAlbum {
name
url {
directUrlPreview
}
Expand Down
14 changes: 14 additions & 0 deletions gql/educator-schema/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2320,6 +2320,8 @@ export type Mutation = {
facebookSignInEducators: Auth;
/** Authenticates a Students using a Facebook Sign-In token. Returns user and token. */
facebookSignInStudents: Auth;
/** Authenticates a Translator using a Facebook Sign-In token. Returns user and token. */
facebookSignInTranslator: Auth;
/** Sends a password reset email to the user's email address. Returns success message. */
forgottenPassword: Scalars['String']['output'];
/** Authenticates a Editors using a Google Sign-In ID token. Returns user and token. */
Expand All @@ -2328,6 +2330,8 @@ export type Mutation = {
googleSignInEducators: Auth;
/** Authenticates a Students using a Google Sign-In ID token. Returns user and token. */
googleSignInStudents: Auth;
/** Authenticates a Translator using a Google Sign-In ID token. Returns user and token. */
googleSignInTranslator: Auth;
ping?: Maybe<Scalars['String']['output']>;
/** Refreshes a user's JWT. Checks for the occurrence of the `gql_refreshToken` cookie, and falls back to `refreshToken` argument. */
refreshToken: Auth;
Expand Down Expand Up @@ -2396,6 +2400,11 @@ export type MutationFacebookSignInStudentsArgs = {
};


export type MutationFacebookSignInTranslatorArgs = {
code: Scalars['String']['input'];
};


export type MutationForgottenPasswordArgs = {
email: Scalars['String']['input'];
};
Expand All @@ -2416,6 +2425,11 @@ export type MutationGoogleSignInStudentsArgs = {
};


export type MutationGoogleSignInTranslatorArgs = {
idToken: Scalars['String']['input'];
};


export type MutationRefreshTokenArgs = {
refreshToken?: InputMaybe<Scalars['String']['input']>;
};
Expand Down
4 changes: 2 additions & 2 deletions gql/public-schema/gql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const documents = {
"\n fragment ColorFilterToolQuestion on questionWidgetsBlock_colorFilterToolBlock_BlockType {\n colorFilterTool {\n ...ColorFilterToolEntry\n }\n }\n": types.ColorFilterToolQuestionFragmentDoc,
"\n fragment IsochronePlotQuestion on questionWidgetsBlock_isochronePlot_BlockType {\n __typename\n id\n dataset {\n ... on datasets_starCluster_Entry {\n id\n title\n ageLibrary: json {\n ... on datasets_Asset {\n url\n }\n }\n plotPoints {\n ... on datasets_Asset {\n url\n }\n }\n yMin: yAxisMin\n yMax: yAxisMax\n xMin: xAxisMin\n xMax: xAxisMax\n }\n }\n }\n": types.IsochronePlotQuestionFragmentDoc,
"\n fragment LightCurveQuestion on questionWidgetsBlock_lightCurveBlock_BlockType {\n __typename\n lightCurveTool {\n ... on widgets_lightCurveTool_Entry {\n title\n displayName\n dataset {\n ... on datasets_supernovaGalaxyObservations_Entry {\n id\n peakMjd: mjd\n json {\n ... on datasets_Asset {\n url\n }\n }\n }\n }\n yMin: yAxisMin\n yMax: yAxisMax\n }\n }\n }\n": types.LightCurveQuestionFragmentDoc,
"\n fragment SourceSelectorQuestion on questionWidgetsBlock_sourceSelectorBlock_BlockType {\n __typename\n sourceSelector {\n ... on widgets_sourceSelector_Entry {\n id\n title\n displayName\n includeScatterPlot\n yMin: yAxisMin\n yMax: yAxisMax\n dataset {\n ... on datasets_supernovaGalaxyObservations_Entry {\n id\n peakMjd: mjd\n sources: alertSources {\n ... on alertSources_source_BlockType {\n color\n x: xCoord\n y: yCoord\n radius\n type: sourceType\n id: sourceName\n }\n }\n json {\n ... on datasets_Asset {\n url\n }\n }\n imageAlbum {\n url {\n directUrlPreview\n }\n }\n }\n }\n }\n }\n }\n": types.SourceSelectorQuestionFragmentDoc,
"\n fragment SourceSelectorQuestion on questionWidgetsBlock_sourceSelectorBlock_BlockType {\n __typename\n sourceSelector {\n ... on widgets_sourceSelector_Entry {\n id\n title\n displayName\n includeScatterPlot\n yMin: yAxisMin\n yMax: yAxisMax\n dataset {\n ... on datasets_supernovaGalaxyObservations_Entry {\n id\n peakMjd: mjd\n sources: alertSources {\n ... on alertSources_source_BlockType {\n color\n x: xCoord\n y: yCoord\n radius\n type: sourceType\n id: sourceName\n }\n }\n json {\n ... on datasets_Asset {\n url\n }\n }\n imageAlbum {\n name\n url {\n directUrlPreview\n }\n }\n }\n }\n }\n }\n }\n": types.SourceSelectorQuestionFragmentDoc,
"\n fragment WidgetQuestion on questions_default_Entry {\n __typename\n id\n instructions: widgetInstructions\n questionWidgetsBlock {\n __typename\n ...ColorFilterToolQuestion\n ...SourceSelectorQuestion\n ...LightCurveQuestion\n ...IsochronePlotQuestion\n }\n }\n": types.WidgetQuestionFragmentDoc,
"\n query QuestionValidation($site: [String], $id: [QueryArgument]) {\n entry(site: $site, id: $id) {\n ... on questions_default_Entry {\n validation {\n ... on validation_numberValidator_BlockType {\n comparison\n operator\n message\n }\n }\n multiPartBlocks {\n ... on multiPartBlocks_number_BlockType {\n id\n validation {\n ... on validation_numberValidator_BlockType {\n comparison\n operator\n message\n }\n }\n }\n }\n }\n }\n }\n": types.QuestionValidationDocument,
"\n fragment HomepageTemplate on homepage_homepage_Entry {\n __typename\n id\n title\n contentBlocks: homepageContentBlocks {\n __typename\n ... on homepageContentBlocks_text_BlockType {\n id\n text\n }\n ... on homepageContentBlocks_image_BlockType {\n id\n caption\n layout\n image {\n url {\n directUrlPreview\n directUrlOriginal\n PNG\n HighJPG\n LowJPG\n preview\n }\n width\n height\n metadata: additional {\n AltTextEN\n AltTextES\n CaptionEN\n CaptionES\n Credit\n }\n }\n }\n ...InvestigationGridBlock\n }\n }\n": types.HomepageTemplateFragmentDoc,
Expand Down Expand Up @@ -318,7 +318,7 @@ export function graphql(source: "\n fragment LightCurveQuestion on questionWidg
/**
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
*/
export function graphql(source: "\n fragment SourceSelectorQuestion on questionWidgetsBlock_sourceSelectorBlock_BlockType {\n __typename\n sourceSelector {\n ... on widgets_sourceSelector_Entry {\n id\n title\n displayName\n includeScatterPlot\n yMin: yAxisMin\n yMax: yAxisMax\n dataset {\n ... on datasets_supernovaGalaxyObservations_Entry {\n id\n peakMjd: mjd\n sources: alertSources {\n ... on alertSources_source_BlockType {\n color\n x: xCoord\n y: yCoord\n radius\n type: sourceType\n id: sourceName\n }\n }\n json {\n ... on datasets_Asset {\n url\n }\n }\n imageAlbum {\n url {\n directUrlPreview\n }\n }\n }\n }\n }\n }\n }\n"): (typeof documents)["\n fragment SourceSelectorQuestion on questionWidgetsBlock_sourceSelectorBlock_BlockType {\n __typename\n sourceSelector {\n ... on widgets_sourceSelector_Entry {\n id\n title\n displayName\n includeScatterPlot\n yMin: yAxisMin\n yMax: yAxisMax\n dataset {\n ... on datasets_supernovaGalaxyObservations_Entry {\n id\n peakMjd: mjd\n sources: alertSources {\n ... on alertSources_source_BlockType {\n color\n x: xCoord\n y: yCoord\n radius\n type: sourceType\n id: sourceName\n }\n }\n json {\n ... on datasets_Asset {\n url\n }\n }\n imageAlbum {\n url {\n directUrlPreview\n }\n }\n }\n }\n }\n }\n }\n"];
export function graphql(source: "\n fragment SourceSelectorQuestion on questionWidgetsBlock_sourceSelectorBlock_BlockType {\n __typename\n sourceSelector {\n ... on widgets_sourceSelector_Entry {\n id\n title\n displayName\n includeScatterPlot\n yMin: yAxisMin\n yMax: yAxisMax\n dataset {\n ... on datasets_supernovaGalaxyObservations_Entry {\n id\n peakMjd: mjd\n sources: alertSources {\n ... on alertSources_source_BlockType {\n color\n x: xCoord\n y: yCoord\n radius\n type: sourceType\n id: sourceName\n }\n }\n json {\n ... on datasets_Asset {\n url\n }\n }\n imageAlbum {\n name\n url {\n directUrlPreview\n }\n }\n }\n }\n }\n }\n }\n"): (typeof documents)["\n fragment SourceSelectorQuestion on questionWidgetsBlock_sourceSelectorBlock_BlockType {\n __typename\n sourceSelector {\n ... on widgets_sourceSelector_Entry {\n id\n title\n displayName\n includeScatterPlot\n yMin: yAxisMin\n yMax: yAxisMax\n dataset {\n ... on datasets_supernovaGalaxyObservations_Entry {\n id\n peakMjd: mjd\n sources: alertSources {\n ... on alertSources_source_BlockType {\n color\n x: xCoord\n y: yCoord\n radius\n type: sourceType\n id: sourceName\n }\n }\n json {\n ... on datasets_Asset {\n url\n }\n }\n imageAlbum {\n name\n url {\n directUrlPreview\n }\n }\n }\n }\n }\n }\n }\n"];
/**
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
*/
Expand Down
Loading

0 comments on commit 1abe90f

Please sign in to comment.