Skip to content

[NEW] User profile and User card#18194

Merged
tassoevan merged 65 commits intodevelopfrom
feat/user-profile
Jul 18, 2020
Merged

[NEW] User profile and User card#18194
tassoevan merged 65 commits intodevelopfrom
feat/user-profile

Conversation

@ggazzo
Copy link
Copy Markdown
Member

@ggazzo ggazzo commented Jul 6, 2020

closes #18219
closes #18243

Proposed changes

Issue(s)

How to test or reproduce

Screenshots

image
image
image

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • Improvement (non-breaking change which improves a current function)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Hotfix (a major bugfix that has to be merged asap)
  • Documentation Update (if none of the other choices apply)

Checklist

  • I have read the CONTRIBUTING doc
  • I have signed the CLA
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works (if applicable)
  • I have added necessary documentation (if applicable)
  • Any dependent changes have been merged and published in downstream modules

Changelog

Further comments

@ggazzo ggazzo marked this pull request as draft July 6, 2020 23:50
@ggazzo ggazzo force-pushed the feat/user-profile branch from e3c27bf to 15c77c9 Compare July 8, 2020 14:16
@ggazzo ggazzo force-pushed the feat/user-profile branch from 15c77c9 to c86c707 Compare July 8, 2020 14:22
@ggazzo ggazzo force-pushed the feat/user-profile branch from 980c034 to 213237c Compare July 14, 2020 07:23
Comment on lines +4 to +5
useUserSubscription: (rid: string, fields: Mongo.Query<any>) => any;
useUserSubscriptionByName: (name: string, fields: Mongo.Query<any>) => any;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Don't pass hooks through context. Pass subscriptions to be consumed by useSubscription (preferred) or reactive functions to be consumed by useReactiveValue.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

it will be fixed as regression :x

}, [dispatchToastMessage, params, sendData, successMessage]);
};

export const useEndpointActionExperimental = (httpMethod, endpoint, successMessage) => {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe I missing something... In all use cases I've seen for this hook there was no reason to params to be called at the callback. E.g.:

const fn = useEndpointActionExperimental('POST', '/xyz');
const fnAction = useMutableCallback((...args) => {
  fn(params, ...args);
});

When this would be better:

const fnAction = useEndpointAction('POST', '/xyz', params);

@tassoevan tassoevan added area: ui/ux Related to UI/UX, frontend code, accessibility, and user interaction type: improvement labels Jul 18, 2020
@tassoevan tassoevan added this to the 3.5.0 milestone Jul 18, 2020
@tassoevan tassoevan merged commit 42d41ba into develop Jul 18, 2020
@ggazzo ggazzo deleted the feat/user-profile branch July 18, 2020 02:05
@sampaiodiego sampaiodiego mentioned this pull request Jul 28, 2020
@bj47cf
Copy link
Copy Markdown

bj47cf commented Aug 17, 2020

Please add the ability to enable and disable the timezone from being shown in user profiles!

@HiveMindNet
Copy link
Copy Markdown

Maybe I'm missing something and sorry if this is in the wrong place, but is it not possible to update the 'Bio' field shown on the profile card from the REAS API? Can't seem to find reference to this anywhere?

Any pointers much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ui/ux Related to UI/UX, frontend code, accessibility, and user interaction type: improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Undefined instead of "user Info" in 3.4.2 Admin > Users > Profile - buttons outside of screen in Polish Language (to long button text)

5 participants