Skip to content

Conversation

@mvolkmann
Copy link
Collaborator

No description provided.

"vite": "^5.2.6",
"vite-tsconfig-paths": "^4.3.2",
"vitest": "^1.4.0",
"vitest": "^1.6.0",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Upgraded to the latest version.

@@ -0,0 +1,74 @@
import PropTypes from 'prop-types';
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is a new component that displays a title, a row of sentiment icon buttons, and a text input for entering a comment.

@@ -0,0 +1,31 @@
.pulse {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

CSS for the new Pulse component.

@@ -0,0 +1,42 @@
import React from 'react';
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Tests for new Pulse component.

@@ -0,0 +1,308 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Snapshot for new Pulse component.

@@ -0,0 +1,14 @@
.pulse-page {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

CSS for new PulsePage component.

@@ -1,11 +1,147 @@
import React from 'react';
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Updated the placeholder PulsePage component with the intended content described in this story.

<div className="pulse-page">
{submittedToday ? (
<Typography className="submitted-today" variant="h6">
Thank you for submitting your pulse today!
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Michael may be providing new copy text soon.

@@ -0,0 +1,11 @@
import React from 'react';
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Snapshot test for new PulsePage component.

@@ -1,23 +1,23 @@
import { defineConfig } from "vitest/config"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Prettier reformatted this.

reporters: ["verbose"],
environment: 'jsdom',
setupFiles: './src/setupTests.js',
css: false,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Setting css to false is the only real change made in this file. Before this change we were getting the error "Could not parse CSS stylesheet" for any CSS files imported by a component that use nested CSS rules. It seems we don't really need to parse the CSS in order for all our existing tests to pass. I verified that.

Copy link
Collaborator

@jackkeller jackkeller left a comment

Choose a reason for hiding this comment

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

Approved 🎉 💥

Copy link
Contributor

@vhscom vhscom left a comment

Choose a reason for hiding this comment

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

LGTM. I noticed we default users currently to dissatisfied. In a later iteration perhaps we don't default the user's settings, to help prevent them from submitting before they have explicitly selected internal/external pulse ratings.

@mvolkmann
Copy link
Collaborator Author

From Michael ...
Screenshot 2024-05-16 at 5 00 07 PM

@mvolkmann mvolkmann merged commit e2fa1fe into develop May 20, 2024
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.

4 participants