Skip to content

query more of the text fields in markdown and make figure component#37

Open
interim17 wants to merge 6 commits intomainfrom
feature/more-queries
Open

query more of the text fields in markdown and make figure component#37
interim17 wants to merge 6 commits intomainfrom
feature/more-queries

Conversation

@interim17
Copy link
Contributor

Problem

Advances #7

  • querying the various fields in the markdown that we weren't rendering yet: preliminary findings, next steps, authors, publication
  • build a very basic component as a container for figures, can expand on this later

Not a polished design, but it's easier to picture the final result if add better placeholders, and actually query and render the data. Then we can design around something more reasonable.

Screenshot 2026-02-05 at 7 13 48 PM ing-system.url/ticket-number)

@interim17 interim17 requested a review from Copilot February 6, 2026 03:17
@netlify
Copy link

netlify bot commented Feb 6, 2026

Deploy Preview for project-idea-board failed. Why did it fail? →

Name Link
🔨 Latest commit d733efa
🔍 Latest deploy log https://app.netlify.com/projects/project-idea-board/deploys/69863e0eade2990008b960cd

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR enhances the idea post template by querying and rendering additional markdown frontmatter fields that were previously not displayed, including authors, publication info, preliminary findings with figures, and next steps. A new Figure component was created to display images with captions.

Changes:

  • Added type definitions for PreliminaryFindings and Figure to support the new data structures
  • Created a FigureComponent to render images with captions in a styled card container
  • Updated the idea post template to display authors, publication, preliminary findings with figures, and next steps as a formatted list

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
src/types/index.ts Added type exports for PreliminaryFindings and Figure
src/templates/idea-post.tsx Integrated new fields into template, added Figure rendering, and updated GraphQL query
src/style/figure.module.css Added styling for figure container and captions with responsive design
src/pages/ideas/dev-example.md Reformatted markdown structure and updated example content
src/components/Figure.tsx Created new component to render figures with GatsbyImage and captions
gatsby-node.js Added schema definitions and resolvers for new frontmatter fields

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

export type IdeasForTags = Queries.AllIdeasForTagsQuery["allMarkdownRemark"]["edges"];

export type PreliminaryFindings = NonNullable<IdeaFrontmatter["preliminaryFindings"]>;
export type Figure = NonNullable<IdeaFrontmatter["preliminaryFindings"]>["figures"][number] No newline at end of file

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant