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

separate persist logic from comment component #1406

Merged
merged 2 commits into from
Jul 11, 2022

Conversation

akellbl4
Copy link
Collaborator

@akellbl4 akellbl4 commented Jul 5, 2022

No description provided.

@codecov
Copy link

codecov bot commented Jul 5, 2022

Codecov Report

Merging #1406 (2447201) into master (9971698) will increase coverage by 0.03%.
The diff coverage is 86.20%.

@@            Coverage Diff             @@
##           master    #1406      +/-   ##
==========================================
+ Coverage   57.88%   57.92%   +0.03%     
==========================================
  Files         130      131       +1     
  Lines        2885     2904      +19     
  Branches      741      742       +1     
==========================================
+ Hits         1670     1682      +12     
- Misses       1211     1218       +7     
  Partials        4        4              
Impacted Files Coverage Δ
frontend/app/components/comment/comment.tsx 62.38% <ø> (ø)
...ntend/app/components/comment-form/comment-form.tsx 51.70% <75.00%> (-0.68%) ⬇️
...pp/components/comment-form/comment-form.persist.ts 94.11% <94.11%> (ø)
frontend/app/components/root/root.tsx 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9971698...2447201. Read the comment docs.

@github-actions
Copy link

github-actions bot commented Jul 5, 2022

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
public/embed.mjs 2.02 KB (0%) 41 ms (0%) 118 ms (+72.39% 🔺) 158 ms
public/remark.mjs 70.9 KB (+0.06% 🔺) 1.5 s (+0.06% 🔺) 291 ms (-20.23% 🔽) 1.8 s
public/remark.css 8.21 KB (+0.02% 🔺) 165 ms (+0.02% 🔺) 0 ms (+100% 🔺) 165 ms
public/last-comments.mjs 35.62 KB (0%) 713 ms (0%) 136 ms (-43.26% 🔽) 848 ms
public/last-comments.css 3.79 KB (0%) 76 ms (0%) 0 ms (+100% 🔺) 76 ms
public/deleteme.mjs 10.01 KB (0%) 201 ms (0%) 113 ms (+2.34% 🔺) 314 ms
public/counter.mjs 749 B (0%) 15 ms (0%) 85 ms (+70.31% 🔺) 99 ms

@akellbl4 akellbl4 marked this pull request as ready for review July 7, 2022 03:45
@akellbl4 akellbl4 requested a review from umputun as a code owner July 7, 2022 03:45
@akellbl4 akellbl4 requested a review from Mavrin July 7, 2022 03:45
@@ -155,7 +115,7 @@ export class CommentForm extends Component<CommentFormProps, CommentFormState> {
const { value } = e.target as HTMLInputElement;
const text = value.substr(0, StaticStore.config.max_comment_size);

updateJsonItem(LS_SAVED_COMMENT_VALUE, { [this.props.id]: value });
updatePersistedComments(this.props.id, value)
Copy link
Collaborator

Choose a reason for hiding this comment

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

strange indent

Mavrin
Mavrin previously approved these changes Jul 11, 2022
umputun
umputun previously approved these changes Jul 11, 2022
@akellbl4 akellbl4 dismissed stale reviews from umputun and Mavrin via 2447201 July 11, 2022 18:56
@akellbl4 akellbl4 merged commit fddf1e2 into master Jul 11, 2022
@akellbl4 akellbl4 deleted the comment-separate-persist branch July 11, 2022 23:21
@paskal paskal added this to the v1.10.2 milestone Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants