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: analytics view #84

Merged
merged 14 commits into from
Mar 5, 2024
Merged

feat: analytics view #84

merged 14 commits into from
Mar 5, 2024

Conversation

LinaYahya
Copy link
Contributor

@LinaYahya LinaYahya commented Feb 20, 2024

image
closes #83

@LinaYahya LinaYahya changed the base branch from 80-api-setup to main February 27, 2024 09:39
@LinaYahya LinaYahya marked this pull request as ready for review February 27, 2024 16:34
@LinaYahya LinaYahya self-assigned this Feb 27, 2024
Copy link
Member

@spaenleh spaenleh left a comment

Choose a reason for hiding this comment

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

Looks good, just some comments I think should be addressed:

  • We should not use dangerouslySetInnerHTML, see my comment. We can also discuss in person for more detail
  • You have sometimes Analytic and sometimes Analytics. Choose one, preferably Analytics` (with the s).

🏀

cypress/fixtures/mockActions.ts Outdated Show resolved Hide resolved
cypress/fixtures/mockActions.ts Outdated Show resolved Hide resolved
src/components/views/AnalyticView.tsx Outdated Show resolved Hide resolved
src/components/App.tsx Outdated Show resolved Hide resolved
src/components/common/AnalyticsTable.tsx Show resolved Hide resolved
src/components/common/AnalyticsTable.tsx Outdated Show resolved Hide resolved
src/components/common/AnalyticsTable.tsx Outdated Show resolved Hide resolved
src/components/common/AnalyticsTable.tsx Outdated Show resolved Hide resolved
src/components/views/BuilderView.tsx Outdated Show resolved Hide resolved
Copy link
Member

Choose a reason for hiding this comment

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

What is the purpose of these changes exactly ?

Copy link
Contributor

@pyphilia pyphilia left a comment

Choose a reason for hiding this comment

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

Thanks for this PR!
I've added some suggestions, let's also check on dev how the sizing behaves with the overflow properties.

cypress/fixtures/mockActions.ts Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
src/components/App.tsx Outdated Show resolved Hide resolved
src/components/common/AnalyticsTable.tsx Outdated Show resolved Hide resolved
@@ -11,5 +12,5 @@ body {

#root {
height: 100%;
overflow: hidden;
overflow: auto;
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure about these changes, maybe let's look how it behaves in the development environment.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the purpose of this change is to make sure that the table is controlling height and scroll,
this how it looks with current changes
image

and this is how it would be with the previous version
image

src/langs/en.json Outdated Show resolved Hide resolved
Copy link
Member

@spaenleh spaenleh left a comment

Choose a reason for hiding this comment

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

Very nice changes. I still have a suggestion to tighten the types and solve an issue you seem to have worked around related to index signatures.

Good work ! 🏆

src/types/table.ts Outdated Show resolved Hide resolved
src/components/common/HtmlParser.tsx Outdated Show resolved Hide resolved
@LinaYahya LinaYahya requested review from pyphilia and spaenleh March 1, 2024 09:23
@pyphilia pyphilia merged commit 5e58d64 into main Mar 5, 2024
2 checks passed
@pyphilia pyphilia deleted the 83-analytics-view branch March 5, 2024 10:52
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.

Create calculator analytics view
3 participants