Skip to content
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

feat: feedback question #377

Merged
merged 15 commits into from
Apr 16, 2024
Merged

feat: feedback question #377

merged 15 commits into from
Apr 16, 2024

Conversation

mfts
Copy link
Owner

@mfts mfts commented Apr 15, 2024

No description provided.

Copy link

vercel bot commented Apr 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
papermark ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 16, 2024 3:36am

Copy link

what-the-diff bot commented Apr 15, 2024

PR Summary

  • Introduction of Document Header Component
    Added a new component (document-header.tsx). This element will serve as a header for documents, providing essential information about the document at a glance.

  • Conditional Enhancement in Sidebar Component
    Improved the Sidebar component (Sidebar.tsx) to dynamically change its content based on certain conditions, enhancing user interaction.

  • Inclusion of Question Component in Pages Viewer
    Introduced a new element called 'Question' in the Pages Viewer component (PagesViewer.tsx), improving the way questions are displayed.

  • New React Component for Question Rendering
    Introduced a new React component (question.tsx), which will effectively render questions and manage the submission of their answers.

  • Introduction of Feedback Prop in View Data
    Added a new property called 'feedback' in view data (view-data.tsx), which will enable the passing of feedback data from a document to the child component, enhancing the accessibility of feedback data.

  • Feedback Badge Display in Visitors Table
    Updated the Visitors Table (visitors-table.tsx) to show a badge for each feedback given, providing a visual cue to the feedback response.

  • Data Interface for Feedback Response
    In use-document.ts, created a new interface 'feedbackResponse', representing the data structure for a feedback response.

  • Feedback Field in LinkWithDocument Interface
    Added a 'feedback' field to the LinkWithDocument interface in types.ts, this allows the representation of feedback data for a document.

  • New API Endpoint for Feedback Submission
    Established a new API endpoint pages/api/feedback/index.ts for handling submission of feedback responses.

  • API Endpoint Updates for Feedback Data
    Revised various API endpoints to include feedback data or handle updates to feedback data, ensuring comprehensive data response and dynamic data updates.

  • Introduction of Settings Page
    Added a new file settings.tsx that includes a 'Settings' component, allowing users to manage feedback, loading status, and value effectively.

  • Instructions for Migrations
    Introduced a README.md for clear instructions about creating migrations after changes in the database schema.

  • Database Migration File
    Included a .sql file (migration.sql) for database migrations. This file can create new tables and establish the necessary linkages.

  • Database Schema Update
    Updated the database schema (schema.prisma) to incorporate new fields, relationships, and indexes in the models for the handling of the feedback mechanism.

@mfts mfts merged commit f9f81c4 into main Apr 16, 2024
2 checks passed
@mfts mfts deleted the feat/feedback branch May 13, 2024 12:26
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.

None yet

1 participant