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

[ENG-6669][WIP] Institutional Access project Request Modal #2433

Draft
wants to merge 2 commits into
base: feature/institutional-access
Choose a base branch
from

Conversation

Johnetordoff
Copy link
Collaborator

@Johnetordoff Johnetordoff commented Dec 17, 2024

  • Ticket: [https://openscience.atlassian.net/browse/ENG-6669]
  • Feature flag: n/a

Purpose

Allows institutional admins to request access to projects from the institutional dashboard projects tab. Also allows them to message thier institutional users.

Summary of Changes

  • add node-request model
  • add node-request adapter
  • add two tabbed model with Send Message and Request Access tabs
  • add css for style

Screenshot(s)

Request access disabled behavior

Screen.Recording.2024-12-17.at.10.06.33.AM.mov

Side Effects

QA Notes

@Johnetordoff Johnetordoff force-pushed the institutional-access-project-request-modal branch from fa41842 to e80b7f9 Compare December 17, 2024 20:54
@@ -47,32 +49,40 @@ export default class InstitutionalObjectListContributorsField extends Component<
return prioritizedAttributions.slice(0, 2).map(attribution => {
const contributor = getContributorById(contributors, getSingleOsfmapValue(attribution, ['agent']));
const roleIri: AttributionRoleIris = getSingleOsfmapValue(attribution, ['hadRole']);

const regex = /([^?#]+)$/; // Regex to extract the final part after the last slash
const contributorId = contributor?.['@id']?.match(regex)?.[1] || '';
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Is there a better way to get user guid?

@Johnetordoff Johnetordoff force-pushed the institutional-access-project-request-modal branch from e80b7f9 to 5a7fe94 Compare December 18, 2024 14:25
@Johnetordoff Johnetordoff changed the title [ENG-6669] Institutional Access project Request Modal [ENG-6669][WIP] Institutional Access project Request Modal Dec 18, 2024
…terForOpenScience/ember-osf-web into institutional-access-project-request-modal

* 'feature/institutional-access' of https://github.com/CenterForOpenScience/ember-osf-web:
  use proper Ember input tags, remove extra close modal command
  make message types an enum
  update language and fix modal closing bug.
  update to fit Product language and styling
  add checkboxes for reply-to and ccing
  Add type annotations for belongs to
  update text area for Ember type area
  update sendMessage to task
  fix label for message box
  add aira-label.
  fix en-us typo
  Add user messaging modal to user's tab on institutional dashboard
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.

1 participant