Giter Club home page Giter Club logo

diagramify's People

Contributors

ekafyi avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

zulkarnen-force

diagramify's Issues

Story: User can view non happy path response

  • Validate clientside input
  • Handle NO_DIAGRAM response (unclear, unsafe, etc)
  • Handle server errors
  • Handle unexpected faulty response (no server error but eg. missing content, invalid Mermaid syntax)

Add credits & disclaimer

  • Footer credits: Gemini, Mermaid, Astro, DaisyUI
  • As a user I can understand that generative AI may not be accurate

Bug: Mermaid sequence diagram missing arrow

Issue

Mermaid sequence diagram is not rendered with an arrow. Reproduceable in mermaid.live editor.

sequence diagram with arrow not rendered

Solution

Change Mermaid arrow syntax from -> to ->>

CleanShot 2024-03-31 at 15 32 20@2x

Steps to fix

  • Update Gemini prompt

Setup Gemini API

  • Create Astro API endpoint/route that sends request to Gemini API
    • Ensure prompt is sanitised before sending request
    • Handle Gemini API errors
  • Call the endpoint from client-side component

Setup testing

  • Add vitest for unit testing
  • Add svelte-testing-library for component testing

E2E testing is not included in the MVP.

Story: User can choose a concept from pre-defined options and submit it to Gemini API

User story:

As a user I can choose a concept from pre-defined options and submit it to Gemini API

  • Provide pre-defined options
  • User can select one of those; selected option is marked visually
  • User can change their selection to a different option; visual UI is updated accordingly
  • Submit button is enabled when an option is selected
  • User can click the enabled submit button to send request to Gemini API; the detailed prompt is built based on AI Studio prototype

Bug: Umami analytics event not sent

Umami custom event request is rejected with an error due to tag: null added by umami script. Must find a way to modify the umami script behaviour.

Error:

payload.tag must be a string type, but the final value was: null. If "null" is intended as an empty value be sure to mark the schema as .nullable()

Setup SEO

Add basic head tags & implement semantic markup.

  • Lighthouse SEO score 100
  • Displayed correctly on heymeta.com / similar service

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.