Skip to content

#3287 Parts Review Submission Guide#3288

Merged
walker-sean merged 4 commits intofeature/cad-project-file-reviewfrom
3287-cad-project-submission-guide
Mar 15, 2025
Merged

#3287 Parts Review Submission Guide#3288
walker-sean merged 4 commits intofeature/cad-project-file-reviewfrom
3287-cad-project-submission-guide

Conversation

@gcooper407
Copy link
Copy Markdown
Contributor

@gcooper407 gcooper407 commented Mar 10, 2025

Changes

Created the Submission Guide section of the Parts Review tab for Projects, toggleable via slider and with default toggle based on user role.

Screenshots

App Admin, Admin, and Leadership default view:
Screenshot 2025-03-10 at 12 34 25 AM

Member and Guest default view:
Screenshot 2025-03-10 at 12 36 28 AM

Checklist

It can be helpful to check the Checks and Files changed tabs.
Please review the contributor guide and reach out to your Tech Lead if anything is unclear.
Please request reviewers and ping on slack only after you've gone through this whole checklist.

  • All commits are tagged with the ticket number
  • No linting errors / newline at end of file warnings
  • All code follows repository-configured prettier formatting
  • No merge conflicts
  • All checks passing
  • Screenshots of UI changes (see Screenshots section)
  • Remove any non-applicable sections of this template
  • Assign the PR to yourself
  • No yarn.lock changes (unless dependencies have changed)
  • Request reviewers & ping on Slack
  • PR is linked to the ticket (fill in the closes line below)

Closes #3287

@gcooper407 gcooper407 self-assigned this Mar 10, 2025
@gcooper407 gcooper407 requested review from Zwendle and chpy04 March 10, 2025 04:47
import { useCurrentUser } from '../../../../hooks/users.hooks';
import { rankUserRole } from 'shared';

const NERSwitch = styled((props: SwitchProps) => (
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we add this to the components folder? Seems like a general enough thing that it should be available past this one page

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sure thing -- I had just grabbed it from the settings page (it's used for trickster mode lol), I can make it a component

return <LoadingIndicator />;
const currentUser = useCurrentUser();
const [showSubmissionGuide, setShowSubmissionGuide] = useState(() => {
if (!currentUser) return false;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This check is redundant

Copy link
Copy Markdown
Contributor

@chpy04 chpy04 left a comment

Choose a reason for hiding this comment

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

🔥

@walker-sean walker-sean merged commit 71090e4 into feature/cad-project-file-review Mar 15, 2025
4 checks passed
@walker-sean walker-sean deleted the 3287-cad-project-submission-guide branch March 15, 2025 21:15
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.

3 participants